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

How do I disable a button 1

Status
Not open for further replies.

dennisell

Technical User
Sep 24, 2002
14
US
I can't figure out how to disable a button based on a value in a field on the same form. I want it to disable a button if the value is <1.

I appreciate any help.
 
Try in the afterUpdate event of the field:

If Me![name of field] < 1 Then Me![name of button].Enabled = False



This will cause the button the be greyed out and unusable. Please remember to give helpful posts the stars they deserve! This makes the post more visible to others in need! [thumbsup2]

Robert L. Johnson III, A+, Network+, MCP
Access Developer/Programmer
robert.l.johnson.iii@citigroup.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top