View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
[email protected] metricsinstitute@gmail.com is offline
external usenet poster
 
Posts: 22
Default Ado add an id variable to a table

Hello,

I'm creating a recordset with the following (partial) code:


rs1 = MainTableRangeSheet & "$" & MainTableRangeNoDollar & "]"
Sql = "SELECT * FROM " & rs1 & " AS T1
objRecordset.Open Sql, ObjConnection, adOpenForwardOnly

The code works fine...

I'm interested at adding a unique ID variable to each record (1,2,3...)

Could you help?

Thanks
Avi