If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
now() date problem
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. |
#2
|
|||
|
|||
now() date problem
Try using the date() function instead of now(). Date returns date only, Now
returns date and time. -- Sandra Daigle [Microsoft Access MVP] Please post all replies to the newsgroup. wrote: 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. |
#3
|
|||
|
|||
now() date problem
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 " t.com wrote in message ... 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. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Date Calculation problem | pmundle | Using Forms | 11 | October 13th, 2005 07:09 AM |
Import date field problem. | Thief_ | General Discussion | 1 | July 18th, 2005 10:11 AM |
Date Math Problem | Dkline | Worksheet Functions | 4 | March 4th, 2005 04:11 PM |
Max of Records Date in Text Format Problem | Andi Lee Davis | Running & Setting Up Queries | 4 | February 1st, 2005 11:45 AM |
sort by date problem | scudooder | General Discussion | 6 | July 31st, 2004 12:56 AM |