Hi
I have a field that needs to be populated with percentages according to the site area given, which is this:
SITE_AREA GN_Ratio
Less than 0.4 100%
Between 0.4 and 2 90%
Between 2 and 10 75%
More than 10 50%
I am attempting to try and populate a field on one of my forms using the following code, but it doesn't seem to be working:
I have put this code in the On Load event and the On Current event of the form. Just to mention, this form (Yield) is a subform in the main form (Primary).
I need to get this finished before the end of play today due to christmas so any help would be much appreciated! Thanks
I have a field that needs to be populated with percentages according to the site area given, which is this:
SITE_AREA GN_Ratio
Less than 0.4 100%
Between 0.4 and 2 90%
Between 2 and 10 75%
More than 10 50%
I am attempting to try and populate a field on one of my forms using the following code, but it doesn't seem to be working:
Code:
If SITE_AREA <= "0.4" Then
GN_Ratio = "100.00%"
Else
If SITE_AREA >"0.4" < "2" Then
GN_Ratio = "90.00%"
Else
If SITE_AREA >="2" < "10" Then
GN_Ratio = "75.00%"
Else
GN_Ratio = "50.00%"
End If
End If
End If
I have put this code in the On Load event and the On Current event of the form. Just to mention, this form (Yield) is a subform in the main form (Primary).
I need to get this finished before the end of play today due to christmas so any help would be much appreciated! Thanks