Hi, hopefully someone can help me with this - being relatively new to access, i might be misunderstanding some basic principles...
I have created a query that is based on a number of list boxes in my main form. One of the list boxes controls the headings/fields that is displayed in the query. All code (inc SQL) is generated on a single button click event (ie the query has no embedded sql, it is all dependant on the options from the list boxes).
This works absolutely fine, however i am unsure how i can translate this over to a report form - i obviously cant base the report on the query, because it is constantly variable (ie one report might have just two fields (name and id), and the next report might need to contain upto 30 fields).
Can someone point me in the right direction as to how to go forward with this?
Any help would be gratefuly received...
Many thanks,
Fergus.
I have created a query that is based on a number of list boxes in my main form. One of the list boxes controls the headings/fields that is displayed in the query. All code (inc SQL) is generated on a single button click event (ie the query has no embedded sql, it is all dependant on the options from the list boxes).
This works absolutely fine, however i am unsure how i can translate this over to a report form - i obviously cant base the report on the query, because it is constantly variable (ie one report might have just two fields (name and id), and the next report might need to contain upto 30 fields).
Can someone point me in the right direction as to how to go forward with this?
Any help would be gratefuly received...
Many thanks,
Fergus.