G
Guest
Hi
Can i save an SQL statement to an existing Query. what i would like to do is
have a crosstab on fields that will be determined at runtime. so i would have
the pivot on a field that is chosen at runtime. I can run a sub that will
generate the correct SQL, i am just lost on how to save it to an existing
query.
the full blown explanation of what i am try to do, is the following. i have
a report which is going to use a cross tab. so i need to attach a query to
the report. if i assign report.recordsource = SQL i get a message that a
crosstab can't be attached to the report. but if i use a saved crosstab and i
write report.recordsource = me.myCrosstabQry then it works. don't know why,
but it does.
thanks in advance for your help,
sam
Can i save an SQL statement to an existing Query. what i would like to do is
have a crosstab on fields that will be determined at runtime. so i would have
the pivot on a field that is chosen at runtime. I can run a sub that will
generate the correct SQL, i am just lost on how to save it to an existing
query.
the full blown explanation of what i am try to do, is the following. i have
a report which is going to use a cross tab. so i need to attach a query to
the report. if i assign report.recordsource = SQL i get a message that a
crosstab can't be attached to the report. but if i use a saved crosstab and i
write report.recordsource = me.myCrosstabQry then it works. don't know why,
but it does.
thanks in advance for your help,
sam