zelarra821
Registered User.
- Local time
- Tomorrow, 00:39
- Joined
- Jan 14, 2019
- Messages
- 847
Good Morning.
I'm trying to get when I open a record to go to a new record, but showing the three previous records, because otherwise it just shows me the new record.
I have tried with
It works fine on all forms, except, coincidentally, the ones with eleven records, which shows me the new record.
Can anyone help me find what I am doing wrong?
Thank you!
I'm trying to get when I open a record to go to a new record, but showing the three previous records, because otherwise it just shows me the new record.
I have tried with
Code:
Dim Registros As Variant
Registros = DCount("*", "MyTable")
DoCmd.GoToRecord , , acGoTo, Registros - 3
DoCmd.GoToRecord , , acNewRec
It works fine on all forms, except, coincidentally, the ones with eleven records, which shows me the new record.
Can anyone help me find what I am doing wrong?
Thank you!