hi
i have three tables customer, product and vendor. i have a listbox which list all the products when i select the item and press command button it prints report.
in the report how to get the names of the customer 1& 2 and vendor 1 & 2 ? using sql query? i dont know how to use the dlook up function can anyone tell how to d it or the SQL query to retrieve.
customer
------
cust_id
cust_name
product
--------
product_id
product_name
cust-1_id
cust-2_id
vendor-1_id
vendor-2_id
vendor
-------
vendor_id
vendor_name
thanks
i have three tables customer, product and vendor. i have a listbox which list all the products when i select the item and press command button it prints report.
in the report how to get the names of the customer 1& 2 and vendor 1 & 2 ? using sql query? i dont know how to use the dlook up function can anyone tell how to d it or the SQL query to retrieve.
customer
------
cust_id
cust_name
product
--------
product_id
product_name
cust-1_id
cust-2_id
vendor-1_id
vendor-2_id
vendor
-------
vendor_id
vendor_name
thanks