Again, I appreciate your insight about this query and I wanted to ask you for an explanation of the two "Or" statements. But more importantly, when I run the report with the parameters, I am unable to get all the data that I should relative to the table of data. Would you mind taking a look again. Thanks...
Brianwarnock said:works the same as previous releases why not use a Form for the Start and End dates to save the multiple entry requests?
FHS - I'll take a look again at the uploaded sample.
I just thought of a way. It would be to take the other field as the date value for both sides if one side is null. I'll try to put it into the sample.Well, I sure appreciate you being so diligent about this puzzle. Initially, the requirement was that the employees only needed to click one field (ClockIn if they came in early or ClockOut is they stayed late). Anyway, if you do stumble upon an idea about a solution, please let me know.
Thanks for all your help. By the way, is this the only way to get in touch with you?
Yes, it is in this case. Not sure why but it was not working when I left CDate out of the equation. It wasn't pulling the right records. If you go into the sample and then - run the query and put inI'm not sure if an explicit cast to type Date is needed.
That had to do with the DateValue() indirect cast. Once removed, works fine without CDate().Not sure why but it was not working when I left CDate out of the equation.
It seems the OP isn't trapping for Null cases, i.e. where the Start Date could be Null for example.to pull records from EITHER the start date or end date where either one fits into the date range.
Hence why the check for null in the creation of the datevalue field (using datevalue which removes the time element) and if it is null, it uses the OTHER field to handle the nulls.It seems the OP isn't trapping for Null cases, i.e. where the Start Date could be Null for example.
So if you removed the DateValue function, then what did you do to turn it to a DATE ONLY field so that you could not use the time elements?That had to do with the DateValue() indirect cast. Once removed, works fine without CDate().