T
TwinDad
All,
as a Novice I am looking at trying to get a forn to Open up using this
criteria.
Date & Route. but the wizard only allows me to select only one. I have
played with it and just dont understand why I am getting a "Mismatch" error.
any ideas?
-The Novice
Private Sub Command20_Click()
On Error GoTo Err_Command20_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Frm_PPL_Main"
stLinkCriteria = "[RouteID]=" & "'" & Me![RouteID] & "'" And "[Date]=" &
"#" & Me![Date] & "#"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_Command20_Click:
Exit Sub
Err_Command20_Click:
MsgBox Err.Description
Resume Exit_Command20_Click
End Sub
as a Novice I am looking at trying to get a forn to Open up using this
criteria.
Date & Route. but the wizard only allows me to select only one. I have
played with it and just dont understand why I am getting a "Mismatch" error.
any ideas?
-The Novice
Private Sub Command20_Click()
On Error GoTo Err_Command20_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Frm_PPL_Main"
stLinkCriteria = "[RouteID]=" & "'" & Me![RouteID] & "'" And "[Date]=" &
"#" & Me![Date] & "#"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_Command20_Click:
Exit Sub
Err_Command20_Click:
MsgBox Err.Description
Resume Exit_Command20_Click
End Sub