All, I am trying to use an update query to add invoice numbers.
For example, if the last invoice number was 20001 and there are 5 records to update, the invoice numbers should be as following.
record 1 20006
record 2 20007
record 3 20008
record 4 20009
record 5 20010
The problem is that for each reocrd to be updated, I need to get the max invoice number and increase it by one.
I have a function that I am calling; but it seems to just increment the 1st record's invoice number and use that number for all other records that are updated.
David Pimental
(US, Oh)
For example, if the last invoice number was 20001 and there are 5 records to update, the invoice numbers should be as following.
record 1 20006
record 2 20007
record 3 20008
record 4 20009
record 5 20010
The problem is that for each reocrd to be updated, I need to get the max invoice number and increase it by one.
I have a function that I am calling; but it seems to just increment the 1st record's invoice number and use that number for all other records that are updated.
David Pimental
(US, Oh)