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 Format



 
 
Thread Tools Display Modes
  #1  
Old March 11th, 2010, 04:14 PM posted to microsoft.public.access.tablesdbdesign
WSR[_2_]
external usenet poster
 
Posts: 40
Default Date Format

I'd like to create my own Date / Time format. The Excel Equivalent is
MMM-YYYY (Mar-2010).

How can I change/create a new date format that will be displayed MMM-YYYY?

I want to be able to query this table and run criteria based on the date.

Thanks.

(B^)-]=[


  #2  
Old March 11th, 2010, 05:05 PM posted to microsoft.public.access.tablesdbdesign
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default Date Format

You can create a custom display format for date that looks like "MMM-YYYY"
.... but if your underlying data is a date/time field, you will still be
storing a date/time value.

Mar-2010 is not a date.

If you are trying to create a query that requires selection criteria in that
format, why? Is there a reason not to just search for a date in March,
2010?

And how are you looking to collect that selection criterion for your query?

Regards

Jeff Boyce
Microsoft Access MVP

--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or pseudocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.

"WSR" wrote in message
...
I'd like to create my own Date / Time format. The Excel Equivalent is
MMM-YYYY (Mar-2010).

How can I change/create a new date format that will be displayed MMM-YYYY?

I want to be able to query this table and run criteria based on the date.

Thanks.

(B^)-]=[



  #3  
Old March 12th, 2010, 08:05 PM posted to microsoft.public.access.tablesdbdesign
WSR[_3_]
external usenet poster
 
Posts: 15
Default Date Format

Jeff:

Thanks for the reply. I used your advice and it works fine.

What I was doing was reformatting a column to date time and wanted just the
MMM-YYYY to display rather than the exact date.

Your solution works fine. Now I'm able to query things like "12/31/2008"

Thanks.

Bill


"Jeff Boyce" wrote in message
...
You can create a custom display format for date that looks like "MMM-YYYY"
... but if your underlying data is a date/time field, you will still be
storing a date/time value.

Mar-2010 is not a date.

If you are trying to create a query that requires selection criteria in
that format, why? Is there a reason not to just search for a date in
March, 2010?

And how are you looking to collect that selection criterion for your
query?

Regards

Jeff Boyce
Microsoft Access MVP

--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or pseudocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.

"WSR" wrote in message
...
I'd like to create my own Date / Time format. The Excel Equivalent is
MMM-YYYY (Mar-2010).

How can I change/create a new date format that will be displayed
MMM-YYYY?

I want to be able to query this table and run criteria based on the date.

Thanks.

(B^)-]=[





 




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 04:32 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.