slyvsspy
Registered User.
- Local time
- Today, 03:03
- Joined
- Jun 24, 2002
- Messages
- 51
Private Sub Command1_Click()
On Error GoTo Err_Command1_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "multipleselectquery"
stLinkCriteria = "[LastName] = 'Reynolds'"
DoCmd.OpenQuery stDocName, acNormal, acEdit
Exit_Command1_Click:
Exit Sub
Err_Command1_Click:
MsgBox Err.Description
Resume Exit_Command1_Click
End Sub
Can anyone tell me how to get the "stLinkCriteria" string to take effect when I open the query. Thanks for your help. Josh
On Error GoTo Err_Command1_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "multipleselectquery"
stLinkCriteria = "[LastName] = 'Reynolds'"
DoCmd.OpenQuery stDocName, acNormal, acEdit
Exit_Command1_Click:
Exit Sub
Err_Command1_Click:
MsgBox Err.Description
Resume Exit_Command1_Click
End Sub
Can anyone tell me how to get the "stLinkCriteria" string to take effect when I open the query. Thanks for your help. Josh