Space is for everybody. It's not just for a few people in science or math, or for a select group of astronauts. That's our new frontier out there, and it's everybody's business to know about space.
Here are my observations 1. the dim MyDateField does this have to set as a String or Date? 2. it is currently set as Dim MyDateField as Date 3. when i get the error and click debug, when i mouse over the yellow line where it says MyDatefield it is showing as MyDateField = 12:00AM 4. is this the reason why it is type mismatch because I am comparing time to a date? because the DateFrom and the DateTo is coming correctly, it shows DateFrom = 7/1/2011 and the DateTo = 7/15/2011 5. When you say "you might need to take your DateFrom and DateTo values OUTSIDE of the string" what exactly do you mean by this? put it outside the quote?
Reply from Richard Rost:
MyDateField is the name of the date field you're using in your table. Don't DIM it. Replace it with the name of your table's field.
Sorry, only students may add comments.
Click here for more
information on how you can set up an account.
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
Microsoft Access 321.