Avatar billede omn Mester
22. marts 2021 - 17:17 Der er 2 kommentarer

en til mange til mange reference?

I have a form and 2 subforms linked together. The first form has Contract number. The next has all Invoices for this contract and the third one has all payable elements for Invoice.  I can open the forms in this way and it works. I end up looking at the first invoice within this contract.
DoCmd.OpenForm "Contract", , , "([IDContract] =" & Me.[IDContract] & ")"

But my problem is, that I must go directly to a specific Invoice and i Have the unique record number, but I can't set it up to work? How can this be done.
I have tried this in many ways but without success. 
DoCmd.GoToRecord acDataForm, "Contract", acGoTo, [IDInv2] = 29004

Vh. OMN
Avatar billede terry Ekspert
22. marts 2021 - 19:31 #1
If its possible for you to send an example with some test data then I'll try and find a solution. Easy to have teh dB rather than guess how things are.
ekspertenATsanthell.dk
Avatar billede terry Ekspert
22. marts 2021 - 19:53 #2
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Dyk ned i databasernes verden på et af vores praksisnære Access-kurser

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester