Re: How to populate sequential numbers in a field using SQL or VBA?
- From: "Karl" <someone@xxxxxxxxxxxxx>
- Date: Tue, 29 Apr 2008 21:54:31 GMT
x = 100
Do While Not rst.EOF
rst.edit
rst![ID] = x
rst.update
x = x +1
rst.movenext
Loop
"Excel 009" <excelmodeling@xxxxxxxxx> wrote in message
news:87e4f2ef-3e8f-4842-aa06-174af4e5991d@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,
Is there a way to populate sequential numbers in a field using SQL or
VBA? If yes, how?
Assume the following is my existing table:
Fruit ID
Apply
Banana
.
.
Orange
and I want to populate the ID field with 100, 101, 102.....
(I do not want to use append query with autonumber field.)
Excel 009
.
- Follow-Ups:
- References:
- How to populate sequential numbers in a field using SQL or VBA?
- From: Excel 009
- How to populate sequential numbers in a field using SQL or VBA?
- Prev by Date: Re: Something wrong adding numbers
- Next by Date: Re: Emailing with Access
- Previous by thread: Re: How to populate sequential numbers in a field using SQL or VBA?
- Next by thread: Re: How to populate sequential numbers in a field using SQL or VBA?
- Index(es):
Relevant Pages
|
Loading