Hi All,
I wish to prime a new invoice “master” record with an invoice number. Because normal auto increment is not possible in this case, I have the value of the last invoice number stored in a single record table.
Where in the form events would I run a select statement to get that value, so that I can then prime the form field with the next number. I have tried the logical ones OnApplicationInit and OnScriptInit and Load and OnBeforeInsert but they all return a blank.
The sc_lookup select statement works OK, I have tested that, but I do not know where the priming actually takes place.
Thanks
Tony