I would like to be able to allow user to click on a button, say "User Record" from a form based on the current record (say Contract) the user is editing. However, the User record form is in one of the tabs in a lookup form. How can I program the button so that it goes directly to the record the user is editing. The default code generated from the wizard as shown below doesn't work for a form containing tab. How should it be modified for it to work?
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "aLookups"
DoCmd.OpenForm stDocName, , , stLinkCriteria
DoCmd.GoToControl "[User Record]"
Thanks...
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "aLookups"
DoCmd.OpenForm stDocName, , , stLinkCriteria
DoCmd.GoToControl "[User Record]"
Thanks...