Results 1 to 5 of 5
  1. #1
    cbende2's Avatar
    cbende2 is offline Competent Performer
    Windows 7 32bit Access 2013
    Join Date
    Jun 2014
    Location
    Louisiana
    Posts
    370

    Question Building a report

    Hello all,

    I'm building a report for my sample database before moving on to my actual database, and I need help with it. I'm fairly certain this will involve coding in VB, and I have very little experience with it.

    Here is my database:TestingReports.zip



    I want to design a report that ends up looking like this: TestingReportsExcel.zip

    I manually did it in excell for my sample database to just show you guys what I would like for my report in access to look; but in my actual database, I have over 350 plans and 10+ trading partners and 10+ administrators, hence the reason I'd like to have a button to click to calculate these things up and print a report on it.

    Any help will be greatly appreciated!

    EDIT: To explain what I'm trying to do: I have PlanTable with fields [PlanName], [TradePartnerID] and [AdminID], I have TradePartnerTable with fields [TradePartnerID] and [TradePartner], and I have AdminTable with fields [AdminID] and [AdminName].
    I'm trying to build a report that gives me a view seeing how many plans the administrators handles, the TradePartner of the plans the administrator handles and a total of all the plans.

    It is easy to see what I'm looking for in the second attachment, I kind of manually created the report inside excel and actually counted up the values that match.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,527
    You want a CROSSTAB query. But 1st...you need a query to join your tables and the get the values...say: [person],[co], [amt]. Call it Q1

    Now use the query wizard to create a crosstab using Q1.
    Names as columns
    Co as rows
    Values at the intersections.

    Once you have the crosstab query, you can make a report.

  3. #3
    cbende2's Avatar
    cbende2 is offline Competent Performer
    Windows 7 32bit Access 2013
    Join Date
    Jun 2014
    Location
    Louisiana
    Posts
    370
    How do I get the [amt]? I'm assuming thats the amount of how many plans that person has with a specific company? How do i get that?

    Thanks for the reply by the way.

    EDIT: I got it, but now how do I get the total values to show up?

    Like so:
    Click image for larger version. 

Name:	Report.jpg 
Views:	6 
Size:	107.7 KB 
ID:	17462

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,956
    Try textboxes in form footer section with expressions in ControlSource, like: =Sum([Bob])
    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.

  5. #5
    cbende2's Avatar
    cbende2 is offline Competent Performer
    Windows 7 32bit Access 2013
    Join Date
    Jun 2014
    Location
    Louisiana
    Posts
    370
    Thanks! It worked!

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

Similar Threads

  1. Building a Web App?
    By Solar.Paul in forum Access
    Replies: 2
    Last Post: 12-21-2013, 09:28 PM
  2. Report Expression Building
    By KMac in forum Reports
    Replies: 7
    Last Post: 12-07-2012, 11:29 AM
  3. Building a FAQ
    By Karin in forum Access
    Replies: 5
    Last Post: 03-07-2011, 11:26 AM
  4. Building
    By jlech1805 in forum Access
    Replies: 1
    Last Post: 11-17-2010, 12:10 PM
  5. Building Array
    By jgelpi16 in forum Forms
    Replies: 12
    Last Post: 03-22-2010, 12:33 PM

Tags for this Thread

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