Parker
Registered User.
- Local time
- Today, 01:18
- Joined
- Jan 17, 2004
- Messages
- 316
I have the following code trigered by an event on a form
Dim CRLimit As String
CRLimit = Me.CRLimit 'Get value for CRLimit
If CRLimit <= Me.Total_VAT Then 'compare string to a value on form
Forms!frmCompanies!AccountOnHold.Visible = True ' present lable
Else
Forms!frmCompanies!AccountOnHold.Visible = False ' don't present lable
End If
It did work
But now it can't add up!
If Total_VAT has any value above 0 then code displays the lable "Account on Hold"
If Total_VAT has 0 then no lable is displayed
I have put a watch on for both Total_VAT and CRLimit and they are getting the correct values.
I have tried refering to the string first and the form value first and it still behaves the same way.
Dim CRLimit As String
CRLimit = Me.CRLimit 'Get value for CRLimit
If CRLimit <= Me.Total_VAT Then 'compare string to a value on form
Forms!frmCompanies!AccountOnHold.Visible = True ' present lable
Else
Forms!frmCompanies!AccountOnHold.Visible = False ' don't present lable
End If
It did work
But now it can't add up!
If Total_VAT has any value above 0 then code displays the lable "Account on Hold"
If Total_VAT has 0 then no lable is displayed
I have put a watch on for both Total_VAT and CRLimit and they are getting the correct values.
I have tried refering to the string first and the form value first and it still behaves the same way.