G
Guest
I am trying to open a report based on 2 criteria on the form and my button
code look like this:
Dim strWhere As String
strWhere = "[lngProgEnrolNo]=" & Me.lngProgEnrolNo And
"[lngProgCurrlmNo] =" & Me.cboProgram
DoCmd.OpenReport "rptRecofCourses", acPreview, , strWhere
I keep getting a type mismatch error. Is this the right way of doing it?
Thanks.
ck
code look like this:
Dim strWhere As String
strWhere = "[lngProgEnrolNo]=" & Me.lngProgEnrolNo And
"[lngProgCurrlmNo] =" & Me.cboProgram
DoCmd.OpenReport "rptRecofCourses", acPreview, , strWhere
I keep getting a type mismatch error. Is this the right way of doing it?
Thanks.
ck