Hi,
I am new to VBA and Access and I am way over my head.
The problem is to create a table (tblFIles) listing all files in a subdirectory and append to the main table (tblMainFIles) if they don't already exist based on non primary keys and then update an audit trail with the changes
eg
1/ if there is a match on file name and creation date and folder is different then update the folder. But all the stuff I have read is that duplicates are only stopped by primary keys for appends
2/ if there is is no match on file name, creation date and folder then add to the tblMainFiles
and a lot more like that
3/add the change to an audit file
So I am currently google coding
This lists all files in a sub directory
allenbrowne . com /ser-59. html
This lists files in one directory and creates a file
devhut .net / getfilelistandspecs/
but I don't know how to put them together
regards R
I am new to VBA and Access and I am way over my head.
The problem is to create a table (tblFIles) listing all files in a subdirectory and append to the main table (tblMainFIles) if they don't already exist based on non primary keys and then update an audit trail with the changes
eg
1/ if there is a match on file name and creation date and folder is different then update the folder. But all the stuff I have read is that duplicates are only stopped by primary keys for appends
2/ if there is is no match on file name, creation date and folder then add to the tblMainFiles
and a lot more like that
3/add the change to an audit file
So I am currently google coding
This lists all files in a sub directory
allenbrowne . com /ser-59. html
This lists files in one directory and creates a file
devhut .net / getfilelistandspecs/
but I don't know how to put them together
Code:
tblAudit Audit Trail
FileId - autonumber
ChangeDate - date
Field - string
OldValue - can be a string or a date
NewValue -can be a string or a date
Code:
tblMainFIles and tblFiles ( both have the same format)
FileID - autmnumber
FileName - short text
Filesize - number
FileDateCreated- date/time
FileDateLastModified- date/time
FileDateLastAccessed - date/time
FileType - short text
FileAttributes - short text
FileParentFolder - short text
FileFullPath - short text
FileFlag - short text
regards R