Hi All,
I have been wrestling with this for a while now and time constraints are pushing me to a resolution.
I have a form filter for a report that has a cboInstaller and a txtStartDate and txtEndDate.
I am trying to shape the following code but keep getting syntax error missing operator. I am certainly no expert in VBA but am doing my best to get my head around it.
Private Sub cmSIOK_Click()
Dim strRport As String
Const conDateFormat = "\#mm\/dd\/yyyy\#"
strRport = "rptAllJobs"
DoCmd.OpenReport strRport, acViewPreview, , "[InstLastName]='" & Me.cboInstaller & "' And & [SchedInstallDate] & between & Format(Me.txtStartDate, conDateFormat) And Format(Me.txtEndDate, conDateFormat)"
End Sub
Any ideas?
Thank you
I have been wrestling with this for a while now and time constraints are pushing me to a resolution.
I have a form filter for a report that has a cboInstaller and a txtStartDate and txtEndDate.
I am trying to shape the following code but keep getting syntax error missing operator. I am certainly no expert in VBA but am doing my best to get my head around it.
Private Sub cmSIOK_Click()
Dim strRport As String
Const conDateFormat = "\#mm\/dd\/yyyy\#"
strRport = "rptAllJobs"
DoCmd.OpenReport strRport, acViewPreview, , "[InstLastName]='" & Me.cboInstaller & "' And & [SchedInstallDate] & between & Format(Me.txtStartDate, conDateFormat) And Format(Me.txtEndDate, conDateFormat)"
End Sub
Any ideas?
Thank you