J
Jack
Hi,
I am using the following code in the form load event to lock a field on a
form based on values of fields in the main and the subform. However when I am
running this form I am getting the above error:
There is an invalid use of the .(dot) or ! operator or invalid parenthesis
I cannot figure out why I am receiving such message. The application
compiles thought. Any help is appreciated. Thanks
CODE:
'Trying to lock the value txtResonseReceivedDate
If (((Len(Nz(Me.memoCause.Value, ""))) = 0) Or _
((Len(Nz(Me![qry6DPermAction subform].Form.txt6DPermAct1.Value, ""))) = 0)
Or _
((Len(Nz(Me![qry6DPermAction subform].Form.txt6DMem1.Value, ""))) = 0) Or _
((Len(Nz(Me![qry6DPermAction subform].Form.txt6DDue1.Value, ""))) = 0)) Or _
((Len(Nz(Me![frmSub7DPAEffect].Form.txt7DPAEffect1.Value, ""))) = 0) Or _
((Len(Nz(Me![frmSub7DPAEffect].Form.txt6DMem1.Value, ""))) = 0) Or _
((Len(Nz(Me![frmSub7DPAEffect].Form.txt6DDue1.Value, ""))) = 0) Then
txtResponseReceivedDate.Locked = True
Else
txtResponseReceivedDate.Locked = False
End If
I am using the following code in the form load event to lock a field on a
form based on values of fields in the main and the subform. However when I am
running this form I am getting the above error:
There is an invalid use of the .(dot) or ! operator or invalid parenthesis
I cannot figure out why I am receiving such message. The application
compiles thought. Any help is appreciated. Thanks
CODE:
'Trying to lock the value txtResonseReceivedDate
If (((Len(Nz(Me.memoCause.Value, ""))) = 0) Or _
((Len(Nz(Me![qry6DPermAction subform].Form.txt6DPermAct1.Value, ""))) = 0)
Or _
((Len(Nz(Me![qry6DPermAction subform].Form.txt6DMem1.Value, ""))) = 0) Or _
((Len(Nz(Me![qry6DPermAction subform].Form.txt6DDue1.Value, ""))) = 0)) Or _
((Len(Nz(Me![frmSub7DPAEffect].Form.txt7DPAEffect1.Value, ""))) = 0) Or _
((Len(Nz(Me![frmSub7DPAEffect].Form.txt6DMem1.Value, ""))) = 0) Or _
((Len(Nz(Me![frmSub7DPAEffect].Form.txt6DDue1.Value, ""))) = 0) Then
txtResponseReceivedDate.Locked = True
Else
txtResponseReceivedDate.Locked = False
End If