Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CONFIRM MSGBOX after query run successfully

Status
Not open for further replies.

ciel220

Programmer
Jan 12, 2001
35
0
0
CA
Hi,

Could anyone one tell me how could I create a confirm dialog box to prompt user that a query has been run successfully?

I'm using, DoDmd Runquery "", to run a append query.
I wonder if there's a way to confirm after the append suceed.

THANKS SO MUCH!!

ciel
 
Add:
SetWarnings True
before running your query.


[pipe]
Daniel Vlas
Systems Consultant
danvlas@yahoo.com
 
Is there a way that I could create a 'customize Msgbox' for confirmation?

Thanks a lot!
ciel
 
Public Sub BerichtWeergeven(strMessage As String)
MsgBox strMessage, vbExclamation, "Let op!"
End Sub
I often use this one.
but with acdialog and popupforms u can do the job completely customized. I think u can figure out by urself ;)

Gerard
 
But how you know if your query suceed?
There might be some 'run query error' and I don't want to prompt a success msg everytime.

Is there a way that I can
1. make sure query run success (ex. if (true) then...)
2. prompt msg

I am new to access VBA and I wonder how I could do that.

Thanks a bunch!

ciel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top