I am using VB6 and ADO to connect to an Access database. I have created a database and a large table in the database at runtime. Now I need to perform queries against the table to create a report. Due to the requirements of the report format, it will take multiple queries to create the recordset on which the report is based. I know I could create intermediate tables, but I would like to try to add the queries to the database at runtime then run the (last?) query to create the recordset for the report (just like Access in which you can query a query). Part of the reason is that once one report is done, the user will have the option of creating a new report, so rather than clutter the database with tables, I will clutter it with queries.
I found a MS Knowledgebase 'HowTo' on using "ADO and ADOX to modify the base query of an Access QueryDef Object in Visual Basic" (# 255782), but I cannot seem to make (i.e., understand) the leap from modifying an existing query to creating a new query. Is it possible and what is the syntax? Also, how do I run the query in VB to create the needed recordset?
thanks,
Jim
I found a MS Knowledgebase 'HowTo' on using "ADO and ADOX to modify the base query of an Access QueryDef Object in Visual Basic" (# 255782), but I cannot seem to make (i.e., understand) the leap from modifying an existing query to creating a new query. Is it possible and what is the syntax? Also, how do I run the query in VB to create the needed recordset?
thanks,
Jim