Mar 8, 2004 #1 dhaveedh Programmer Aug 13, 2003 112 GB Does anyone know how i can get the list of files in a folder in Access? I want to list all the files in a folder and find out if a particular file exists. Help appreciated. KISS - Keep It Simple Sugar!
Does anyone know how i can get the list of files in a folder in Access? I want to list all the files in a folder and find out if a particular file exists. Help appreciated. KISS - Keep It Simple Sugar!
Mar 8, 2004 #2 drctx IS-IT--Management May 20, 2003 226 US you could do something like this: Dim SnapFile As String SnapFile = "C:\" & "Quote " & quoteno & " Revision " & revno & ".snp" ' check if file exists If Dir(SnapFile) <> "" Then MsgBox "File exist." Else MsgBox "File does not exist." End If Upvote 0 Downvote
you could do something like this: Dim SnapFile As String SnapFile = "C:\" & "Quote " & quoteno & " Revision " & revno & ".snp" ' check if file exists If Dir(SnapFile) <> "" Then MsgBox "File exist." Else MsgBox "File does not exist." End If
Mar 8, 2004 #3 vbajock Programmer Jun 8, 2001 1,921 US Google "FileScriptingObject". There is so much code out there on it you can probably cut and paste what you need Upvote 0 Downvote
Google "FileScriptingObject". There is so much code out there on it you can probably cut and paste what you need