Does anyone know the syntax to query for data between 3 months ago and 1 month ago, ie.
>=DateAdd("m",-3,Date()) And <=DateAdd("m",-1,Date())
or
Between DateAdd("m",-3,Date()) And DateAdd("m",-1,Date())
I've tried both, and neither works. Can you use the "dateadd" function in a "between" statement?
This is being used in the criteria part of a query in Design SQL.
Thanks.
>=DateAdd("m",-3,Date()) And <=DateAdd("m",-1,Date())
or
Between DateAdd("m",-3,Date()) And DateAdd("m",-1,Date())
I've tried both, and neither works. Can you use the "dateadd" function in a "between" statement?
This is being used in the criteria part of a query in Design SQL.
Thanks.