sunset1215
Registered User.
- Local time
- Tomorrow, 05:40
- Joined
- Apr 7, 2011
- Messages
- 46
hi all,
i've a code that returns the flow type based on their average results.
my code is this:
"qryavgload2" is a query i created, which selects the ID and average.
no error came up, but the results are "heavy" for most of the records, even if it should be "moderate" or "light". only the "very heavy works".
any help or advice is greatly appreciated.
i've a code that returns the flow type based on their average results.
my code is this:
'auto update flow type
Dim Avg
Avg = DLookup("AvgOfexprLoad", "qryAvgLoad2", "[fkPerID] = " & Me.pkPerID)
If 0 <= Avg <= 3.9 Then
strFlow.Value = "Light"
If 4 <= Avg <= 7.9 Then
strFlow.Value = "Moderate"
If 8 <= Avg <= 11.9 Then
strFlow.Value = "Heavy"
If Avg >= 12 Then
strFlow.Value = "Very Heavy"
Else
End If
End If
End If
End If
End Sub
"qryavgload2" is a query i created, which selects the ID and average.
no error came up, but the results are "heavy" for most of the records, even if it should be "moderate" or "light". only the "very heavy works".
any help or advice is greatly appreciated.