Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / New Users / February 2006

Tip: Looking for answers? Try searching our database.

now() date problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bob21@discussions.microsoft.com - 09 Feb 2006 16:49 GMT
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.