SQL query for combo

mithani

Registered User.
Local time
Tomorrow, 00:47
Joined
May 11, 2007
Messages
291
Hello everyone,

The following SQL query is for my combo box where I am fetching records from QueryPurchaseParent table. I want to check one more table to see whether I have received invoice or not. If i have received invoice, should not show in my combo box. The second table name is SupplierInvoice and field is supplierInvoice

Code:
SELECT QueryPurchaseParent.PurchaseOrderNo FROM QueryPurchaseParent;

Can anyone help me please?

thanks

mithani
 
Last edited:
please see the attached, just showing only one record. It should show all records from purchase minus the records are existing in Invoice table. Any idea?

SQL = SELECT QueryPurchaseParent.PurchaseOrderNo, supplierInvoice.SupplierInvoice FROM QueryPurchaseParent INNER JOIN SupplierInvoice On QueryPurchaseParent.PurchaseOrderNo = SupplierInvoice.PurchaseOrderNo
Where SupplierInvoice.SupplierInvoice = 0

pleassssssssssssssssssssssssssssseeeeeeeee help me.

mithani
 

Attachments

  • screen1.JPG
    screen1.JPG
    91.6 KB · Views: 102
Last edited:
I am keep trying but no use.

Any help is appreciated.
 
Still waiting for your help. If anything is not clear, please reply me.

mithani
 

Users who are viewing this thread

Back
Top Bottom