P
Paul Richards
I need to retrieve data where SOMEDATE = TODAY'S DATE + 1 week.
What's the correct way to form the expression?
Thanks
What's the correct way to form the expression?
Thanks
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Paul Richards said:I need to retrieve data where SOMEDATE = TODAY'S DATE + 1 week.
What's the correct way to form the expression?
Tom Lake said:SOMEDATE = Date() + 7
Or DateAdd("w", 1, Date())
Neil said:Paul,
I'm assuming you want to use a query to retrieve your data, if so use the
following line in the date criteria for your query.
=Now()+7
This will return all records where the date is exactly seven days from the
current date, alternatively you can use the usual mathematical <>= symbols
to
get the date before and after a certain date.
Alternatively if the date is variable, you could ask your users for the
date
required, use:
[Enter Date]
in the date criteria for your query, this will display a small dialog box
and the query will halt until your users have entered the required date.
HTH
Neil
www.nwarwick.co.uk
Paul Richards said:I need to retrieve data where SOMEDATE = TODAY'S DATE + 1 week.
What's the correct way to form the expression?
Thanks
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.