Hello Everyone,
I'm an novice to ms access. I have tables contract and payments. In Form Payments iam trying to call a condition from contract table to enable or disable the field. my code looks like this but not working:
Private Sub Form_Current()
If (Me.[Contract].[Payment Terms] = "Cash") Then
Me.CADAdvValue.Enabled = False
Me.CADAdvDate.Enabled = False
Else
Me.CADAdvValue.Enabled = True
Me.CADAdvDate.Enabled = True
End If
I get the error unable find field. pls help.
I'm an novice to ms access. I have tables contract and payments. In Form Payments iam trying to call a condition from contract table to enable or disable the field. my code looks like this but not working:
Private Sub Form_Current()
If (Me.[Contract].[Payment Terms] = "Cash") Then
Me.CADAdvValue.Enabled = False
Me.CADAdvDate.Enabled = False
Else
Me.CADAdvValue.Enabled = True
Me.CADAdvDate.Enabled = True
End If
I get the error unable find field. pls help.