D
Dale Campbell
Hello all,
I am working with Access '97. I need to create a visual basic script that
will create many different cross tabulations and then save each individual
cross tab as excel file. Below is an example of the script I am trying to
run. It is only one set of the script which I will duplicate for each cross
tab.
It will not let me run the script as I have not put a INSERT INTO or CREATE
TABLE statement.
DoCmd.RunSQL " TRANSFORM Count(RSI.respid) AS CountOfrespid " _
& " SELECT RSI.site " _
& " FROM RSI " _
& " GROUP BY RSI.site " _
& " PIVOT RSI.survey;", -1
DoCmd.OutputTo acQuery, , "MicrosoftExcel(*.xls)",
"d:\review\crosstab\r1.xls", False, ""
I am sure this not even on right track so if anyone please give guidance as
to how I can improve my query so that it will run it would be greatly
appreciated.
Regards,
Dale Campbell
I am working with Access '97. I need to create a visual basic script that
will create many different cross tabulations and then save each individual
cross tab as excel file. Below is an example of the script I am trying to
run. It is only one set of the script which I will duplicate for each cross
tab.
It will not let me run the script as I have not put a INSERT INTO or CREATE
TABLE statement.
DoCmd.RunSQL " TRANSFORM Count(RSI.respid) AS CountOfrespid " _
& " SELECT RSI.site " _
& " FROM RSI " _
& " GROUP BY RSI.site " _
& " PIVOT RSI.survey;", -1
DoCmd.OutputTo acQuery, , "MicrosoftExcel(*.xls)",
"d:\review\crosstab\r1.xls", False, ""
I am sure this not even on right track so if anyone please give guidance as
to how I can improve my query so that it will run it would be greatly
appreciated.
Regards,
Dale Campbell