I have a table that gets filled with directory names and files. However I am stuck as to combine two fields into finding whether:
1.The record is in the table
2.The record is not in the table
3.The record is in the table but no longer on the drive
If someone could show me a straightforward direction I would be very appreciative. Thanks
For Each sfl In fld.SubFolders ' loop main directory
' Loop to check if any documents in main folder
For Each fil In sfl.Files
NEED TO CHECK HERE BEFORE ADDING OR DELETING
rst.AddNew
rst("MDIR") = UCase(sfl.Name) & "\"
rst("Document") = fil.Name
rst.Update
Next fil
1.The record is in the table
2.The record is not in the table
3.The record is in the table but no longer on the drive
If someone could show me a straightforward direction I would be very appreciative. Thanks
For Each sfl In fld.SubFolders ' loop main directory
' Loop to check if any documents in main folder
For Each fil In sfl.Files
NEED TO CHECK HERE BEFORE ADDING OR DELETING
rst.AddNew
rst("MDIR") = UCase(sfl.Name) & "\"
rst("Document") = fil.Name
rst.Update
Next fil