I got my code to work using Dir() if anyone is interested.
Code:
Function GetFiles() 'WorkingDim rs As Recordset
Dim sFile As String, dDate As Date
Dim sFolder As String
Dim sLastFolder As String
Dim sPath As String
Dim sPayPd As String
Dim sEmpID As String
Dim sDocType As String
Dim sFromPath As String
Dim sToPath As String
sPath = "\\ACFILE1\Vol1\ProdData\Pay_Images\"
sDocType = "HSA" 'update depending on doc type search
sFolder = Dir(sPath, vbDirectory)
Do While True
If sFolder <> "." And sFolder <> ".." Then
'Empty table
CurrentDb.Execute "DELETE * FROM tbl" & sDocType & "Documents", dbFailOnError
'Open recordset
Set rs = CurrentDb.OpenRecordset("tbl" & sDocType & "Documents", dbOpenDynaset)
'First filename
'sPath = sPath & sFolder & "\"
sFile = Dir(sPath & sFolder & "\" & "*" & sDocType & "*")
'Loop through rest of files
Do While sFile <> ""
dDate = FileDateTime(sPath & sFolder & "\" & sFile)
rs.AddNew
'Populate table
rs!FileName = Left(sFile, Len(sFile) - 4)
rs!FileDate = dDate
rs!sEmpID = Left(sFile, InStr(1, sFile, ".") - 1)
rs!sPayPd = Left(Right(Trim(sFile), Len(Trim(sFile)) - InStr(1, sFile, "_")), Len(Right(Trim(sFile), Len(Trim(sFile)) - InStr(1, sFile, "_"))) - 4)
rs!sDocType = sDocType
rs.Update
'Next filename
sFile = Dir()
Loop
End If
sLastFolder = sFolder
sFolder = Dir(sPath, vbDirectory)
Do Until sFolder > sLastFolder
sFolder = Dir()
Loop
Loop
ExitHere:
Set rs = Nothing
MsgBox ("Directory list is complete.")
End Function