gstreichan
Registered User.
- Local time
- Today, 17:28
- Joined
- Apr 1, 2014
- Messages
- 28
Dear Access Support, need your help.
I have a form called PAF_Assignment and on this form there are many textboxes for editing. After all fields are entered, the user clicks on a button and this button populates the PAF_Issued_Date field with the actual date.
Then I want to disable (enable=False) all fields on this form once there is a date on PAF_Issued_Date as I don't want any user to make any changes after submitting it, although the user would still be able to read the information submitted.
Can anyone help me please?
I have tried the following...
PAF_Assignment Form AfterUpdate Event
If Me.PAF_Issued_Date=Not null Then
Me.FieldName1.Enabled=False
Me.FieldName2.Enabled=False
Me.FieldName3.Enabled=False
...
ElseIf Me.PAF_Issued_Date=Null Then
Me.FieldName1.Enabled=True
Me.FieldName2.Enabled=True
Me.FieldName3.Enabled=True
....
End IF
End Sub
However this is not working, there is no error message or anything but the fields remain enabled with the date...
Really appreciated with a help on that. Thanks.
I have a form called PAF_Assignment and on this form there are many textboxes for editing. After all fields are entered, the user clicks on a button and this button populates the PAF_Issued_Date field with the actual date.
Then I want to disable (enable=False) all fields on this form once there is a date on PAF_Issued_Date as I don't want any user to make any changes after submitting it, although the user would still be able to read the information submitted.
Can anyone help me please?
I have tried the following...
PAF_Assignment Form AfterUpdate Event
If Me.PAF_Issued_Date=Not null Then
Me.FieldName1.Enabled=False
Me.FieldName2.Enabled=False
Me.FieldName3.Enabled=False
...
ElseIf Me.PAF_Issued_Date=Null Then
Me.FieldName1.Enabled=True
Me.FieldName2.Enabled=True
Me.FieldName3.Enabled=True
....
End IF
End Sub
However this is not working, there is no error message or anything but the fields remain enabled with the date...
Really appreciated with a help on that. Thanks.