• Table Linker (v2000)

    Author
    Topic
    #412030

    I have a batch of *.CSV files that are loaded to a folder each month. I want to import the contents of these files one by one into an existing table using code. The problem is I don’t know the naming convention…only that they will be in the folder and will contain a *.CSV extension. How can I get VBA to find the first *.CSV file, import it and move to the next file until all CSV files have been imported?
    Thanks,
    Dashiell

    Viewing 1 reply thread
    Author
    Replies
    • #897674

      Dim strMatch as String
      strMatch = Dir(“yourpath*.csv”)
      Do While strMatch “”
      DoCmd.Transfer ……………………..
      Dir
      Loop

    • #897675

      Dim strMatch as String
      strMatch = Dir(“yourpath*.csv”)
      Do While strMatch “”
      DoCmd.Transfer ……………………..
      Dir
      Loop

    Viewing 1 reply thread
    Reply To: Table Linker (v2000)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: