Hello everyone.. I have a form which needs update ever month. When the form is pened, the end user can see the old records and data, and also a new recored is added for any new data. I want to protect the old saved data and the user can only add, edit, or delete the new data in the newly added record. The problem is once a user adds the new data and moves to a nother record or another form, then he/she cannot edit or change the new data in case if there is any mistake or need to change something after couple of minutes. I changed the Form Data Properties "Allow Additions", "Allow Edits", and "Allow Deletions" many different times and situations to solve this problem but with no success.
I tried the following with NO success too: One of the Fields of the Record is (Month). In the Data Properties, I set a Default Value for this field as(December 2014) for instance. I set the Data Properties "Allow Additions", "Allow Edits", and "Allow Deletions" to (Yes). Then I put the follwoing code in the Form's Current Event:
Private Sub Form_Current()
If Me.month.Value = "December 2014" Then
Me.AllowAdditions = True
Me.AllowEdits = True
Me.AllowDeletions = True
Else
Me.AllowAdditions = False
Me.AllowEdits = False
Me.AllowDeletions = False
End If
End Sub
Any suggestion, correction, ideas please?? Thank you so much.
Anwar
I tried the following with NO success too: One of the Fields of the Record is (Month). In the Data Properties, I set a Default Value for this field as(December 2014) for instance. I set the Data Properties "Allow Additions", "Allow Edits", and "Allow Deletions" to (Yes). Then I put the follwoing code in the Form's Current Event:
Private Sub Form_Current()
If Me.month.Value = "December 2014" Then
Me.AllowAdditions = True
Me.AllowEdits = True
Me.AllowDeletions = True
Else
Me.AllowAdditions = False
Me.AllowEdits = False
Me.AllowDeletions = False
End If
End Sub
Any suggestion, correction, ideas please?? Thank you so much.
Anwar