a.phillips
Registered User.
- Local time
- Today, 12:06
- Joined
- Jul 19, 2011
- Messages
- 37
dim filename as string
Dim strSQL As String
filename = Dir("Y:\Document_name\test.doc")
strSQL = "INSERT INTO tbl_filename (filename) VALUES ('filename')"
DoCmd.RunSQL strSQL
Hi, above is an example of the code I am having problems with, it is currently entering 'filename' into the table and I understand why, but how could I get it to insert 'test' into the table.
After this is working I am hoping for the code to filter through all of the files in this folder and store the name, size and date modified in a table. Does anyone have a document, or example code I could read on how to do the loop process.
Thanks for your help in advance.
Dim strSQL As String
filename = Dir("Y:\Document_name\test.doc")
strSQL = "INSERT INTO tbl_filename (filename) VALUES ('filename')"
DoCmd.RunSQL strSQL
Hi, above is an example of the code I am having problems with, it is currently entering 'filename' into the table and I understand why, but how could I get it to insert 'test' into the table.
After this is working I am hoping for the code to filter through all of the files in this folder and store the name, size and date modified in a table. Does anyone have a document, or example code I could read on how to do the loop process.
Thanks for your help in advance.