As part of a macro, I'd like to run a form of error checking on sales orders. Basically, if the quantity of an order is not a whole number, then there's been an error in upstream processing. I'd like to keep a list of these problem orders, to display in a message box at the end of the macro. Something like "There were errors with orders #1839, #1923, #1934"
How do I handle the variable declarations and use as the errors are found?
I'm thinking something like the first error encountered is allocated to varError1, the second to varError2 and so on. I'd need some kind of incremental count of the number of errors.
The end result in the above example would see varError1=1839, varError2=1923 and varError3=1934
How do I handle the variable declarations and use as the errors are found?
I'm thinking something like the first error encountered is allocated to varError1, the second to varError2 and so on. I'd need some kind of incremental count of the number of errors.
The end result in the above example would see varError1=1839, varError2=1923 and varError3=1934