Changing Criteria Parameters

tuktuk

Well-known Member
Joined
Nov 13, 2006
Messages
856
I have a report that is build on monday where a module runs qrys and exports to an excel file.

my issue is that every Monday i need to chagne the date criteria on all of the 9 queries.

for example: qry_PostPriceBanding has a criteria ">=#5/16/2011#" set on a field called "SendDate". this data was correct for the run yesterday but when Monday 7/25/11 comes around i'll need to add 7 days to the criteria ">=#5/16/2011#" to get the desired output.

is there an easy way to do this? can it be done using vba?

thanks
tuk
 
Okay. Another shot (if you still can't get it to work directly with the crosstab) is to set it up with a normal select query with your parameters and criteria etc., then run the cross tab off of that query.

Offhand, I'm not sure about crosstabs in this situation but it looks like you've got a good source to go from with the web page from Allen Browne.
 
Upvote 0

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

Forum statistics

Threads
1,224,518
Messages
6,179,256
Members
452,901
Latest member
LisaGo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top