|
Enabling or Disabling Controls on a New RecordProvided by: Steve Clark, Senior Project ManagerSometimes on a form there are functions that you would like to allow the user to perform, but only if the data is for a new record. For example, there may be a button that should only be clicked for new data. An easy way to enable and disable the button is to use the Me.NewRecord property, inside of the form's On Current event property The following example shows one way to write the code: And here is the bulk of that code reduced to a single line of code!
Private Sub Form_Current() |