Hello,
i am trying to make an update query which every time it runs will update the table Invoice_Temp adding 1 to the max InvoiceNo value (this field has default value=0).
Here's what i have thought, but not working:
UPDATE Invoice_Temp SET InvoiceNo = (select max(InvoiceNo)+1 from Invoice_Temp)
WHERE InvoiceNo="0";
Can you help?