Results 1 to 3 of 3
  1. #1
    tagteam is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    486

    query runs but cant export to excel-says because multivalue field but none in table

    I have a basic query that pulls data from two tables and NEITHER of them has any multi-valued fields, which i never use. The criteria comes from a dropdown box on another form which I do all the time. I can run the query but when I try to export it to excel i get:



    Can't reference a table with a multi-valued field using an IN clause that refers to another database.

    1. if someone added a multi-valued field without telling me what is the easiest way to find it.
    2. If they did not , what is causing this error?

    As you can see it is a simple query. Only a two tables and a few fields.

    Code:
    SELECT AllRailcarData.CarInitials, AllRailcarData.CarNumber, AllRailcarData.FormerCarInitials, AllRailcarData.FormerCarNumber, AllRailcarData.Completed, tbl_Customers.CustomerNameFROM tbl_Customers RIGHT JOIN AllRailcarData ON tbl_Customers.CustomerIDNumber = AllRailcarData.CustomerID
    WHERE (((AllRailcarData.Completed)=[Forms]![f_Karen]![AcqGroup]));

  2. #2
    tagteam is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    486
    Update - If I remove the parameter for the Completed field which is [Forms]![f_Karen]![AcqGroup] then it will run all the cars but will also allow it to export to excel properly.

  3. #3
    tagteam is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    486
    Update - It even works if I copy one of the values from the dropdown box and put it in the query criteria section. Why would this dropdown be causing problems? I do reports like this all the time.

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

Similar Threads

  1. Replies: 1
    Last Post: 03-11-2014, 09:29 AM
  2. Replies: 7
    Last Post: 04-25-2013, 03:47 PM
  3. Replies: 2
    Last Post: 10-22-2012, 05:32 PM
  4. Replies: 1
    Last Post: 12-18-2011, 01:28 AM
  5. Export table to excel using excel template
    By allenjasonbrown@gmail.com in forum Programming
    Replies: 1
    Last Post: 06-27-2011, 02:10 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