Displaying 0 (zero) as first character in date

D

denilynn

When typing January 17, for example, as 0117 in my table,
how can I get the 0 to show? When I tab to the next field,
only the 117 displays. Thanks in advance for your help!
 
C

Charles

-----Original Message-----
When typing January 17, for example, as 0117 in my table,
how can I get the 0 to show? When I tab to the next field,
only the 117 displays. Thanks in advance for your help!
.
Format the field:
Format(XXX,"mmdd")
 
V

Van T. Dinh

Which Field type are you using to store the data?

It looks like you use one of the Numeric Field to store
date value. Consider DateTime type.

HTH
Van T. Dinh
MVP (Access)
 
D

denilynn

Is there a way to use a Date/Time type, but have the date
display as military time without the colon? I would like
1/17 to display as 0117 for example. Thanks!
 
D

denilynn

I couldn't get this to work. Which data type should I be
using? Any additional information would be great! Thanks!
 
J

John Vinson

Is there a way to use a Date/Time type, but have the date
display as military time without the colon? I would like
1/17 to display as 0117 for example. Thanks!

Yes; use a Date/Time field and set its format property to

mmdd
 

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