I am using the following to get the next invoice number.
It works fine on my computer but on my client's computer, TOP_INVOICE is sometimes set to the value of 1, rather than the highest invoice number+1.
Any thoughts?
Keith
Code:
SELECT FRAMES
SET ORDER TO INVNO
GO BOTTOM
TOP_INVOICE=FRAMES.INVNO
TOP_INVOICE=TOP_INVOICE+1
It works fine on my computer but on my client's computer, TOP_INVOICE is sometimes set to the value of 1, rather than the highest invoice number+1.
Any thoughts?
Keith