F
FGM
I make crosstab queries to build a table. The crosstab query table:
Proj source Rec1 Rec2 Rec3
7 1 25 26 34
7 2 22 24 15
7 3 17 18 22
8 1 16 22 18
8 2 14 23 19
This works okay when each project has the same Rec names. However, if they
do not then in the above example I could have Rec1 R1 Rec2 R2 Rec3
R3.
The data gets written with the Excel.Application to excel with each project
on a separate worksheet and I do not want R1, R2, R3 showing up for Proj 7 if
it is not part of Proj 7.
I use VBA to run by output and need to be able to loop through each Proj
running the crosstab for just that project and sending it to excel.
My problem is that I do not know how to send a parameter to the crosstab
query from vba to run it through a loop so that one project is fed to the
crosstab at a time.
I have read the entries for qdf.parameters on the internet and in the books
I have but cannot seem to understand them or if they can be used with
crosstab queries..
Any help would be most appreciated. I am using windows 2000 / Access 2002
Thank you.
Proj source Rec1 Rec2 Rec3
7 1 25 26 34
7 2 22 24 15
7 3 17 18 22
8 1 16 22 18
8 2 14 23 19
This works okay when each project has the same Rec names. However, if they
do not then in the above example I could have Rec1 R1 Rec2 R2 Rec3
R3.
The data gets written with the Excel.Application to excel with each project
on a separate worksheet and I do not want R1, R2, R3 showing up for Proj 7 if
it is not part of Proj 7.
I use VBA to run by output and need to be able to loop through each Proj
running the crosstab for just that project and sending it to excel.
My problem is that I do not know how to send a parameter to the crosstab
query from vba to run it through a loop so that one project is fed to the
crosstab at a time.
I have read the entries for qdf.parameters on the internet and in the books
I have but cannot seem to understand them or if they can be used with
crosstab queries..
Any help would be most appreciated. I am using windows 2000 / Access 2002
Thank you.