A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Date Field - Input Mask?



 
 
Thread Tools Display Modes
  #1  
Old June 6th, 2008, 02:48 PM posted to microsoft.public.access.tablesdbdesign
dac
external usenet poster
 
Posts: 17
Default Date Field - Input Mask?

How do you set up a date field in a table that reads just the month and year
(no day). Ex. 05/08 or 05/2008. I tried an input mask and it comes out
05/01/2008.
Thanks,
Deb
  #2  
Old June 6th, 2008, 03:12 PM posted to microsoft.public.access.tablesdbdesign
Klatuu
external usenet poster
 
Posts: 7,074
Default Date Field - Input Mask?

Date fields will always have a year, month, and day.
You can't enter a value in a date field without all three components. You
can ignore putting in the time and it will default to 12:00:00 AM

However, once a date is entered, you can present it with just a month and
year using a format function or the format property of a text box on a form
or report.

Be sure you understand the difference between a format and an input mask.
An input mask is only used to control how a value is entered in control or
field. You can control what values are entered in a field for text fields,
but not for date or numeric fields. For dates, an input mask only ensures a
valid date is entered.

A format, on the other hand, is used to present data they way you want to
see it.
--
Dave Hargis, Microsoft Access MVP


"dac" wrote:

How do you set up a date field in a table that reads just the month and year
(no day). Ex. 05/08 or 05/2008. I tried an input mask and it comes out
05/01/2008.
Thanks,
Deb

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:22 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.