Results 1 to 13 of 13
  1. #1
    Awowk is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    7

    Couple of newbie questions

    I will do my best to try to explain my problem. I am very new to Access, and my boss has asked me to create a report that creates invoices for several companies.

    He provided me with an SQL dump into Excel, which I have successfully put into report form. I have enclosed a picture of my current layout, and will elaborate in this post.

    Right now, I have the report formatted to display 1 invoice per entry, which gives me 27 invoices. It works, but its not what my boss is looking for. I need to have each company with 1 invoice, displaying all entries relevant to that company.

    At the top, you can see where it prints out my company name, and relevant information. This is followed by the detination company's information.

    When I try to change the layout to display multiple entries on one invoice, I get the following problems:

    Problem 1: I have the company name information print out successfully, but when I check the print preview, it only prints out the first company in the excel document, represented by the green square.

    The problem I have is that there are 6 different companies, and I need an invoice for each one.

    Problem 2: In orange, you can see that I have several pieces of information that are suppose to print out. When I print preview, the information that is printed doesn't correspond with the destination company, but rather all entries in the excel spreadsheet. I need this seperated by corresponding company. Eg. Company 1 has 1 entry, Company 2 has 8 entries. I need 1 invoice for Company 1, and 1 invoice for Company 2 which displays all 8 entries.

    Problem 3: In red, I need to calculate the total HST for the respective page. Eg. If there are 4 invoices, each with 5$ HST charge, I need the box in red to add the 4 HST charges, or 5, or 1 etc and display the total.

    Problem 4: Similar to problem 3, I need the purple box Amount to equal the total amount on the respective invoice.

    I am farmilliar with the basics of Object oriented programming, and basic JAVA, so you can get kind of technical on me and you won't lose me. However, I am still trying to figure out this Access and how to do things with it.

    I really appreciate any help you guys can offer. Thank you very much.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    What section is that top part in? It's cut off. I would expect it to be "Company Header" or something to that effect. In other words, in Sorting and Grouping you would have company listed as a field to be grouped on. The way to get totals would be a textbox with a control source of:

    =Sum(Amount)

    but it won't work in a page footer. You'd want it in a group footer and/or report footer. See if the attached picture helps.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Awowk is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    7
    It is in the Page Header section.

    How do you create sections specific to an entry?

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    The wizard would have asked about it, or, as mentioned, you can also set it in Sorting and Grouping. View/Sorting and Grouping, or on the ribbon in 2007.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    Awowk is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    7
    woo it works perfectly now!

    Thank you so much for your help

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Happy to help, and welcome to the site by the way!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  7. #7
    Awowk is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    7
    Alright, one last error I am encountering.
    The report is doing exactly what its suppose to, grouping invoices by company name, summing the total HST and amount of each invoice and displaying all relevent company information.

    The problem I have right now is that there is 1 invoice where 2 entries are combined, even though the company name is completely different.

    X Oil Resources
    and
    Y Energy Ltd

    The invoices are combined under X Oil Resources, and I don't know why.
    The information between companies is completely different.

    Any clue as to why it would do this?
    thanks!

  8. #8
    Awowk is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    7
    Disregard above question, I had it grouping under the first letter (hurr sorry dumb mistake)

    Another question, is there a way to force the grouping to check against full names, instead of checking against x number of letters?

  9. #9
    Awowk is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    7
    I'm just going to stop talking now.
    Im done, solved again.
    Cheers

  10. #10
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Are you grouping on the name, or some ID field that might be the same? I've never seen the grouping make a mistake like that. Can you post the db?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  11. #11
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Ah good. Sorry about the post. This is what happens when you start typing and then answer the phone.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  12. #12
    Awowk is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    7
    Yeah its what happens when you are a crazy person like me and things like the above make you work through your lunch hour. Then I go and monologue on an MS Access Forum. Go me.

  13. #13
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    LOL! Lunch time here as well.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. A couple of problems...
    By dr_destructo in forum Forms
    Replies: 1
    Last Post: 06-08-2010, 11:03 PM
  2. Basic questions from a newbie! :(
    By Michael_ in forum Access
    Replies: 6
    Last Post: 05-07-2010, 02:41 PM
  3. Replies: 11
    Last Post: 01-21-2010, 11:01 AM
  4. 3 questions about forms
    By surfer_rosa in forum Forms
    Replies: 0
    Last Post: 10-08-2008, 09:59 AM
  5. newbie questions
    By bigmac in forum Access
    Replies: 0
    Last Post: 10-07-2008, 12:53 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