S
SAC
I'm trying to find an invoice number based on the total amount of an
invoice, but I don't know how to retunr the invoice number into a variable.
Here's what I have:
Dim intInvNo As String
intInvNo = "SELECT tblInvoiceL.InvoiceNO " _
& "FROM tblInvoiceL " _ 'Line items
& "GROUP BY tblInvoiceL.InvoiceNO " _
& "HAVING (((Sum([Qty]*[Rate]))=189));"
MsgBox (intInvNo)
What should I do to make this work?
Thanks for your help.
invoice, but I don't know how to retunr the invoice number into a variable.
Here's what I have:
Dim intInvNo As String
intInvNo = "SELECT tblInvoiceL.InvoiceNO " _
& "FROM tblInvoiceL " _ 'Line items
& "GROUP BY tblInvoiceL.InvoiceNO " _
& "HAVING (((Sum([Qty]*[Rate]))=189));"
MsgBox (intInvNo)
What should I do to make this work?
Thanks for your help.