First, I am a VB/ADO newbie so type S L O W L Y when answering please.
I have collected and modified some code that watches folders and when a file arrives in a watched folder it writes the file name and date to a row in an Excel database using Insert into.
It works OK until I open the DB and delete rows. The next time the program executes (new file arrives in folder) the new row in the DB is added where it would have been if I had not deleted the old rows.
For example, I delete rows 1-7 from the DB, save and close it, a file is added to a watched folder, when I open the DB the new data is on row 8 with rows 1-7 empty.
How do I make it use the first empty row or reset whatever is keeping a count on used rows?
I have collected and modified some code that watches folders and when a file arrives in a watched folder it writes the file name and date to a row in an Excel database using Insert into.
It works OK until I open the DB and delete rows. The next time the program executes (new file arrives in folder) the new row in the DB is added where it would have been if I had not deleted the old rows.
For example, I delete rows 1-7 from the DB, save and close it, a file is added to a watched folder, when I open the DB the new data is on row 8 with rows 1-7 empty.
How do I make it use the first empty row or reset whatever is keeping a count on used rows?