Ok this is starting to hurt my head :)
I have a Invoice table that has Invoice_Id , Customer_Id and Product_Code
Invoice_Id is the primary key
Customer_Id is a foreign key
Product_Code is a foreign key
so im making a data report and i can get it to work with connecting an retrieving data from the invoice and customer table but when i try and get data from the product table it fails
this is what i have atm
InvoiceSQL = "SELECT * From Invoice INNER JOIN Customer ON Customer.Custom er_Id = Invoice.Custome r_Id WHERE Invoice.Invoice _ID=" & Txt_InvoiceID.T ext & " INNER JOIN Product ON Invoice.Product _Code = Product.Product _Code WHERE Invoice.Product _Code =" & Txt_InvoiceProd Code.Text & ""
can anyone help ;)
btw im using vb6 and MS Access
I have a Invoice table that has Invoice_Id , Customer_Id and Product_Code
Invoice_Id is the primary key
Customer_Id is a foreign key
Product_Code is a foreign key
so im making a data report and i can get it to work with connecting an retrieving data from the invoice and customer table but when i try and get data from the product table it fails
this is what i have atm
InvoiceSQL = "SELECT * From Invoice INNER JOIN Customer ON Customer.Custom er_Id = Invoice.Custome r_Id WHERE Invoice.Invoice _ID=" & Txt_InvoiceID.T ext & " INNER JOIN Product ON Invoice.Product _Code = Product.Product _Code WHERE Invoice.Product _Code =" & Txt_InvoiceProd Code.Text & ""
can anyone help ;)
btw im using vb6 and MS Access
Comment