Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

extract monthly dates using a query to a table 1

Status
Not open for further replies.

wattyl

Technical User
May 1, 2002
14
0
0
GB
Hi out there,
How can i find records that are due updates in a certain month using a query.
The query has Location/Number/Name and the due date as column headings but I cant work out the criteria required to extract the due dates anybody any ideas
 
Replace your date column with an expression that extracts the number representing the month in your date field.

Field:
MonthDue:Month([NameOfYourDateField])
Criteria:
[Enter the number representing the month due.]

Or, if you want the user to enter an abbreviation

Field:
MonthDue:Format$(Month([NameOfYourField]),"mmm")

Or, if you want the spell out the month

Field:
MonthDue:Format$(Month([NameOfYourField]),"mmmm")
 
Ooops! Ignore the second part of my post. It should be..

Field:MonthDue: Format$([YourDateField],"mmm")

got a little carried away, sorry.
 
Tremendous it works a treat, many thanks for your help
[bigglasses]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top