Basically, I am trying to retrieve records related to information provided in 2 text boxes. So far - the code below fails to work.
I appreciate any help. Thank you.
On Error GoTo Err_Command4_Click
Dim stDocName As String
Dim stLinkCriteria As String
Dim stLinkCriteria1 As String
stDocName = "Test"
If stLinkCriteria = "[ID]=" & "'" & Me![Text0] & "'" Then
stLinkCriteria1 = "[Name]=" & "'" & Me! [Text2] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
I appreciate any help. Thank you.
On Error GoTo Err_Command4_Click
Dim stDocName As String
Dim stLinkCriteria As String
Dim stLinkCriteria1 As String
stDocName = "Test"
If stLinkCriteria = "[ID]=" & "'" & Me![Text0] & "'" Then
stLinkCriteria1 = "[Name]=" & "'" & Me! [Text2] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria