J
Jesper Fjølner
I need to display the result of a crosstab query in a subform control.
I used a regular subform but since my query will have a variable number of
columns this doesn't work as the form that goes into the subform only has a
set number of fields.
What I need is something that looks like a datagrid but accept a variable
number of columns generated by a dynamic crosstab query (the number of
columns changes everytime the code runs).
I've tried creating a querydef and setting the sourceobject of the subform
to the querydef but that doesn't work. I think the sourceobject can only be
a form/report
Is it possible to get this gridlike behaviour with a variable number of
columns?
Thanks for any input.
I used a regular subform but since my query will have a variable number of
columns this doesn't work as the form that goes into the subform only has a
set number of fields.
What I need is something that looks like a datagrid but accept a variable
number of columns generated by a dynamic crosstab query (the number of
columns changes everytime the code runs).
I've tried creating a querydef and setting the sourceobject of the subform
to the querydef but that doesn't work. I think the sourceobject can only be
a form/report
Is it possible to get this gridlike behaviour with a variable number of
columns?
Thanks for any input.