Message box when query finished

T

Tony Williams

I have a number of command buttons that run various queries when clicked.
Some run extremely quickly and I want a customised message box to pop up and
say somrthing like "Update query finished, ?? number of records updated" or
"Delete query finished, ?? number of records deleted" or "Append query
finished, ?? number of records added"

Is this possible and how would I start with this?
Thanks
Tony
 
T

Tom van Stiphout

On Thu, 19 Feb 2009 04:36:00 -0800, Tony Williams

Depending on with version of Access you are using I think the help
file may have an example. It goes along the lines of:
dim db as dao.database
set db = currentdb()
db.execute "myActionQuery", dbFailOnError
msgbox "myActionQuery succeeded. Records affected: " &
db.RecordsAffected.

-Tom.
Microsoft Access MVP
 

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