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

Exit Macro to disable a field 1

Status
Not open for further replies.

snapshot

Technical User
Oct 26, 2001
43
GB
Total novice in VBA - I want an exit macro in a drop down form field that will disable certain check boxes. Could anyone give me a code example to start from please?

 
Hi,

What kind of checkbox -- Form or Control Toolbox?

Skip,

[glasses] [red]Be advised:[/red] Researchers have found another Descartes trueism, "Cogito ergo spud."
"I think; therefore, I YAM!
[tongue]
 
Hi,
well whatever event you want to step this up to.

This is the code that would close your macro.
'GUI is your main
Unload GUI
Set GUI = Nothing
Hope this helps

Jay
 


Also what application?

Skip,

[glasses] [red]Be advised:[/red] Researchers have found another Descartes trueism, "Cogito ergo spud."
"I think; therefore, I YAM!
[tongue]
 

Code:
formfields("MyCheckBox").Enabled=false


Skip,

[glasses] [red]Be advised:[/red] Researchers have found another Descartes trueism, "Cogito ergo spud."
"I think; therefore, I YAM!
[tongue]
 
Many thanks SkipVought. Exactly what I wanted.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top