Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Data type mismatch in criteria

Status
Not open for further replies.

striker73

MIS
Jun 7, 2001
376
US
I am getting a strange error message on my report, "Data type mismatch in criteria." It occurs when I attempt to preview my report. I understand what it means, but I don't know where this error is occuring. I have stepped through my code in Report_Open, but the error occurs after my code has been executed.

I have a feeling what the error might be from. I have a field in my query which is for the most part a date field. In my query I check to see if it is a certain date, if so, I make the field equal to "", which essentially converts it to a string value, not a date value.

Can anyone help me find where I am having this issue in my report? Thanks!
 
Oh nevermind. I just set the value equal to "Null" and that seemed to work. Thanks anyway!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top