+ Reply to Thread
Results 1 to 2 of 2

Join 2 csv files in different paths having spaces, with ODBC MICROSOFT ACCESS TEXT DRIVER

  1. #1
    Forum Contributor
    Join Date
    03-07-2006
    Location
    India
    MS-Off Ver
    MSOffice 365 Professional 64 bit
    Posts
    108

    Join 2 csv files in different paths having spaces, with ODBC MICROSOFT ACCESS TEXT DRIVER

    I am using Windows 10 Enterprise 64-bit and Excel 2016 64-bit. The following code uses ODBC `MICROSOFT ACCESS TEXT DRIVER` and works fine if there are no spaces in the different file paths. It fails with a `Syntax in FROM Clause error` if there are spaces in the file paths. I have tried 'single-quotes', "double-quotes", [square-brackets], `apostrophes`, Chr(34) etc., but still getting the same Syntax error. Can anyone help me understand what is the correct syntax?

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    03-07-2006
    Location
    India
    MS-Off Ver
    MSOffice 365 Professional 64 bit
    Posts
    108

    Re: Join 2 csv files in different paths having spaces, with ODBC MICROSOFT ACCESS TEXT DRI

    I finally got it to work and was also able to resolve the power query FROWN Error issue (listing below). See the syntax of enclosing the filepath using `back-ticks`. Also the INNER JOIN gets replaced with a "," and the ON gets replaced with a WHERE Clause.

    Listing the steps i took:
    1. Removed all Power Queries in Excel workbook.
    2. Installed latest Office 2016 Sept 3 updates from the following MS site.
    3. Rebooted my System.

    The 2nd AND / OR the 3rd point may have resolved the issue, as i cannot see it is documented on MS site (my trial & error).

    For those who may face the same issue, the SQL QUERY SYNTAX is as shown in the above code. I was also able to use this same SYNTAX with ACE.OLEDB.12 Driver and it works fast and fine in both cases.


    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Join 2 csv files from different paths having spaces, using ACE.OLEDB.12 in Excel VBA
    By junoon in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-06-2019, 08:35 AM
  2. [SOLVED] [microsoft][ODBC Driver Manager] Data source name not found and no default driver specifie
    By FoxyladyAccountant in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 06-03-2019, 01:22 PM
  3. Replies: 5
    Last Post: 08-12-2015, 05:45 PM
  4. Replies: 2
    Last Post: 07-09-2015, 08:34 AM
  5. Replies: 0
    Last Post: 03-28-2012, 11:24 AM
  6. ODBC Microsoft Access Driver Login Failed
    By pinkshirt in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-13-2011, 10:50 AM
  7. Replies: 0
    Last Post: 07-06-2005, 02:05 PM

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1