Mar 8, 2004 #1 dhaveedh Programmer Joined Aug 13, 2003 Messages 112 Location 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 Joined May 20, 2003 Messages 226 Location 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 Joined Jun 8, 2001 Messages 1,921 Location 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