I have a material table, and each record consists of the following:
ID
Material Description
Vendor1 Cost
Vendor2 Cost
Vendor3 Cost
What I need to get is the highest number out of the 3 cost fields, so say I have one record (see below):
ID: 7 Material Description: Colonial Casing Vendor1 Cost: .35 Vendor2 Cost: .45 Vendor3 Cost: .39
I need to grab the .45 and use that number as the sellcost field
how would I go about getting this information? I reviewed some information regarding DMax but I have never used DMax and from the examples I reviewed it seemed to be based on the max value of a table of records and I need the max value of one record? Do I create a Module/Function and what is the code? can this be done as a data macro by adding maybe a calculated field within the table ?
Any help would be greatly appreciated.
sj
ID
Material Description
Vendor1 Cost
Vendor2 Cost
Vendor3 Cost
What I need to get is the highest number out of the 3 cost fields, so say I have one record (see below):
ID: 7 Material Description: Colonial Casing Vendor1 Cost: .35 Vendor2 Cost: .45 Vendor3 Cost: .39
I need to grab the .45 and use that number as the sellcost field
how would I go about getting this information? I reviewed some information regarding DMax but I have never used DMax and from the examples I reviewed it seemed to be based on the max value of a table of records and I need the max value of one record? Do I create a Module/Function and what is the code? can this be done as a data macro by adding maybe a calculated field within the table ?
Any help would be greatly appreciated.
sj
Last edited: