Try putting a on error resume next *right* before the first dir command....
on error resume next <----------
strTemp = Dir(startDir)
Do While strTemp <> ""
dlist.Add startDir & strTemp
strTemp = Dir
Loop
That is cheap solution...but it should work!
Also, you should note that this program technique of a program calling its
self over and over is that we call recursion. Recursion is rather very cool
code solution to many types of computer problems. Recursion (having code
call and re-use its self) can save a LOT of code, and can solve some really
cool things.
As for your other questions...I assume you figured out to add the dao 3.6
reference to my example for the reocrdset code?
While in code..use tools->references-> add the Microsoft 3.6 dao library
ref.
The field is to small to accept the amount of data you attempted to add.
Try inserting or pasting less data." The data is fairly consistent in size.
The default field size in a table is only 50 characters. You go quite far
into the directory tree..that result will be longer then 50 chars. You will
need to increase the field size in the table design mode..