Hi,
I have the following code that doesn't work:
Field5 is formated as a date in database.
I got the run-time error 3075 (syntax error in date in query expression...) when I run this.
Thank you!
I have the following code that doesn't work:
Code:
DCount("*", "[tblConsensus]", _
"(([Field1]='" & Form_frmMain.cmbField1 & "') AND (" & "[Field2]='" & Form_frmMain.cmbField2 & "') AND (" & "[Field3]='" & Form_frmMain.cmbField3 & "') AND (" & "[Field4]='" & Form_frmMain.cmbField4 & "') AND (" & "[Field5]=#" & Form_frmMain.txtField5 & "#))") > 0
I got the run-time error 3075 (syntax error in date in query expression...) when I run this.
Thank you!
Comment