S
Starbuck
How do you get Access 2003 to not drop the leading zero
in a date field?
e.g.
Access 2003 gives me 2004-9
Format needed = 2004-09
*$
in a date field?
e.g.
Access 2003 gives me 2004-9
Format needed = 2004-09
*$
Format(Now(), "yyyy-dd")
Starbuck said:Thank you Larry.
These are query field headers dropping the leading zero.
Where do I format query fields headers?
(Properties, options, etc...(?))
Thanks again.
*$
How about query field names? We use the accounting period as theWhat are "query field headers"?
You will need square brackets around that field name. Without them, Access
will interpret 2004-09 as the expression 2004 - 9 (2004 minus 9) and return
the result, 1995.
Starbuck said:You will need square brackets around that field name. Without them, Access
will interpret 2004-09 as the expression 2004 - 9 (2004 minus 9) and
return
the result, 1995.
That sounded like the perfect solution, but
I added the square brackets to the field name ie [2004-09]
and it didn't work.
The message reads:
'[2002-09]' is not a valid name. Make sure that it does not
invalid characters or punctuation and that it is not too long.
(Error 3125)
Any other suggestions?
BTW I really appreciate all of the assistance you guys have
been offering. Thanks.
*$
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.