On an access form (access 2010), I have a line to change the enabled property in the "on_click()" event which disables the command button. The exact code is
me!cmdaddNew.enabled=false.
This does fine to disable the button. However, in the onexit() event for the same command button, I put a line(as shown below) to restore the status of the button to true. I have written some extra code that adjusts some unbound text boxes on the form which look like this: Expand|Select|Wrap|Line Numbers
- Me!txtcheckNumber = ""
- Me!txtpaymentAmt = Default
- Me!chkpaymentLate = 0
- Me!txtpaymentDate = Date
- Me!cmdaddNew.enabled=true