Query ?

  • Thread starter Thread starter Sam
  • Start date Start date
S

Sam

I have a select statment
that I would like to run on a button click event
and produce a view of the data.
docmd.runsql does not allow you to use the select statment
and it does not allow you to view the records.
What is the best way to achive this?

TIA
San
 
Sam,

Save your query and use the command button to open it in datasheet view.
HTH,
Nikos
 
Sam,
you can use DoCmd.OpenQuery for the select statement
DoCmd.RunSql is for Action queries ie Update,Delete etc..

David K
 

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

Similar Threads


Back
Top