Group:  Microsoft Excel ยป microsoft.public.excel.querydao
Thread: How to get MonthName in Microsoft Query

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

How to get MonthName in Microsoft Query
Rakesh Parekh 10.07.2006 11:48:02
Dear Sir,

I am using a date field in Microsoft Query in Excel 2003.
I want the query to return MonthName instead of date. the
Query is: Select MonthName(Order_Date) as Date from ORDERS. I
have also tried CMonth Function but I am not able to return
only the MonthName from date value. Function Month() works but it
gives month in numbers like 1,2 3 but I want in Jan, Feb, Mar etc.
Can you please help. Where can I see list of functions supported by
Microsoft Query.

Thanks,
Rakesh
Re: How to get MonthName in Microsoft Query
"Don Guillett" <dguillett1[ at ]austin.rr.com> 10.07.2006 12:15:36
=text(month(yourdate),"mmm")

--
Don Guillett
SalesAid Software
dguillett1[ at ]austin.rr.com
"Rakesh Parekh" <RakeshParekh[ at ]discussions.microsoft.com> wrote in message
news:1EEB684F-DB06-4C5A-B6ED-79F6CA113A6F[ at ]microsoft.com...
[Quoted Text]
> Dear Sir,
>
> I am using a date field in Microsoft Query in Excel 2003.
> I want the query to return MonthName instead of date. the
> Query is: Select MonthName(Order_Date) as Date from ORDERS. I
> have also tried CMonth Function but I am not able to return
> only the MonthName from date value. Function Month() works but it
> gives month in numbers like 1,2 3 but I want in Jan, Feb, Mar etc.
> Can you please help. Where can I see list of functions supported by
> Microsoft Query.
>
> Thanks,
> Rakesh


Re: How to get MonthName in Microsoft Query
"Don Guillett" <dguillett1[ at ]austin.rr.com> 10.07.2006 12:16:18
OR this might be better
=text(yourdate,"mmm")

--
Don Guillett
SalesAid Software
dguillett1[ at ]austin.rr.com
"Rakesh Parekh" <RakeshParekh[ at ]discussions.microsoft.com> wrote in message
news:1EEB684F-DB06-4C5A-B6ED-79F6CA113A6F[ at ]microsoft.com...
[Quoted Text]
> Dear Sir,
>
> I am using a date field in Microsoft Query in Excel 2003.
> I want the query to return MonthName instead of date. the
> Query is: Select MonthName(Order_Date) as Date from ORDERS. I
> have also tried CMonth Function but I am not able to return
> only the MonthName from date value. Function Month() works but it
> gives month in numbers like 1,2 3 but I want in Jan, Feb, Mar etc.
> Can you please help. Where can I see list of functions supported by
> Microsoft Query.
>
> Thanks,
> Rakesh


Re: How to get MonthName in Microsoft Query
Rakesh Parekh 11.07.2006 05:47:02
Dear Don,

Is Text() SQL function? I understand it is Excel function
to format date. What I want is in the SQL query
to return MonthName instead of date like
Select MonthName("01/01/2006") from orders
result I want is "Jan". Pls help.

Regards,
Rakesh

"Don Guillett" wrote:

[Quoted Text]
> OR this might be better
> =text(yourdate,"mmm")
>
> --
> Don Guillett
> SalesAid Software
> dguillett1[ at ]austin.rr.com
> "Rakesh Parekh" <RakeshParekh[ at ]discussions.microsoft.com> wrote in message
> news:1EEB684F-DB06-4C5A-B6ED-79F6CA113A6F[ at ]microsoft.com...
> > Dear Sir,
> >
> > I am using a date field in Microsoft Query in Excel 2003.
> > I want the query to return MonthName instead of date. the
> > Query is: Select MonthName(Order_Date) as Date from ORDERS. I
> > have also tried CMonth Function but I am not able to return
> > only the MonthName from date value. Function Month() works but it
> > gives month in numbers like 1,2 3 but I want in Jan, Feb, Mar etc.
> > Can you please help. Where can I see list of functions supported by
> > Microsoft Query.
> >
> > Thanks,
> > Rakesh
>
>
>

Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net