Hello ppl,
I am running a query which returns various records.
I want to put the ID's of each record returned into memory so that in the next stage I may run my Insert code based on the ID's that were returned in the query.
How can i do this?
![]()
Hello ppl,
I am running a query which returns various records.
I want to put the ID's of each record returned into memory so that in the next stage I may run my Insert code based on the ID's that were returned in the query.
How can i do this?
![]()
My theory was:
Code:do until rs.EOF for each x in rs.Fields RUN THE INSERT CODE HERE next Response.Write("<br />") rs.MoveNext loop
Typically, you can do something like
Above, cn is the name of your connection object.Code:do while not rs.EOF cn.Execute("INSERT INTO tablename (col1) VALUES(" & rs("col1") & ")") Response.Write("<br />") rs.MoveNext loop
jmurrayhead
If you agree, give me rep.
If you like it here...throw us a few bones to help support us.
Bookmarks