JamesCanedo
Technical User
I have a main customer form set to DataEntry as I want a certain group of users to enter customer information, but not see the whole customer database once entered or whilst entering.
The forms have a few additional forms linked by customerID. Some of these are opened from command buttons on the main form and others are subforms within the main customer form. I know as default, as soon as a form is closed, information is saved and disappears from view.
To make it easier for users I have added some save/cancel options. These operate in BeforeUpdate on the main Customer form, in OnClick for the command buttons opening linked forms, and in OnClick for a command button closing the main Customer form.
I am trying to keep the data in the main customer form available until it is closed.
To force a save without closing the form I have the following before the save code:
If Me.Dirty = True Then
Me.Dirty = False
This certainly keeps the data in the main customer form in view. However, I am not able to subsequently add any additional data or amend existing data already input. The fields are locked.
This also occurs if I tab through one of the subforms on the main customer form (even if no data is entered in one of these subform).
Could someone please provide some help on how I can get to a solution.
Thank you.
The forms have a few additional forms linked by customerID. Some of these are opened from command buttons on the main form and others are subforms within the main customer form. I know as default, as soon as a form is closed, information is saved and disappears from view.
To make it easier for users I have added some save/cancel options. These operate in BeforeUpdate on the main Customer form, in OnClick for the command buttons opening linked forms, and in OnClick for a command button closing the main Customer form.
I am trying to keep the data in the main customer form available until it is closed.
To force a save without closing the form I have the following before the save code:
If Me.Dirty = True Then
Me.Dirty = False
This certainly keeps the data in the main customer form in view. However, I am not able to subsequently add any additional data or amend existing data already input. The fields are locked.
This also occurs if I tab through one of the subforms on the main customer form (even if no data is entered in one of these subform).
Could someone please provide some help on how I can get to a solution.
Thank you.