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 December 1st, 2004, 02:33 PM
khalili khalili is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 3 khalili User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 24 sec
Reputation Power: 0
Red face Query by month

hello evreyone

i have a query includes a date column ..my exactly question is how can i make filtering on the date data in any month i want by ignore the days like this (12/2004) without (01/12/2004)?

thanks beforehand

Reply With Quote
  #2  
Old December 1st, 2004, 03:25 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 khalili,

In your query, create an expression for your date field to show by month/year. For example if your query contains the table Orders and the date field was named OrderDate, then your expression would look like this:

Expr1: Format([Orders]![OrderDate],"mm" & "/" & "yyyy")

Then for your criteria/filter you would enter "12/2004" and that would return all records for the month of December in the year 2004.

lwells

Reply With Quote
  #3  
Old December 3rd, 2004, 09:52 AM
khalili khalili is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 3 khalili User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 24 sec
Reputation Power: 0
hi lewlls;

i do this way befor but in little difference that i make a 2 expression one for the year and the author one for the month and this way had to be caused that i need 2 textbox in the form ;but your way is really amazing me

great lewlls and thanx

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft Access Development > Query by month


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