Here is my code in B4A which works fine. I like to do the same thing, which is delete multiple files inside a C drive subfolder using Microsoft Access where the files start with a given string and end with .csv. I need some help using VBA from the Access knowledgeable members.
Thank you
B4X:
Sub Globals
Private MyExport As String = File.dirrootexternal & "/" & "test"
Private TenderLU As String = "XYZ"
End Sub
Sub Activity_Create(FirstTime As Boolean)
For Each f As String In File.ListFiles(MyExport)
If f.StartsWith(TenderLU & "_DAILY") And f.EndsWith(".csv") Then
File.Delete(MyExport,f)
End If
Next
End Sub
Thank you