Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

take operator from table to perform calculation

Status
Not open for further replies.

kpal292

Programmer
Jan 30, 2011
1
0
0
DK
I have a table that displays a number.
I need to update a field in the same table with a category that corresponds to the result of the operation result.

Example:
Data Table
Client Code = 123
Material = 100
Field CM1 = -10
Field Category = null

Exception Table
Client Code = 123
Material = 100
Low Range = -15
Low Range Criteria = '<'
High Range = -5
High Range Criteria = '>'

I need to compare the Data.cm1 value to the exception table low range and then again to the high range, if the cm1 value is within the range, field 'category' of the data table is updated with 'Rules Database' and if not then Category is left blank or will have some other value.

How can I make this comparison?
 
Have a look at the Application.Eval method.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top