Disabling Command Button if record/records not saved

basshead22

Registered User.
Local time
Today, 14:39
Joined
Dec 17, 2013
Messages
52
Hello all !!

Is there a way to disable my print report button if the user has not hit the save button ???? and maybe display a msg box?

attached a snippit of my form.

Thanks in advance!
 

Attachments

  • screen cap.JPG
    screen cap.JPG
    50.5 KB · Views: 95
in your form current event put

Code:
myButton.enabled=false
in your save button after update event put

Code:
myButton.enabled=true
replace myButton with the name of your button
 
Thanks for replying CJ London, put on my save button there is no after update event .. is there another property I can put it on? also will this disable my print button ? since there isn't any code going to my print button?
 
sorry - should have said the click event
 
Still trying to figure out how to work this one..

any help??
 
put one bit of code in the form current event and the other in your save click event
 

Users who are viewing this thread

Back
Top Bottom