can anyone help with this.
i need to count the number of files in a location,
im using the code below but access seems to stick
---------------------------------------
Function CountCSV_files()
Dim FileName As String
Dim Count As Single
Count = 0
FileName = Dir("C:/*.csv"
If FileName <> "" Then
Do Until FileName = ""
Count = Count + 1
Loop
MsgBox Count
End If
---------------------------------------
any help is much appreciated
i need to count the number of files in a location,
im using the code below but access seems to stick
---------------------------------------
Function CountCSV_files()
Dim FileName As String
Dim Count As Single
Count = 0
FileName = Dir("C:/*.csv"
If FileName <> "" Then
Do Until FileName = ""
Count = Count + 1
Loop
MsgBox Count
End If
---------------------------------------
any help is much appreciated