P
pubdude2003 via AccessMonster.com
Here's an odd one:
On Error GoTo Err_GetFiles
Dim rs As Recordset
Dim strFile As String, strDate As Date
'clear out existing data
CurrentDb.Execute "Delete * From tblDirectory", dbFailOnError
'open a recordset
Set rs = CurrentDb.OpenRecordset("tblDirectory", dbOpenDynaset)
'get the first filename
strFile = Dir(strPath, vbNormal)
Somehow my code has broken, when I debug the StrFile = "" but the StrPath =
"c:/...."
What am I doing wrong?
On Error GoTo Err_GetFiles
Dim rs As Recordset
Dim strFile As String, strDate As Date
'clear out existing data
CurrentDb.Execute "Delete * From tblDirectory", dbFailOnError
'open a recordset
Set rs = CurrentDb.OpenRecordset("tblDirectory", dbOpenDynaset)
'get the first filename
strFile = Dir(strPath, vbNormal)
Somehow my code has broken, when I debug the StrFile = "" but the StrPath =
"c:/...."
What am I doing wrong?