H
HelenJ
I am trying to set the format on a field on a subform depending on a value on
the main form, using the following code:
Private Sub Form_Open(Cancel As Integer)
If Forms![SupplierRangeFm]![SupCurrency] = "£" Then
Me.ChargeC.Format = "Currency"
Else
Me.ChargeC.Format = "Euro"
End If
End Sub
However I get a complie error: Method or data memeber not found - it seems
the only attribute I have for the field is .value
I've tried putting the code at various other triggers (eg after the field
update) but I get the same result.
Can anyone shed light on what I am doing wrong (I have it working fine on
another subform!)
Thanks
the main form, using the following code:
Private Sub Form_Open(Cancel As Integer)
If Forms![SupplierRangeFm]![SupCurrency] = "£" Then
Me.ChargeC.Format = "Currency"
Else
Me.ChargeC.Format = "Euro"
End If
End Sub
However I get a complie error: Method or data memeber not found - it seems
the only attribute I have for the field is .value
I've tried putting the code at various other triggers (eg after the field
update) but I get the same result.
Can anyone shed light on what I am doing wrong (I have it working fine on
another subform!)
Thanks