Just wondering if someone can comment on the following - is it possible?
I have an application where I want a user to be able to devise their on if/what tests based on data in one table. I figure that I can create a Form based on the table in question and they can use this with a button for the Query Geneie to create/test a Query and save the query.
When they exit the Query Genie, I want to check the saved queries for the table and add any new ones to a seperate table that contains all query names for the table and a flag used to indicate if the Query is a Test Query (default when a new Query added to this table) or a Live Query.
In a Form that is 'not related' to the table that the Queries were created for, I would need to code in a routine that, for each query flagged as Live in my special queries table, run that query against an opened instance of the related table. This is to occur without user intervention.
So I guess my questions are:
Is it possible to code a routine that will get a list of saved queries for a specified table? (from which I would then maintain my special saved queries table of info)?
Is it possible to then run a saved query based on a table that is opened in a form where the Form is not related to the table in question?.. So lets say my form is based on table A. In an ontimer routine I manually open table B, run one or more saved queries (that my user previously created and is flagged as Live in my special queries table), interogating the result of each query (number of records and associated table data).
Hope this makes sense... any direction would be much appreciated.
Regards,
Scott
I have an application where I want a user to be able to devise their on if/what tests based on data in one table. I figure that I can create a Form based on the table in question and they can use this with a button for the Query Geneie to create/test a Query and save the query.
When they exit the Query Genie, I want to check the saved queries for the table and add any new ones to a seperate table that contains all query names for the table and a flag used to indicate if the Query is a Test Query (default when a new Query added to this table) or a Live Query.
In a Form that is 'not related' to the table that the Queries were created for, I would need to code in a routine that, for each query flagged as Live in my special queries table, run that query against an opened instance of the related table. This is to occur without user intervention.
So I guess my questions are:
Is it possible to code a routine that will get a list of saved queries for a specified table? (from which I would then maintain my special saved queries table of info)?
Is it possible to then run a saved query based on a table that is opened in a form where the Form is not related to the table in question?.. So lets say my form is based on table A. In an ontimer routine I manually open table B, run one or more saved queries (that my user previously created and is flagged as Live in my special queries table), interogating the result of each query (number of records and associated table data).
Hope this makes sense... any direction would be much appreciated.
Regards,
Scott
Comment