I have an application that imports an Excel Spreadsheet, and processes it. One part of data validation that needs to take place is to check for previously processed invoices.
I have a table that has all of the previously processed invoice numbers and they are all unique.
I need ideas and help with how I would take the invoice number that I just imported ( tblInvoice.InvoiceNo ) and compare it against all previously processed invoices (stored in tblProcessedInvoices.InvoiceNo )
If the invoice has never been processed (i.e. not in the tblProcessedInvoices table) then I will continue with the program. However, if the invoice has been processed (i.e. matches an invoice in the tblProcessedInvoices table) then display a message box, and set a flag (tblInvoice.PreviouslyProcessed – a check box ) so that I can move this to another table (tblNonProcessedInvoices) for later reporting.
Any indeas?
PDUNCAN - MEMPHIS, TN
When I die, I want to die like my grandfather-- who died peacefully in
his sleep. Not screaming like all the passengers in his car.
I have a table that has all of the previously processed invoice numbers and they are all unique.
I need ideas and help with how I would take the invoice number that I just imported ( tblInvoice.InvoiceNo ) and compare it against all previously processed invoices (stored in tblProcessedInvoices.InvoiceNo )
If the invoice has never been processed (i.e. not in the tblProcessedInvoices table) then I will continue with the program. However, if the invoice has been processed (i.e. matches an invoice in the tblProcessedInvoices table) then display a message box, and set a flag (tblInvoice.PreviouslyProcessed – a check box ) so that I can move this to another table (tblNonProcessedInvoices) for later reporting.
Any indeas?
PDUNCAN - MEMPHIS, TN
When I die, I want to die like my grandfather-- who died peacefully in
his sleep. Not screaming like all the passengers in his car.