Execute Query in Form

D

Dave Ruhl

Hello, I know how to code a form to run an SQL
satement/query, but how do I run a saved Access query ?
I want to click a button on the form and have it execute
the saved query. Thanks!
 
R

Ron Weiner

Dave

See if

DoCmd.OpenQuery (strYourQueryName,acViewNormal,acReadOnly)

Does what you want.

Ron W
 
D

Dave Ruhl

Thanks Ron, that's exactly what I wanted!
-----Original Message-----
Dave

See if

DoCmd.OpenQuery (strYourQueryName,acViewNormal,acReadOnly)

Does what you want.

Ron W




.
 

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

Top