hi to all
iam uploading data from excel to msaccess using vb6.0.
it taking nearly more than 40 min for uploading 30000 records to the access.
is there any way to reduce the time
thanks
Perhaps this might be of help
-
dim a
-
a = range(cells(1,1), cells(1,1).end(-4121).end(-4161))
Now the whole data in excel in in an array called 'a'.
Excel is very slow while working cell by cell, so don't ever do that, instead, create a variant. Then when you asign a range to a variant, the variant wont become a Range, but an array of data, which is very handy.
May be, uploading the array to the access will be faster if you do it from the array instead.