I now can successfully get Access to open the navigation formto the correct tab using DoCmd.BrowseTo.
DoCmd.BrowseTo acBrowseToForm, “frmGuestInfo”, “Main.NavigationSubform”, “[GuestID] = ” & lngGuestID
The secret was that I had to close the search form that was in use, so that the already open navigation form, “Main”, would be visible, or the active form.
However, I cannot get the where condition to work at all. It has been some years since I worked with Access, so I’m sure I’m probably missing something simple, but I have tried many variations of ways to specify the where condition. I was able to specify a filter on the form in question, frmGuestInfo, that worked as expected, but the same filter did not work when specified as the where condition of the DoCmd.BrowseTo command. lngGuestID does evaluate in code properly, so that is not the problem.
Please let me know if you have any ideas.
Regards,
Sean