![]() |
Sergey Kornilov admin 1/28/2014 |
Sure, it's possible. You can execute a SQL query in BeforeAdd event, get the latest number and assign it to your invoice number field. $values["InvoiceNumber"]=DBLookup("select max(InvoiceNumber)+1 from Invoices"); |
P
|
prab author 1/28/2014 |
Thanks for quick reply. |
![]() |
Sergey Kornilov admin 1/28/2014 |
This field will be populated when Submit button is clicked. You won't see it on the page. |
P
|
prab author 1/28/2014 |
Thank you sir for the explanation. Works Great. |
A
|
Abul 1/28/2014 |
I apologizes for not solution but a question. How can we make this invoice# based on like "2014-day of the year-xxx" format? Do you have an idea? Thanks in advance for tips. |