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!

Random ID with Text

Status
Not open for further replies.

guitardave78

Programmer
Sep 5, 2001
1,294
GB
Hi I have 4 tables, Client, Job, Referer and Invoice
I want each one to have a unique field that will consist of 3 letters and a random 4-5 digit number, IE

CLI1234
JOB1234
REF1234
INV1234

I know that it is frowned upon to use the format in the random number for the unique identifier. I dont care how it is done as long as it works and i can search for them !!!

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top