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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Insert with unique sequence number

Status
Not open for further replies.

rickpill

Programmer
Feb 28, 2002
108
US
Hi,

I need to build a table as follows:

Table: xRef

Field1 Field2
1 1256441
2 1259823
3 1155665
4 1177335
5 1234455
. .
. .

Field1 represents a generated sequential number and Field2
is a Client's account number.

Thank you in advance,

Rick
 
Hi

If you are not concerned about gaps in the sequence, just define a column in the table as an autonumber type Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
UK
 
Hi

If it is OK to potentially have gaps in the sequence of numbers, why not just define an autonumber field in your table Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top