access97to2000
Programmer
Hi,
how can i programatically get the first column of a table ?
i need to write
for ex:
select column1 from table 1
Hereis what i want :
i want the last record id value of all the records and add 1 to it and insert a record in a table. IT is a generic function.
now what i am doing is:
sql=select * from table1;
rs.open sql,----
rs.movelast
value= rs(0)+1
i find it like a round about - because even though i dont want all the columns, i am retrieving them.. is there any way to get only the first column ?
how can i programatically get the first column of a table ?
i need to write
for ex:
select column1 from table 1
Hereis what i want :
i want the last record id value of all the records and add 1 to it and insert a record in a table. IT is a generic function.
now what i am doing is:
sql=select * from table1;
rs.open sql,----
rs.movelast
value= rs(0)+1
i find it like a round about - because even though i dont want all the columns, i am retrieving them.. is there any way to get only the first column ?