Defaulting to Saturday date

V

Virginia

Hi all,

I have a field for a date to be input, and I want to create a query that
takes this date and returns another field with the date that Saturday. So if
Saturdays date is input it should show the same date, and any other should be
the next Saturday.

Any ideas please?
 
T

tina

in your query, try adding the following calculated field, as

BumpedDate:[DateFieldName]+(7-DatePart("w",[DateFieldName]))

the above goes all on one line, regardless of linewrap in this post. replace
DateFieldName with the correct name of the date field in your table, of
course. suggest you read up on the DatePart() function, so you'll understand
how it works.

hth
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top