Results 1 to 4 of 4
  1. #1
    stardust1979 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2014
    Posts
    7

    Queries and relationships with Linked Tables

    Hi,



    I have created a linked table to a shared Outlook Contacts folder - this has been working fine. However, I now need to create a query based on 2 tables (one a table on my local db and this linked table). I use the access query designer and add the 2 tables and then manually link the two fields, then if I run my query I get "Invalid Argument". If I convert the linked table to a local table the query works. I have also tried to rename the field on my local db to exactly match the field name on my linked table and still get the error.

    Has anyone tried this?

    Here is my SQL:

    SELECT tblCommunication.CommID
    FROM tblCommunication INNER JOIN MALTContacts ON tblCommunication.ContactID = MALTContacts.[Customer ID];


    NOTE: I stripped the query right back until I solved this problem - it will be more complex eventually once I resolve this linking issue!


    I also have seen there is a problem with linked tables when a db gets close to Access's size limit - my db is only 3MB in size.

    Any ideas - I have searched around forums and unable to find an answer to this?


    Thanks in advance for any help
    K

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,623
    I don't see anything 'invalid' about that SQL.

    What are the data types of the linking fields - both are text?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    stardust1979 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2014
    Posts
    7
    Quote Originally Posted by June7 View Post
    I don't see anything 'invalid' about that SQL.

    What are the data types of the linking fields - both are text?
    Yes - they are both text!

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,623
    I did search. Bing: access sql link table query join invalid argument

    Perhaps this solution applies to links as well as imports: http://support.microsoft.com/kb/835416

    Cause could be from any number of issues. Don't think this one applies but is an example of how varied they can be http://stackoverflow.com/questions/3...access-and-sql
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 11
    Last Post: 07-22-2014, 02:13 PM
  2. Replies: 5
    Last Post: 05-24-2013, 11:55 AM
  3. Replies: 5
    Last Post: 02-02-2012, 06:42 PM
  4. Tables, Relationships, and queries.
    By Andyjones in forum Access
    Replies: 2
    Last Post: 01-22-2012, 05:23 AM
  5. Creating Relationships and Queries
    By nacho in forum Database Design
    Replies: 4
    Last Post: 04-16-2010, 03:22 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums