Results 1 to 9 of 9
  1. #1
    Rickochezz is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    Apr 2016
    Posts
    45

    Exporting Access Report to Excel Spreadsheet producing strange results

    When I attempt to convert access report to excel spreadsheet



    DoCmd.OutputTo acOutputReport, "rptProvExamList", "Excel97-Excel2003Workbook(*.xls)", "P:\Training\Training Database\Exam booking form2.xls", True, "", , acExportQualityPrint

    This
    =[LastName] & ", " & [FirstNames]

    produces

    Student Name
    ARIF, Imran
    AYODELE, Ebenezer
    BHANSORA, Sanjay Singh
    BHANSORA, Sanjay Singh
    BHANSORA, Sanjay Singh
    BHANSORA, Sanjay Singh
    BHANSORA, Sanjay Singh
    BHANSORA, Sanjay Singh
    BHANSORA, Sanjay Singh
    BHANSORA, Sanjay Singh


    and when I right click one of the cells I get the option to "Pick from drop down list" with the first 3 entries being the possibilities

    If I just use
    =[LastName]

    I get all of the correct last names

    Thinking that this is an easy fix but over my head

    Any assistance would be greatly appreciated

    Thanks
    Rick

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    I can only guess that you are using a lookup field at the table level in your Access DB.

  3. #3
    Rickochezz is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    Apr 2016
    Posts
    45
    They are both just "short text" fields within the student table and just trying to bring them together in the report separated by a comma and space

  4. #4
    Rickochezz is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    Apr 2016
    Posts
    45
    You might be on to something

    When I use just

    [FirstNames]

    I get the same result

    So, any ideas on how to troubleshoot and eventually come up where the problem lies (other than between the chair and the keyboard)

  5. #5
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    Are you exporting from a table or a query? When you look at the table in design view, and you look at the properties for the name fields, is there anything in the Lookup tab? The General tab will have the focus on default, so click the Lookup tab for the Properties at the bottom of the window.

  6. #6
    Rickochezz is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    Apr 2016
    Posts
    45
    I'm actually exporting a report which gets its data from a query

    Lookup tab
    Display Control - Text Box
    That is all

  7. #7
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    OK, you did mention that and I should have stayed focused on that. Reports have groups, so, stuff gets repeated. Similar stuff can happen with queries. However, reports are often times difficult to comprehend when they are exported to Excel. I would start by exporting from the query your report is based upon. You may want to make a copy of the query and make some changes in the end.

  8. #8
    Rickochezz is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    Apr 2016
    Posts
    45
    I will try that - Thanks

  9. #9
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    You bet, let us know how it turns out.

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

Similar Threads

  1. Replies: 21
    Last Post: 09-18-2015, 11:54 AM
  2. Replies: 3
    Last Post: 08-13-2014, 11:07 AM
  3. Exporting a Access Report to an Excel File
    By Coffee in forum Import/Export Data
    Replies: 2
    Last Post: 07-28-2014, 11:32 AM
  4. Replies: 1
    Last Post: 11-16-2013, 09:01 AM
  5. Strange report results
    By DDows in forum Reports
    Replies: 5
    Last Post: 01-10-2011, 06:43 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