Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Access only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Member List
Calendar
Today's Posts
Home
Forum
Topic
Access
Query help
Query help
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
KathyB
New Member
Join Date:
Oct 2006
Posts:
4
#1
Query help
Oct 20 '06, 04:17 PM
I have a column with expiration dates (in a ## / ## / ## format). I'd like to query those dates by month. Any ideas how to set up the criteria?
Thanks,
Kathy
MMcCarthy
Recognized Expert
MVP
Join Date:
Aug 2006
Posts:
14387
#2
Oct 20 '06, 04:23 PM
To get the month value of a date
Month(DateField Name)
Returns 1 for January etc...
Originally posted by
KathyB
I have a column with expiration dates (in a ## / ## / ## format). I'd like to query those dates by month. Any ideas how to set up the criteria?
Thanks,
Kathy
Comment
Post
Cancel
KathyB
New Member
Join Date:
Oct 2006
Posts:
4
#3
Oct 20 '06, 04:30 PM
I'm getting an Invalid Syntax message.
I'm entering Month(ChangeOut Date) in the criteria row for that same column.
Comment
Post
Cancel
KathyB
New Member
Join Date:
Oct 2006
Posts:
4
#4
Oct 20 '06, 04:32 PM
I have entries in the ChangeOutDate column in a ## / ## / ## format. I'd like the user to be able to query all items expiring in November.
Maybe this example will help.
thanks again,
Kathy
Comment
Post
Cancel
MMcCarthy
Recognized Expert
MVP
Join Date:
Aug 2006
Posts:
14387
#5
Oct 20 '06, 04:46 PM
Don't put it in the criteria section.
Create a new column
MonthNo: Month([ChangeOutDate])
You can then set the criteria on this column to:
1 (This will return all records for January)
2 (This will return all records for February)
etc...
Originally posted by
KathyB
I'm getting an Invalid Syntax message.
I'm entering Month(ChangeOut Date) in the criteria row for that same column.
Comment
Post
Cancel
KathyB
New Member
Join Date:
Oct 2006
Posts:
4
#6
Oct 20 '06, 05:21 PM
Got it!
Thanks so much.
Kathy
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
👍
👎
☕
Comment