Password & Exit Question

Lochdanon

Registered User.
Local time
Yesterday, 22:03
Joined
May 7, 2003
Messages
21
Hi,

I need a kind persons help with the attached file. I would like it to edit out the table, but I just can't seem to figure out the syntax for the three buttons on the form (Add, Remove, & Change). Hopefully one of you brilliant people can show me the way. I hate being a newbie ... I should know this stuff!

And, how do you get an exit button to prompt a user for a yes / no answer

Thanks
 

Attachments

Exit button answer first.

On the On_Click event of your exit button, select [event procedure] and use the following code or modify the code created by the wizard.

Code:
Sub buttonName On_Click()
If msgbox ("Are you sure you want to quit?", vbYesNo, "Confirm Exit") = vbYes then
docmd.quit
end if
end sub
 
Thanks ... I knew most of this stuff was easy.
 

Users who are viewing this thread

Back
Top Bottom