CJ
Board Regular
- Joined
- Feb 22, 2002
- Messages
- 77
Hi,
I have a union query that links 10 queries together and this code in the date field to alway run for last month
Between DateSerial(Year(Date()),Month(Date())-1,1) And DateSerial(Year(Date()),Month(Date()),0)
This works well...
I have being asked to copy the above and have it set up to run different month periods setups (muliple months) this means amending the code but then opening all 10 queries to amend the order date field.
My Question is there anyway I can just add the date code in the 1st query and have all the other 9 pick up that date code, it would save me so much time.
Thanks
I have a union query that links 10 queries together and this code in the date field to alway run for last month
Between DateSerial(Year(Date()),Month(Date())-1,1) And DateSerial(Year(Date()),Month(Date()),0)
This works well...
I have being asked to copy the above and have it set up to run different month periods setups (muliple months) this means amending the code but then opening all 10 queries to amend the order date field.
My Question is there anyway I can just add the date code in the 1st query and have all the other 9 pick up that date code, it would save me so much time.
Thanks