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 parts



 
 
Thread Tools Display Modes
  #1  
Old September 17th, 2008, 02:16 PM posted to microsoft.public.access.tablesdbdesign
Bibi
external usenet poster
 
Posts: 54
Default date parts

I am designing a data base to track renovations – the user is not interested
in the date of a renovation – only the month and year – is there a way I can
store just the month and year in one date field, with the current month and
year as the default value?
TIA
Bibi

  #2  
Old September 17th, 2008, 02:55 PM posted to microsoft.public.access.tablesdbdesign
Allen Browne
external usenet poster
 
Posts: 11,706
Default date parts

A date/time field must have a day. Perhaps you could use the first of the
month, and format it as mmm-yyyy.

You could put some code into the Load event of your form to set the Default
Value of a text box to DateSerial(Year(Date), Month(Date),1) or Date -
Day(Date) + 1.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Bibi" wrote in message
...
I am designing a data base to track renovations – the user is not
interested
in the date of a renovation – only the month and year – is there a way I
can
store just the month and year in one date field, with the current month
and
year as the default value?
TIA
Bibi


  #3  
Old September 17th, 2008, 04:58 PM posted to microsoft.public.access.tablesdbdesign
Klatuu[_3_]
external usenet poster
 
Posts: 396
Default date parts

Just store a whole data in a date/time type field. It is much easier that
way. You can also simplfy your world be stroring all dates as the first of
the month.

"Bibi" wrote in message
...
I am designing a data base to track renovations - the user is not
interested
in the date of a renovation - only the month and year - is there a way I
can
store just the month and year in one date field, with the current month
and
year as the default value?
TIA
Bibi



  #4  
Old September 18th, 2008, 11:34 PM posted to microsoft.public.access.tablesdbdesign
Bibi
external usenet poster
 
Posts: 54
Default date parts

I'm leaning that way but is there a method where the user only sees the month
and date as a choice and/or the day part of the date is ALWAYS the 1st?
TIA
Bibi

"Klatuu" wrote:

Just store a whole data in a date/time type field. It is much easier that
way. You can also simplfy your world be stroring all dates as the first of
the month.

"Bibi" wrote in message
...
I am designing a data base to track renovations - the user is not
interested
in the date of a renovation - only the month and year - is there a way I
can
store just the month and year in one date field, with the current month
and
year as the default value?
TIA
Bibi




  #5  
Old September 19th, 2008, 02:23 AM posted to microsoft.public.access.tablesdbdesign
John W. Vinson
external usenet poster
 
Posts: 18,261
Default date parts

On Thu, 18 Sep 2008 15:34:10 -0700, Bibi
wrote:

I'm leaning that way but is there a method where the user only sees the month
and date as a choice and/or the day part of the date is ALWAYS the 1st?


You could store the full date (with the first of the month) and use a form
control with a Format property like "mmmm yyyy" to show "September 2008".

If you are using a combo box to select the date, just base it on a (manually
filled) table with one datefield per month.
--

John W. Vinson [MVP]
 




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 02:17 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.