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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disable X on user form REF: thread707-746401

Status
Not open for further replies.

cjjn

Technical User
Jun 2, 2004
35
CA
Hello,

I have read this and i have just one silly question...

Where do I put the code that gives the Message Box?

Thanks in advance
 
In the UserForm_QueryClose event procedure, as clearly stated in the referenced thread.
 
Oh man
Ever have one of those days where you feel dumb as a post?!

Thank you PHV.

Now what happens if I want the form to close once data has been entered and they click my OK button?

I have 'Unload Me' in there - but it still doesnt close the form.

Thanks again.
 
Perhaps something like this ?
Unload NameOfUserForm

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
No, I had tried both ways before posting.
 
cijn,

Can you post your QueryClose event and OK button Click event code. That might help. The code in thread707-746401 + a CommandButton firing Unload Me works fine for me.


Regards,
Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top