R
Richard
Hi
I keep getting the error 2498, "An expression you entered is the wrong data
type for one of the arguments"
Can you please check and see which is the worng argument?
Thanks in advance
Richard
Code as follows:
Dim RptInst As New Report_RptConsoRate
If IsNull([consocode]) Then
MsgBox "Please choose report to print", , "Choose client"
Me.consocode.SetFocus
Else
Dim criteria As String
criteria = "[conso-code]= forms![conso check]!consocode " & _
"AND consoid= forms![conso check]!txtconsoid " & _
"AND Workshopdate Between Forms![conso check]!beginningdate
" & _
"And Forms![conso check]!enddate"
DoCmd.OpenReport RptInst, acViewPreview, , criteria
DoCmd.RunCommand acCmdPrint
DoCmd.Close
--
I keep getting the error 2498, "An expression you entered is the wrong data
type for one of the arguments"
Can you please check and see which is the worng argument?
Thanks in advance
Richard
Code as follows:
Dim RptInst As New Report_RptConsoRate
If IsNull([consocode]) Then
MsgBox "Please choose report to print", , "Choose client"
Me.consocode.SetFocus
Else
Dim criteria As String
criteria = "[conso-code]= forms![conso check]!consocode " & _
"AND consoid= forms![conso check]!txtconsoid " & _
"AND Workshopdate Between Forms![conso check]!beginningdate
" & _
"And Forms![conso check]!enddate"
DoCmd.OpenReport RptInst, acViewPreview, , criteria
DoCmd.RunCommand acCmdPrint
DoCmd.Close
--