Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

autoincrement

Status
Not open for further replies.

adhhealth

Programmer
Jul 1, 2004
165
US
Crystal version 8
pervasive sql 6

I need to autogenerate an "invoice number" on an invoice report.
That means each time invoice report is loaded it should show me next number for the invoice number
I have an idea of creating an unrelated subreport which accesses a stored procedure which returns the next number.
but i have no idea how to do this.
is there a simpler way to accomplish this?
happy new year!
 
Generally an Invoice number would be tied to some accounting function, so I would try to design the process to take advantage of that rather than using a reporting package to do this.

Perhaps at the time you ship or some such would be appropriate.

Otherwise you might generate an invoice number using some combination of the client number and date and time stamp which could be static, however it doesn't allow for saving this number readily, and again, is at the inappropriate point of the process.

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top