How can I set the enabled property of a command button to false if the form is opened in add mode?
I injanib via AccessMonster.com Aug 21, 2007 #1 How can I set the enabled property of a command button to false if the form is opened in add mode?
K Ken Snell \(MVP\) Aug 21, 2007 #2 Test the DataEntry property in the form's Load event procedure. If it's True, then the form is being opened in Add mode: Private Sub Form_Load() Me.CommandButton.Enabled = Not Me.DataEntry End Sub
Test the DataEntry property in the form's Load event procedure. If it's True, then the form is being opened in Add mode: Private Sub Form_Load() Me.CommandButton.Enabled = Not Me.DataEntry End Sub
I injanib via AccessMonster.com Aug 21, 2007 #3 thanks! Test the DataEntry property in the form's Load event procedure. If it's True, then the form is being opened in Add mode: Private Sub Form_Load() Me.CommandButton.Enabled = Not Me.DataEntry End Sub Click to expand...
thanks! Test the DataEntry property in the form's Load event procedure. If it's True, then the form is being opened in Add mode: Private Sub Form_Load() Me.CommandButton.Enabled = Not Me.DataEntry End Sub Click to expand...