now() date problem

G

Guest

i have an update query where i am trying to set a date to today's date - to
do so i thought i could set the field in the update query to update to now()
but when i do this it updates in general date format, not medium date format
which is what i need because i run further macros off of this date. i
thought i could fix this by going into the design of the query and changing
the property of the field to medium date - this did not work and lastly the
field that it is updating in my table is also formatted as medium date. the
date still updates to the general date format. is there any way to fix this?
is there a command other than now() which will give me today's date in medium
date format? many thanks.
 
S

Sandra Daigle

Try using the date() function instead of now(). Date returns date only, Now
returns date and time.
 
R

Rick B

Note that the if you are storing this in a date/time field, it is not
storing it in medium date format, it is stop\ring it as a number that
represents the date. You can display that in any date format you wish.

In your forms, queries, or reports, you can use the format to display that
date in any format you wish.

If you are storing this in a text field, that is a different issue.

--
Rick B



"(e-mail address removed)"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top