Can you select one field from multiple fields in a drop down list...and match that to a text field where you type in a value? I'd like to do this search from a separate search form on a button click.
I tried this but it doesnt work:
Private Sub Command67_Click()
On Error GoTo Err_Command67_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Orders"
stLinkCriteria = "Me![Combo61]=" & "#" & Me![Text59] & "#"
DoCmd.Openform stDocName, , , stLinkCriteria
Exit_Command67_Click:
Exit Sub
Err_Command67_Click:
MsgBox Err.Description
Resume Exit_Command67_Click
End Sub
I tried this but it doesnt work:
Private Sub Command67_Click()
On Error GoTo Err_Command67_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Orders"
stLinkCriteria = "Me![Combo61]=" & "#" & Me![Text59] & "#"
DoCmd.Openform stDocName, , , stLinkCriteria
Exit_Command67_Click:
Exit Sub
Err_Command67_Click:
MsgBox Err.Description
Resume Exit_Command67_Click
End Sub