matt beamish
Registered User.
- Local time
- Today, 10:09
- Joined
- Sep 21, 2000
- Messages
- 215
Im using the Function "Listfilestotable" that I found here
http://allenbrowne.com/ser-59alt.html
to scan an area of shared drive for filenames which are then written into a table within a databse in order to populate subforms that relate to a database record via a folder name to record number match. This gives me an autoupdating list (so long as the function runs regularly) on what reports have actually been lodged on the drive, which is great.
At the moment I am triggering the function using a macro which also specifies that only pdf files across the area should be listed as I don't want to include all file types.
listfilestotable ("X:\blah\something","*.pdf*",True)
However I would like "*.doc*" as a criteria too, but I can't get this to work - If I change the criteria from being anything other than one type, the function runs, but generates no records - i.e. I am specifying my criteria wrongly.
Can anyone help on this? My other option is to run the function a second time, and append my *.doc* records to the table.
thanks
Matt
http://allenbrowne.com/ser-59alt.html
to scan an area of shared drive for filenames which are then written into a table within a databse in order to populate subforms that relate to a database record via a folder name to record number match. This gives me an autoupdating list (so long as the function runs regularly) on what reports have actually been lodged on the drive, which is great.
At the moment I am triggering the function using a macro which also specifies that only pdf files across the area should be listed as I don't want to include all file types.
listfilestotable ("X:\blah\something","*.pdf*",True)
However I would like "*.doc*" as a criteria too, but I can't get this to work - If I change the criteria from being anything other than one type, the function runs, but generates no records - i.e. I am specifying my criteria wrongly.
Can anyone help on this? My other option is to run the function a second time, and append my *.doc* records to the table.
thanks
Matt