A
Andreww
High - I have a small table of 500 recs and I want to be able to add a URN
(Unique Ref Number). I am not a great Access expert and am thus somewhat
flummoxed on how to do this. The point is that record 1 gets a 0001, 2
0002, n 000n etc.
I imagine it has to be done with VBA. I bought "Beginning Access VBA 2000"
a while ago with suggest a possible route using DAO which I thought was
defunct in favour of ADO/something else.
I would think the flow goes something like this:
proc inc_urn()
connect to database
use tblStudent
dim kk as int
kk=1
go top
for kk =1 to 500
replace urn with kk
next
close tblStudent
disconnect database
end proc
I come from the humble FoxPro background so all this is somewhat new!
Any help appreciated.
Regards
Andrew
www.jmdata.co.uk
(Unique Ref Number). I am not a great Access expert and am thus somewhat
flummoxed on how to do this. The point is that record 1 gets a 0001, 2
0002, n 000n etc.
I imagine it has to be done with VBA. I bought "Beginning Access VBA 2000"
a while ago with suggest a possible route using DAO which I thought was
defunct in favour of ADO/something else.
I would think the flow goes something like this:
proc inc_urn()
connect to database
use tblStudent
dim kk as int
kk=1
go top
for kk =1 to 500
replace urn with kk
next
close tblStudent
disconnect database
end proc
I come from the humble FoxPro background so all this is somewhat new!
Any help appreciated.
Regards
Andrew
www.jmdata.co.uk