+ Reply to Thread
Results 1 to 2 of 2

Data import Problem: Access Query to Excel

  1. #1
    Registered User
    Join Date
    05-22-2009
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    6

    Data import Problem: Access Query to Excel

    Hello. I have a strange problem with importing data from an Access Query to Excel. It is working fine as long as I do not use wildcards (like * or ?)as a criteria in my Access Query. If I use wildcards as a criteria my imported data table is blank.

    Example:
    I can import that:

    SELECT PUB_ar_mstr.ar_cust, PUB_ar_mstr.ar_nbr, PUB_ar_mstr.ar_date, PUB_ar_mstr.ar_amt, PUB_ar_mstr.ar_curr, PUB_ar_mstr.ar_due_date
    FROM PUB_ar_mstr
    WHERE (((PUB_ar_mstr.ar_nbr) Like "33133") AND ((PUB_ar_mstr.ar_date)>=#5/1/2009#) AND ((PUB_ar_mstr.ar_cr_terms)>"0"));

    I can NOT import that:

    SELECT PUB_ar_mstr.ar_cust, PUB_ar_mstr.ar_nbr, PUB_ar_mstr.ar_date, PUB_ar_mstr.ar_amt, PUB_ar_mstr.ar_curr, PUB_ar_mstr.ar_due_date
    FROM PUB_ar_mstr
    WHERE (((PUB_ar_mstr.ar_nbr) Like "3313?") AND ((PUB_ar_mstr.ar_date)>=#5/1/2009#) AND ((PUB_ar_mstr.ar_cr_terms)>"0"));

    The only difference between these two SQL-Codes is the "?" instead of 3.

    Why is the import to Excel affected by that??????????

  2. #2
    Registered User
    Join Date
    05-22-2009
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Data import Problem: Access Query to Excel

    Never Mind. I solved the Problem.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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