How do I use a value from a query table to be my starting value(pStart) in the auto increment code below:
rec=0 def autoIncrement(): global rec pStart = 1 pInterval = 1 if (rec == 0): rec = pStart else: rec += pInterval return rec
We are gathering statistics from a table using the max function, we need that max value to be the starting point for our auto increment. How do we use that value as the pStart?