Basically what I'm trying to do is make a search form that will open another form from the search form that will match the records if the data was from any of the three fields.
Is the code I use to match (via onclick) from one to another
is there a simple way, to add the following to the code, so it will search the other two fields as well?
Thanks!
Code:
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Main Case Details"
stLinkCriteria = "[Serial Number]=" & "'" & Me![Search] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
is there a simple way, to add the following to the code, so it will search the other two fields as well?
Code:
stLinkCriteria = "[Received by Agency Inventory #]=" & "'" & Me![Search] & "'"
stLinkCriteria = "[CFU Inventory ID]=" & "'" & Me![Search] & "'"