Microsoft Access Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft Access Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old November 14th, 2004, 11:41 AM
Rishyraj Rishyraj is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 53 Rishyraj User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 29 m
Reputation Power: 5
Smile Changing date field to month only field

Hi,

I have lot of transactions, in various months, under different dates. When i make a query, i want the all the dates in a month to be named after that specific month.

Example:

11/15/2004 - Should read as november,2004

11/16/2004 - should read as november, 2004.

12/06/2004 - shoud read as december, 2004

This would help me in report, so that i can group them by month and get the overall transaction values.

Can any one help me.

Iwells, you seem to be guru. I tried the above reply u wrote to Kat. That gives me only for the current month. Can you please extend it to all months.

Thankyou

Reply With Quote
  #2  
Old November 14th, 2004, 04:13 PM
lwells lwells is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Sep 2004
Posts: 632 lwells User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 21 h 59 m 38 sec
Reputation Power: 5
Hi Rishyraj,

I had posted this under the other thread to Kat,

In your query make a new expression and give it whatever name you like:

Format([YourDate],"mmmm" & " " & "yyyy") Gives Month and Year with a space between them
Format([YourDate],"mmmm" & ", " & "yyyy") Gives Month and Year with a comma between them

In your report group by the name you have given this expression.

lwells

Reply With Quote
  #3  
Old November 14th, 2004, 11:53 PM
Rishyraj Rishyraj is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 53 Rishyraj User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 29 m
Reputation Power: 5
Unhappy Iwells..a small problem

I got success in grouping by month in the report with your help. But now, the grouping is in alphabetical order, due to which the months are not lined in.

for example..

December 2004

Febrauary 2004

January 2004

Please advise.

Thank you

Rishy







Quote:
Originally Posted by lwells
Hi Rishyraj,

I had posted this under the other thread to Kat,

In your query make a new expression and give it whatever name you like:

Format([YourDate],"mmmm" & " " & "yyyy") Gives Month and Year with a space between them
Format([YourDate],"mmmm" & ", " & "yyyy") Gives Month and Year with a comma between them

In your report group by the name you have given this expression.

lwells

Reply With Quote
  #4  
Old November 15th, 2004, 08:02 AM
lwells lwells is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Sep 2004
Posts: 632 lwells User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 21 h 59 m 38 sec
Reputation Power: 5
Create another expression Format([YourDate],"mm") this will give you the months in a number...Jan =1, Feb =2 and so forth. Then set the column to ascending.

lwells

Reply With Quote
  #5  
Old November 15th, 2004, 09:49 AM
Rishyraj Rishyraj is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 53 Rishyraj User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 29 m
Reputation Power: 5
Smile Thank you

Iwells, thank you again. Your advise helped me, But again u know, one problem, I had got the dates to number order. There is an exception in the data in am working on. Most of the data pertain to november and december, but one pertains to April 04. So when i am sorting them by month number and year i get the following.

04 05 = April 05
11 04 = Novemeber 04
12 04 = December 04

Where as i want it to be

11 04 = Novemeber 04
12 04 = December 04
04 05 = April 05

The above is the grouping order i am getting in report.

Can you please advise.










Quote:
Originally Posted by lwells
Create another expression Format([YourDate],"mm") this will give you the months in a number...Jan =1, Feb =2 and so forth. Then set the column to ascending.

lwells

Reply With Quote
  #6  
Old November 15th, 2004, 11:59 AM
lwells lwells is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Sep 2004
Posts: 632 lwells User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 21 h 59 m 38 sec
Reputation Power: 5
Sort by year and then by month

lwells

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft Access Development > Changing date field to month only field


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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 On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT