Results 1 to 3 of 3
  1. #1
    itm is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jun 2011
    Posts
    69

    Question Troble with a pass through query


    Hi,

    I have an Access 2007 database that I have inherited, and in there are pass through queries that connect to SQL Server tables. Now I see that in the ODBC set up of the queries, are set up with trusted windows connection. I know I only have Read rights on the production server that these queries connect to. On a form that they have it takes the results of this query and uses it as DAO record set to populate an excel sheet. However, when I make a change to the query, I am just adding a field in the select statement, and when I run this from the form; it stops at the creation of the record set and says something to the extent that the field can be from multiple tables and that it is not sure which. When I go back to the query the code changes that I made are gone. That is, the join to a table that I had to make to bring in this filed and the field in the select statement is gone. Now, before running it on the form the query displays the results and is okay. So why does this happen? Is this because I do not have rights? But would it actually erase my code changes in the pass through query?

    Thank you

  2. #2
    Stingaway is offline Efficiency Junkie
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2011
    Location
    The deep south. Keep going until you hit water basically.
    Posts
    224
    Try copying the query first, then creating a new query based on the original. As for the field being from multiple tables, specify the table name in the query along with the field and you should be okay.

  3. #3
    itm is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jun 2011
    Posts
    69
    Thanks I will try this.

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

Similar Threads

  1. Having troble exporting a text delimited file
    By itm in forum Import/Export Data
    Replies: 2
    Last Post: 07-18-2011, 06:42 AM
  2. Pass Value from Report To Query
    By brc in forum Queries
    Replies: 1
    Last Post: 04-19-2011, 05:50 PM
  3. VBA Pass-through Query with Variable
    By smaumau in forum Programming
    Replies: 0
    Last Post: 12-06-2010, 09:10 AM
  4. Pass-Through Query or ADO, is there a way?
    By Amber_1977 in forum Queries
    Replies: 3
    Last Post: 11-10-2010, 08:56 AM
  5. Pass a value from a query to a form
    By cwwaicw311 in forum Forms
    Replies: 22
    Last Post: 03-22-2010, 10:21 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