Microsoft Access Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft Access Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old January 21st, 2004, 03:48 PM
steven hill steven hill is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: Atlanta, GA
Posts: 2 steven hill User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to steven hill
Question Week in Month

I need to be able to calculate the week number within a month based on a given date (either Date() or a date from the field in a set of records). i.e. 1/21/2004 would fall in week 3 of 4. is there a way to do this? I know how to return the number of the week within a year, but not within a month. I am running in Access 2002. looking for either SQL syntax or possible VB code to create a global expression... help!! i have looked everywhere i can think of, and while i know i've seen this done somewhere in my past, i can't seem to find it when i need it.

Reply With Quote
  #2  
Old January 22nd, 2004, 03:11 PM
supersubra's Avatar
supersubra supersubra is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Coimbatore, India
Posts: 280 supersubra User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 15 m 10 sec
Reputation Power: 6
copy the attached textfile into one of your module. you can use whichweek(date()) function for your answer.
Attached Files
File Type: txt datefunctions.txt (7.3 KB, 1013 views)
__________________
V.Subramanian

Reply With Quote
  #3  
Old January 22nd, 2004, 03:22 PM
steven hill steven hill is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: Atlanta, GA
Posts: 2 steven hill User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to steven hill
thanks!

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft Access Help > Week in 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 5 hosted by Hostway
Stay green...Green IT