When I run this it comes back with this
"Run-time error '3011':
The Microsoft Jet database engine could not find the object 'Filename....csv1207:
Make sure the object exists and that you spelled it's name and the path name correctly"
So it's recognizing the file name per my format...and it's reading the entire file name back to me and telling me it's in correct.
Also for those that caught it I butchered the strfile above but it looks like this :
strFile = Dir(strPath & "filename*.csv")
minus the * in the middle of 'Pa' and 'th' and the path has a \ at the end.
Oh forget explaining it...here's all the code I'm using:
******
Public Function Import_From_TEXT1()
'Macro Loops through the specified directory (strPath)
'and imports Specific CSV files to specified table in the Access
'Database.
Const strPath As String = "\\networkdrive\dir1\dir2\dir3\" 'Directory Path
Dim strFile As String 'Filename
Dim strFileList() As String 'File Array
Dim intFile As Integer 'File Number
'Loop through the folder & build file list
strFile = Dir(strPath & "filename*.csv")
While strFile <> ""
'add files to the list
intFile = intFile + 1
ReDim Preserve strFileList(1 To intFile)
strFileList(intFile) = strFile
strFile = Dir()
Wend
'see if any files were found
If intFile = 0 Then
MsgBox "No files found"
Exit Function
End If
'cycle through the list of files & import to Access
For intFile = 1 To UBound(strFileList)
DoCmd.TransferText acLinkDelim, , "tblWireless", strPath & strFileList(intFile), False
Next
MsgBox UBound(strFileList) & " Files were Imported"
End Function
******
Any advice?