pseudocode for the code i want like is as follows, i am just having problems applying the correct syntax.
this code is an attempt to create an incrimenting invoice number for each company ie when a company appears multiple times in a job query it is assigned the appropriate invoice number
Code:
IF NewlyaddedCompanyName = unique then
InvoiceNumber = 1
End If
IF NewlyAddedCompanyName = has appeared x times then
InvoiceNumber = x
this code is an attempt to create an incrimenting invoice number for each company ie when a company appears multiple times in a job query it is assigned the appropriate invoice number