I used the command button wizard to create a button to open a new form. The wizard only allows you to link just one field to another but I need to link two in order to filter out records...Searching through the site helped me discover the stLinkCriteria command and its usage;and now I have an error appearing on my creen that the second field cannot be found? How is that possible? Any clues? My code goes something like
Am I missing something?
Code:
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Species"
stLinkCriteria = "[Species]=" & Me![Species] & "AND [Offer_No]= " & Me![Number_Offer]
DoCmd.OpenForm stDocName, , , stLinkCriteria
Am I missing something?