Results 1 to 2 of 2
  1. #1
    New Lounger
    Join Date
    Oct 2005
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    DIR command (Access 2000)

    I wanted the replace the Dir command with one path, i.e. with a Dir command with additional paths
    The original command was:
    Private Sub Command3_Click()
    If Dir(DBl, vbNormal) <> "" Then
    ImportAllTables (DBl)
    End If
    End Sub
    My failed effort was :
    If Dir ( DBl,Or DHa,Or DSo,Or DBB <> " " Then
    ImportAllTables (DBl,Or DHa,Or DSo,Or DBB)
    End If
    Did i write the line wrong?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: DIR command (Access 2000)

    Dir doesn't work that way, and although you haven't told us what ImportAllTables does, I don't think it'll work with multiple arguments either. You'll have to handle each path separately.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •