T trythis Registered User. Local time Today, 13:39 Joined Jul 27, 2009 Messages 67 Aug 24, 2009 #1 I have a field called shiftstart with the date and time. I put date() in criteria for this field thinking it would give me todays date information. I get nothing. What am I doing wrong please. Tina
I have a field called shiftstart with the date and time. I put date() in criteria for this field thinking it would give me todays date information. I get nothing. What am I doing wrong please. Tina
boblarson Smeghead Local time Today, 11:39 Joined Jan 12, 2001 Messages 32,040 Aug 24, 2009 #2 If you have a field with Date AND Time, DATE() will not work for your criteria because the actual criteria passed would be 8/24/2009 12:00:00 AM and that would not match your info. So, you would need Between Date() and Date()+1
If you have a field with Date AND Time, DATE() will not work for your criteria because the actual criteria passed would be 8/24/2009 12:00:00 AM and that would not match your info. So, you would need Between Date() and Date()+1
T trythis Registered User. Local time Today, 13:39 Joined Jul 27, 2009 Messages 67 Aug 24, 2009 #3 That makes sense. That was the key I needed. If I only wanted part of the day say 1a to 4pm How would that look. Between Date() and time between 1:00:00 am and 4:00:00 pm Thank you so much. Tina Last edited: Aug 24, 2009
That makes sense. That was the key I needed. If I only wanted part of the day say 1a to 4pm How would that look. Between Date() and time between 1:00:00 am and 4:00:00 pm Thank you so much. Tina