Prev: UNLOCK A SECURED CODE MODULE
Next: How do I setup a date field property that allows only Saturdays?
From: WSR on 11 Mar 2010 10:14 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^>)-]=[
From: Jeff Boyce on 11 Mar 2010 11:05 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" <wsr-203(a)hotmail.com> wrote in message news:Omowb2SwKHA.732(a)TK2MSFTNGP06.phx.gbl... > 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^>)-]=[ >
From: WSR on 12 Mar 2010 14:05 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" <nonsense(a)nonsense.com> wrote in message news:eaTz4STwKHA.5812(a)TK2MSFTNGP02.phx.gbl... > 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" <wsr-203(a)hotmail.com> wrote in message > news:Omowb2SwKHA.732(a)TK2MSFTNGP06.phx.gbl... >> 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^>)-]=[ >> > >
|
Pages: 1 Prev: UNLOCK A SECURED CODE MODULE Next: How do I setup a date field property that allows only Saturdays? |