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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

display the date for every Tuesday

Status
Not open for further replies.

impulse24

IS-IT--Management
Jul 13, 2001
167
US
Hi,

I am running a query, but in part of the query, I only want to check for every Tuesday, and display what the date would be for that Tuesday. Can anyone please help. Thanks
 
Not sure exactly what you are trying to do but you probably want to use the Weekday function. Eg, to only display a date if its a Tuesday:

=iif(Weekday(MyDate)=3, MyDate)

Note, sunday = 1, monday = 2 etc. You can change the default by indicating the required first day of the week in the function call (see the help page in Access). Best Regards,
Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top