I am trying to copy a Table from a SQL db to a Access db. I already have the connections made and am currently querying the SQLdb to populate the Mdb as follows. This takes a long time for some 1,600 records. Is there a way to somehow RecordSet = RecordSet without the loop?
Do While NOT SqlRS.EOF
MdbRS.AddNew
MdbRS("ID") = SqlRS("ID")
MdbRS("unit_number") = SqlRS("unit_number")
MdbRS("unit_name") = SqlRS("unit_name")
MdbRS("scheme") = SqlRS("scheme")
SqlRS.Movenext
Loop 'Do While NOT Rs.EOF
Wow, I'm having amnesia and deja vu at the same time.
I think I've forgotten this before.
Do While NOT SqlRS.EOF
MdbRS.AddNew
MdbRS("ID") = SqlRS("ID")
MdbRS("unit_number") = SqlRS("unit_number")
MdbRS("unit_name") = SqlRS("unit_name")
MdbRS("scheme") = SqlRS("scheme")
SqlRS.Movenext
Loop 'Do While NOT Rs.EOF
![[thumbsup2] [thumbsup2] [thumbsup2]](/data/assets/smilies/thumbsup2.gif)
I think I've forgotten this before.