requerying

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Can I use "requery" in VB to run a query without having to open the query? I
have tried through the help to understand this command but I am not clear. My
situation is that I have a report that provides summary data on multiple
characteristics of a given identifer (say soil type). Each characteristic is
summarized on the report in its own subreport, which is itself based on a
"sub"query ( this is necessary due to various calculations within each
query). What I would like to do is rerun each query underlying the subreports
each time a different soil type is chosen. I can do this in VB by using the
"OpenQuery" function on each query, but that results in 10 to 15 queries
being opened in the database, and quite a visual mess. If not the requery
function, is there a way to run, or "updating", the queries without opening
them ??
 
Can I use "requery" in VB to run a query without having to open the query? I
have tried through the help to understand this command but I am not clear. My
situation is that I have a report that provides summary data on multiple
characteristics of a given identifer (say soil type). Each characteristic is
summarized on the report in its own subreport, which is itself based on a
"sub"query ( this is necessary due to various calculations within each
query). What I would like to do is rerun each query underlying the subreports
each time a different soil type is chosen. I can do this in VB by using the
"OpenQuery" function on each query, but that results in 10 to 15 queries
being opened in the database, and quite a visual mess. If not the requery
function, is there a way to run, or "updating", the queries without opening
them ??

Ummm...

If the Report is based on a query which includes these subqueries,
simply open the Report.

It is not necessary to open or run any of the subqueries in their
stand-alone state. Opening the report will run all of them.

You're making this much harder than it really is!

John W. Vinson[MVP]
 
Oh... yeah, I can sometimes do that. I will try that and see how it works.
Thanx.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top