L
LeLe
I have set my form to be non editable when it first loads by setting the
allow edits property to no. I then added a button called edit record so the
user can make changes. I want to change the appearance of the controls when
the form is "allowing edits" I have done this many times by changing the
property for on entry and exit, but I can't figure out how to make this only
happen when in "edit mode" I also have the added complication of a subform
which I would like to work the same way. Here is my code so far...
Private Sub EditRecordBut_Click()
Me.AllowEdits = True 'Allow changes on the Order form
Forms![OrderEntry]![LineItemOrderEntry].Form.AllowEdits = True ' Allow
changes on the line item subform
CustomerName.SetFocus 'Move the focus to the first field
End Sub
Private Sub CustomerName_Enter()
Me.CustomerName.BackColor = 8454143
End Sub
Private Sub CustomerName_Exit(Cancel As Integer)
Me.Sidemark.BackColor = 2147483643
End Sub
Thanks
allow edits property to no. I then added a button called edit record so the
user can make changes. I want to change the appearance of the controls when
the form is "allowing edits" I have done this many times by changing the
property for on entry and exit, but I can't figure out how to make this only
happen when in "edit mode" I also have the added complication of a subform
which I would like to work the same way. Here is my code so far...
Private Sub EditRecordBut_Click()
Me.AllowEdits = True 'Allow changes on the Order form
Forms![OrderEntry]![LineItemOrderEntry].Form.AllowEdits = True ' Allow
changes on the line item subform
CustomerName.SetFocus 'Move the focus to the first field
End Sub
Private Sub CustomerName_Enter()
Me.CustomerName.BackColor = 8454143
End Sub
Private Sub CustomerName_Exit(Cancel As Integer)
Me.Sidemark.BackColor = 2147483643
End Sub
Thanks