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
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