Ann,
I am doing something similar. I wonder if you can help...
I have an UPDATE field for an inventory DB which autmatically poulates with NOW() whenever something in the record changes.
My UPDATE field is defined as TEXT. Problem is 1) when I view it, I see the day & time. ie., 7/25/2005 1:49:00 p.m. 2) when I search on date, obviously it doesn't find any records b/c the field isn't storing the day, but the day & time.
Question....how do I format NOW()? So I can use it?
1) use a field with data type DateTime instead of Text
2) use the Date() function instead of Now() if you don't care the time
3) avoid reserved word (as UPDATE) for field names
Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
But I've just switched to using a Text field b/c the Date type was getting me nowhere. Thought I'd try this. As for the DATE(), that's a great idea. But how do I get it to read: [UPDATE] = DATE() ..... (where date is today? or is DATE() = today?)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.