Results 1 to 4 of 4
  1. #1
    Javen is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2011
    Posts
    2

    Angry List names in Report

    Hi There, I know this may not seem difficult, but it's driving me crazy. I have a report based on a query. There's a field in the form that uses a lookup wizard which grabs a list from another table (a list of names)



    When I created and ran the query it displays the names. But when I run the report based on that query, it shows a number instead of the name.

    Thanks for your help... Javen

  2. #2
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    You probably have a another table that is linked to the table which contains the number. The number is the foreign key which is joined to the primary key in the separate(lookup) table. You will need to add the second table to your report to get the names. Look at your query in design view to see the join and table name and fields.

    Alan

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,967
    Would have to use a combo or list box with a RowSource for the lookup name value to show, just like on the form. Combo and list boxes are of no use on a report in Print Preview and probably not good idea to have bound combo or list box on a report.

    So for the report, do as alansidman is suggesting. The report RecordSource must be a join of the tables and then pull the name field into the query. Be sure to get the jointype correct.
    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.

  4. #4
    Javen is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2011
    Posts
    2

    List names in Report

    Thanks Guys,
    Problem solved

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

Similar Threads

  1. File Names in "Open Recent Database" list
    By Ron.Sul in forum Access
    Replies: 3
    Last Post: 12-29-2011, 10:06 AM
  2. Rotating list of names
    By bkvisler in forum Access
    Replies: 15
    Last Post: 07-27-2011, 06:49 PM
  3. Import a list of names from Word to access
    By WickedGoodOutdoors in forum Import/Export Data
    Replies: 3
    Last Post: 01-04-2011, 05:25 PM
  4. Loop through a list of table names and compare
    By mikneus in forum Programming
    Replies: 1
    Last Post: 05-21-2010, 10:36 AM
  5. Replies: 1
    Last Post: 05-17-2010, 12:21 PM

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