calling a query

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

Guest

How do I call a query by clicking on a button in a form?

Thanks!
Ron
 
Anakin said:
How do I call a query by clicking on a button in a form?

Thanks!
Ron

In design mode set the "On Click" property to open query.
 
Which kind of Query you want to "call"?

A Select Query returns rows while an Action Query performs some action but
does not return any row.

Check Access VB Help on the OpenQuery Method of the DoCmd object.
 
Thanks! I was just trying to open a standard query (not sure what other kinds
of queries there are).

DoCmd.OpenQuery "Query" works!

Thanks again!
 
Thanks!

Van T. Dinh said:
Which kind of Query you want to "call"?

A Select Query returns rows while an Action Query performs some action but
does not return any row.

Check Access VB Help on the OpenQuery Method of the DoCmd object.
 

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