MatthewRheinberger
IS-IT--Management
Hi,
I am currently importing invoices/credit notes into AccPac using modified VBA recorded macros. All is going ok; however I have the following need.
When I import a credit note I need to be able to set the APPLINVC field. Although I can do this after the import has occurred by invoking the 'find' tool, I would like some code to help me look the invoice up.
When creating the invoice I set the CUSTPO to a known value, say "TEST_INV"
Is there a way that I can return a previous invoice number
=> APPLINVC = findInvoice(TEST_INV, CUSTPO, IDCUST)
Help much appreciated
I am currently importing invoices/credit notes into AccPac using modified VBA recorded macros. All is going ok; however I have the following need.
When I import a credit note I need to be able to set the APPLINVC field. Although I can do this after the import has occurred by invoking the 'find' tool, I would like some code to help me look the invoice up.
When creating the invoice I set the CUSTPO to a known value, say "TEST_INV"
Is there a way that I can return a previous invoice number
=> APPLINVC = findInvoice(TEST_INV, CUSTPO, IDCUST)
Help much appreciated