Hi all,
I want to create a simple disk catalog system with Access.
The important thing is that I want to make sure that the database has one
record for each file in a certain directory. So, I need some synchronising
mechanism.
First I should loop through all the files in the directory and see if for
each filename there is a record in the database (PK is filename). If not, a
record should be created.
To complete the synchronise I think I should loop through all the records
in the database and see if for each record there is still a file in the
directory. If not, the record should be deleted.
I am a newbie to VBA. I am googling for a whole day now, but I've found
nothing. In this group someone pointed me in the direction of using
FindFirstFile and FindNextFile API. I've tried that, but my knowledge of
VBA is too little.
Can please someone help me with the code?
Thanks,
Koen