Hi,
I want to edit the "Allowedits" property in my subform with code based on a iif statement in my main form code.
What I want to do is...based on my IIf statement, make both the form and subform Read-Only.
Here is the code I have, It will make my main form read-only, but not my subform. No errors, just doesn't make it Read-Only
If [Recieved] = False Then
Form.AllowEdits = false
Me.[mysubform].allowedits = False
Else
Form.AllowEdits = True
Me.[mysubform].allowedits = True
End If
I want to edit the "Allowedits" property in my subform with code based on a iif statement in my main form code.
What I want to do is...based on my IIf statement, make both the form and subform Read-Only.
Here is the code I have, It will make my main form read-only, but not my subform. No errors, just doesn't make it Read-Only
If [Recieved] = False Then
Form.AllowEdits = false
Me.[mysubform].allowedits = False
Else
Form.AllowEdits = True
Me.[mysubform].allowedits = True
End If