L
larpup
I've created a query and need to assign each field to a variable so I
can run code from a function to return a value on a form. I've
accomplished this with DLookups, but want to do this with a query. The
query works, just don't know how to reference each field to do the math
inWeight is an actual weight, say 200 lbs.
varRate(1) would be $10.00
varRate(0) would be $50.00
So 200 * $10.00 <= $50.00. (See code below)
If intWeight * varRate(1) <= varRate(0) Then
FunctionName= varRate(0)
Forms!Shipments!WeightRate = Round(FunctionName,2)
I need to return 50. In order to do so, I need to get the value from
the fields in the returned query. How can this be accomplished? A
little lost here...
Lar
can run code from a function to return a value on a form. I've
accomplished this with DLookups, but want to do this with a query. The
query works, just don't know how to reference each field to do the math
inWeight is an actual weight, say 200 lbs.
varRate(1) would be $10.00
varRate(0) would be $50.00
So 200 * $10.00 <= $50.00. (See code below)
If intWeight * varRate(1) <= varRate(0) Then
FunctionName= varRate(0)
Forms!Shipments!WeightRate = Round(FunctionName,2)
I need to return 50. In order to do so, I need to get the value from
the fields in the returned query. How can this be accomplished? A
little lost here...
Lar