help switching forms

armoredcars

New member
Local time
Yesterday, 19:35
Joined
Jun 25, 2007
Messages
9
I have a single table and need to switch from the same record in form A to to the same record in form B based off the same table. The problem is that something is always the same as itself, the OrderID matches the OrderID for every record so it always sends me to the first record.
 
The following might be what you are looking for;

Code:
    Dim stDocName As String
    Dim stLinkCriteria As String

    stDocName = "FRM_FormB"
    
    stLinkCriteria = "[LinkingID]=" & Me![LinkingID]
    DoCmd.OpenForm stDocName, , , stLinkCriteria
 
Awesome! Thanks.
 

Users who are viewing this thread

Back
Top Bottom