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.
Sandra Daigle - 09 Feb 2006 17:06 GMT
Try using the date() function instead of now(). Date returns date only, Now
returns date and time.

Signature
Sandra Daigle [Microsoft Access MVP]
Please post all replies to the newsgroup.
> 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
[quoted text clipped - 7 lines]
> this? is there a command other than now() which will give me today's
> date in medium date format? many thanks.
Rick B - 09 Feb 2006 17:14 GMT
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.

Signature
Rick B
>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
[quoted text clipped - 13 lines]
> medium
> date format? many thanks.