|
-
Jan 31st, 2012, 01:34 PM
#1
Thread Starter
Frenzied Member
DateSerial
Hi all,
Not sure if this should be in this forum, or the database development one instead...so if this needs to be moved, let me know.
Soo, I've just confused myself a bit since I need to change up some date criteria in some access queries.
I'm currently using the following to calculate the first and last day of the current month.
Code:
Between
(DateSerial(Year(Date()), Month(Date()), 1)) and (DateSerial(Year(Date()), Month(Date()) + 1, 0))
and I'm using its counter part here, to grab the first and last day of the previous month:
Code:
Between (DateSerial(Year(Date()),Month(Date())-1,1)) And (DateSerial(Year(Date()),Month(Date()),0))
However, I am now in need of saying that the month begins on the 2nd week of the current month, and ends after the 1st week in the next month. (mondays to be exact)
I'm hoping this can be achieved like the above so that I can use it as criteria in queries and not just pure VB code.
Thanks for any assistance.
:::`DISCLAIMER`:::
Do NOT take anything i have posted to be truthful in any way, shape or form.
Thank You!
--------------------------------
"Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
"Finaly I can look as gay as I want..." - NoteMe
Languages: VB6, BASIC, Java, C#. C++
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|