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 » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Date as format mm/yy



 
 
Thread Tools Display Modes
  #1  
Old September 8th, 2009, 05:29 PM posted to microsoft.public.access.forms
משה
external usenet poster
 
Posts: 3
Default Date as format mm/yy

Is it possible to set a date field in a table/form to display only mm/yy. In
Word 2003 I could display a date field as mm/yy, is it possible also in
Access 2007?
  #2  
Old September 8th, 2009, 05:48 PM posted to microsoft.public.access.forms
Douglas J. Steele[_3_]
external usenet poster
 
Posts: 3,143
Default Date as format mm/yy

Sure. Set the Format property to mm/yy, same as in Word.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"???" wrote in message
...
Is it possible to set a date field in a table/form to display only mm/yy.
In
Word 2003 I could display a date field as mm/yy, is it possible also in
Access 2007?



  #3  
Old September 8th, 2009, 05:50 PM posted to microsoft.public.access.forms
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Date as format mm/yy

Open form in design view, click on the text box, double click, scroll down
and select Properties.
Click on Data tab and in the Format property type mm\/yy and save.

--
Build a little, test a little.


"משה" wrote:

Is it possible to set a date field in a table/form to display only mm/yy. In
Word 2003 I could display a date field as mm/yy, is it possible also in
Access 2007?

  #4  
Old September 8th, 2009, 06:45 PM posted to microsoft.public.access.forms
משה
external usenet poster
 
Posts: 3
Default Date as format mm/yy

That's what I thought and tried but it doesn't work

"KARL DEWEY" wrote:

Open form in design view, click on the text box, double click, scroll down
and select Properties.
Click on Data tab and in the Format property type mm\/yy and save.

--
Build a little, test a little.


"משה" wrote:

Is it possible to set a date field in a table/form to display only mm/yy. In
Word 2003 I could display a date field as mm/yy, is it possible also in
Access 2007?

  #5  
Old September 8th, 2009, 09:00 PM posted to microsoft.public.access.forms
John W. Vinson
external usenet poster
 
Posts: 18,261
Default Date as format mm/yy

On Tue, 8 Sep 2009 10:45:03 -0700, ??? wrote:

That's what I thought and tried but it doesn't work


What "doesn't work"? Displays the wrong date? displays a different format?
gives an error message? sets your computer on fire?

What did you use as the Format property of the textbox, and what do you see in
the textbox?

Possible additional issue: is this in fact a Date/Time field, or is it a Text
field containing data that looks like a date?
--

John W. Vinson [MVP]
  #6  
Old September 8th, 2009, 09:40 PM posted to microsoft.public.access.forms
Ron2006
external usenet poster
 
Posts: 936
Default Date as format mm/yy

Also,

Because you have put that format on it does NOT mean that is what is
being stored in the field.

AND you cannot enter data into that field on that form using that
field. A date field MUST have a month and a day and a year. One way
or the other that is what is required to enter or change information
in that field.

Ron

  #7  
Old September 8th, 2009, 09:54 PM posted to microsoft.public.access.forms
משה
external usenet poster
 
Posts: 3
Default Date as format mm/yy

In the display I see mm/yy and cannot enter any data [if it has set my
computer on fire I wouldn't have got the reply - lol]
The text box I am using is using a date/time property

"John W. Vinson" wrote:

On Tue, 8 Sep 2009 10:45:03 -0700, ??? wrote:

That's what I thought and tried but it doesn't work


What "doesn't work"? Displays the wrong date? displays a different format?
gives an error message? sets your computer on fire?

What did you use as the Format property of the textbox, and what do you see in
the textbox?

Possible additional issue: is this in fact a Date/Time field, or is it a Text
field containing data that looks like a date?
--

John W. Vinson [MVP]

  #8  
Old September 8th, 2009, 10:13 PM posted to microsoft.public.access.forms
Douglas J. Steele[_3_]
external usenet poster
 
Posts: 3,143
Default Date as format mm/yy

Despite the fact that it only displays mm/yy, it's still a date, and you
must enter a proper date in the field.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"???" wrote in message
...
In the display I see mm/yy and cannot enter any data [if it has set my
computer on fire I wouldn't have got the reply - lol]
The text box I am using is using a date/time property

"John W. Vinson" wrote:

On Tue, 8 Sep 2009 10:45:03 -0700, ???
wrote:

That's what I thought and tried but it doesn't work


What "doesn't work"? Displays the wrong date? displays a different
format?
gives an error message? sets your computer on fire?

What did you use as the Format property of the textbox, and what do you
see in
the textbox?

Possible additional issue: is this in fact a Date/Time field, or is it a
Text
field containing data that looks like a date?
--

John W. Vinson [MVP]



  #9  
Old September 8th, 2009, 10:49 PM posted to microsoft.public.access.forms
John W. Vinson
external usenet poster
 
Posts: 18,261
Default Date as format mm/yy

On Tue, 8 Sep 2009 13:54:47 -0700, ??? wrote:

In the display I see mm/yy and cannot enter any data [if it has set my
computer on fire I wouldn't have got the reply - lol]
The text box I am using is using a date/time property


As Ron and Douglas say, if the field is a Date/Time field then you must enter
a complete date (regardless of the format). A Date/Time is stored internally
as a double float number, a count of days and fractions of a day (times) since
midnight, December 30, 1899; as such it corresponds to a precise instant of
time. September 2009 is not a precise instant of time! You can STORE
#09/01/2009 00:00:00# or #09/14/2009 11:31:28# in a DateTime field, and it
will display as 09/09 if you use a Format of mm/yy; but when you edit the
field you must enter a full date.

If you only want the month and year and don't need a real date, consider
storing two Number fields and concatenating them for display, rather than
stuffing non-date data into a date field.
--

John W. Vinson [MVP]
  #10  
Old September 9th, 2009, 09:07 PM posted to microsoft.public.access.forms
David W. Fenton
external usenet poster
 
Posts: 3,373
Default Date as format mm/yy

Ron2006 wrote in

m:

AND you cannot enter data into that field on that form using that
field. A date field MUST have a month and a day and a year. One
way or the other that is what is required to enter or change
information in that field.


Eh? Of course you can enter month/year and leave out the day (the
first day of the month will be supplied). You can also enter
month/day and leave out the year (the current year will be
supplied).

A mm/yyyy format combined with 00/0000 input mask pretty much takes
care of it. With or without a date mask, the control will display
the full date when it has the focus if the value has already been
filled out. So far as I know, there's no way to work around that
(and it's probably the desired behavior in most cases, though it's
not helpful with a credit card expiration date, for instance).

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
 




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:33 PM.


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