NicholasP
Active Member
- Joined
- Nov 18, 2006
- Messages
- 291
Hi,
I'm trying to use GoToRecord -- instead of using the filter on the OpenForm cmd (I want the user to be able to scroll through adjacent records without having to close the new form and reclick on a record).
The problem seems to be that the form is opening, and then the code is not progressing to the GotoRecord line. Instead the form is opening up to the first record in the set (natually). Is there something simple I'm missing here?
Any help would be greatly appreciated!
Thanks
Nick
I'm trying to use GoToRecord -- instead of using the filter on the OpenForm cmd (I want the user to be able to scroll through adjacent records without having to close the new form and reclick on a record).
The problem seems to be that the form is opening, and then the code is not progressing to the GotoRecord line. Instead the form is opening up to the first record in the set (natually). Is there something simple I'm missing here?
Any help would be greatly appreciated!
Thanks
Nick
Code:
Dim R As Long
R = Me.CurrentRecord
DoCmd.OpenForm ("Individual Info"), , , , , acDialog
DoCmd.GoToRecord acDataForm, "Individual Info", acGoTo, R