+ Reply to Thread
Results 1 to 1 of 1

Problem with JOIN in Excel Query

  1. #1
    Registered User
    Join Date
    11-21-2007
    Posts
    1

    Problem with JOIN in Excel Query

    Hi,
    I have the following SQL statement when querying an Excel Workbook.



    Please Login or Register  to view this content.

    I am getting the error "No value given for one of or more required paramenters." when I run this code. The error is at the statement where the RecordSet rsData is opened.

    I think the error is related to the join part of the SQL.

    The problem is somewhere in "INNER JOIN [Antifungal$] ON [Cancidas$].[Cust ID] = [Antifungal$].[Cust ID]"

    because when I take out the JOIN part, the code runs.

    Either, it does not like the sheet name that I am joining with or maybe the column names [Cust ID], or, plain,
    you just cannot do JOINS in Excel SQL.

    I've checked the columns names and the worksheet name and they match with the actual names in the worksheet.

    Can anyone help me figure out the issue.


    Thanks-in-advance.



    Saad
    Last edited by VBA Noob; 11-21-2007 at 07:06 PM.

+ 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