dantheinfoman
Programmer
Hi all,
I'm trying to have a field that looks up a field in another table, but I don't know how to perform a lookup on multiple fields, for example:
In the field within the FRX form there would be something like this: LOOKUP(table2.serv_unit,QUERY.sales_type+QUERY.job,table2.sales_type+table2.job)
but, alas,it doesn't work.
Imagine the cursor QUERY is what's populating the fields in the report, but we want to look up something that's in table2 where the query's job and sales_type match the table2's job and sales_type.
Should I use SEEK, LOOKUP, LOCATE, something else - and what's the syntax to lookup using multiple fields to find the info? This one doesn't have a unique identifier, it uses those 2 fields to find what you need.
Thanks
Dan
I'm trying to have a field that looks up a field in another table, but I don't know how to perform a lookup on multiple fields, for example:
In the field within the FRX form there would be something like this: LOOKUP(table2.serv_unit,QUERY.sales_type+QUERY.job,table2.sales_type+table2.job)
but, alas,it doesn't work.
Imagine the cursor QUERY is what's populating the fields in the report, but we want to look up something that's in table2 where the query's job and sales_type match the table2's job and sales_type.
Should I use SEEK, LOOKUP, LOCATE, something else - and what's the syntax to lookup using multiple fields to find the info? This one doesn't have a unique identifier, it uses those 2 fields to find what you need.
Thanks
Dan