B
Bubar
I've been using a very simple .filesearch routine for several years with
Access 2000 in a Windows 2000 professional environment.
I'm attempting to convert to Access 2002 in a Windows XP Professional
environment.
Here's the code from a small test form that displays my search results:
Dim Mysearch as Filesearch
Private Sub But_Click_Click()
Set Mysearch = Application.FileSearch
With Mysearch
.LookIn = "c:\PictureImportArea"
.FileName = "DSCN*"
Me.XBOX2 = .Execute
Me.XBOX1 = .FoundFiles.COUNT
End With
End Sub
Private Sub Form_Open(Cancel As Integer)
Me.XBOX1 = ""
Me.XBOX2 = ""
End Sub
It doesn't get much simpler than this, but it's been driving me absolutely
crazy.
The Directory is correct, the files I'm looking for (.jpg) are present, and
all of the
Access references are present.
I've tried a hundred variations and can't count a single file. I've tried
using '%' instead of '*' for wild cards (somewhere I read this might change),
many of the new syntax options, exact file names, and you name it.
This is really killing my self confidence. Someone please help. I'm sure
that I'm missing something really simple. Thanks!
Access 2000 in a Windows 2000 professional environment.
I'm attempting to convert to Access 2002 in a Windows XP Professional
environment.
Here's the code from a small test form that displays my search results:
Dim Mysearch as Filesearch
Private Sub But_Click_Click()
Set Mysearch = Application.FileSearch
With Mysearch
.LookIn = "c:\PictureImportArea"
.FileName = "DSCN*"
Me.XBOX2 = .Execute
Me.XBOX1 = .FoundFiles.COUNT
End With
End Sub
Private Sub Form_Open(Cancel As Integer)
Me.XBOX1 = ""
Me.XBOX2 = ""
End Sub
It doesn't get much simpler than this, but it's been driving me absolutely
crazy.
The Directory is correct, the files I'm looking for (.jpg) are present, and
all of the
Access references are present.
I've tried a hundred variations and can't count a single file. I've tried
using '%' instead of '*' for wild cards (somewhere I read this might change),
many of the new syntax options, exact file names, and you name it.
This is really killing my self confidence. Someone please help. I'm sure
that I'm missing something really simple. Thanks!