Originally Posted by
pkstormy
Here's a nice import form I designed to import 1 or multiple xls files in a designated folder the user selects on the form (using the Browse button).
Once the browse button is clicked and the import folder is supplied, and then the import button is clicked, it can cycle through the entire folder importing all and any xls files.
Hope it helps.
I tried using your test form, but i get an error after confirming the import from the folder i browsed to:
"You entered an expression that has an invalid reference to the property FileSearch"
Then this gets highlighted in the Importing Module after clicking 'debug':
Code:
Dim NumFound As Long
With Application.FileSearch
.NewSearch
.LookIn = Directory
.FileName = FileSpec
If .Execute() > 0 Then
any idea how to solve this? I'm using Access 2007.
Thanks a lot