I have a macro that refreshes data based upon an MSQuery.
It works fine but I have to manually enter the paramaters for the date field, stating:
>=#01/09/2005# And <=#01/09/2006#
What I would like to have is:
>=Today()-30 And <=Today()+30
but when I enter this, MSQuery does not like the statement.
What is the syntax for this sort of query where you want data returned based upon todays date + or - a number days.
Help much appreciated.
Jeremy
It works fine but I have to manually enter the paramaters for the date field, stating:
>=#01/09/2005# And <=#01/09/2006#
What I would like to have is:
>=Today()-30 And <=Today()+30
but when I enter this, MSQuery does not like the statement.
What is the syntax for this sort of query where you want data returned based upon todays date + or - a number days.
Help much appreciated.
Jeremy