Results 1 to 9 of 9
  1. #1
    ez2012 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2014
    Posts
    7

    create invoice form that look like Quickbooks invoices

    Hi everyone,

    I would like to create an invoice form that look like QuickBooks invoice. What I mean by that is that I would like to be able to enter several rows of products with price and quantity and generate a report with the information and total price. I try the multiple line form but the problem im facing is my invoice number need to be entered at each row. is it possible or am i asking too much for access?


    Thank you.

  2. #2
    moke123's Avatar
    moke123 is offline Me.Dirty=True
    Windows 11 Office 365
    Join Date
    Oct 2012
    Location
    Ma.
    Posts
    1,879
    I try the multiple line form but the problem im facing is my invoice number need to be entered at each row. is it possible or am i asking too much for access?
    Not sure I get your question, whether you want the Inv.# to show on each line or only at the top line. If the latter, the is a hide duplicates property in reports.
    If this helped, please click the star * at the bottom left and add to my reputation- Thanks

  3. #3
    madpiet is offline Expert
    Windows 10 Office 365
    Join Date
    Feb 2023
    Posts
    565
    Should be a main and subform. InvoiceNo is in the header table and then the relationship makes it get carried to the related table.
    Then you can show it in the subform.

  4. #4
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    I think you mean you want to create an invoice with Access that you can send/give to a client? Then you would use a form where you input the data into tables (that is just database 101 stuff). Then your report would be based on a query that retrieves the line items for the invoice. The report would be designed to have the QB look that you want. The report header would contain the invoice number so that it is just shown once, but your query would, of course, show the invoice number for each invoice line item. The line items would go into the report detail section. You would not put a control for the invoice number into the detail section of the report - just the header of the report. Don't know if you realize, but this is (probably) at least 4 tables: tblInvoice, tblInvLineItems, tblProduct (or services) and tblPrices. When you create an invoice, the current price becomes part of the invoice record. If you link back to the price table and the price changes, existing invoice pricing will reflect the changes and you don't want that.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  5. #5
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,556
    Perhaps have a look at the Northwind2 databases?

    https://www.devhut.net/access-northw...ect-downloads/
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  6. #6
    ez2012 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2014
    Posts
    7
    Thank you all. sorry for the confusion, but you guys helped me a lot. the northwind2 database is a great help i can take the idea and implant it on my database. I think it will work the best the order form is really good, and it is what I'm looking for. I just need to make it work on my data. Is there any advantage or disadvantage of calculating the Qty and unit price on the form vs calculating it on table?
    northwind database use the following on the form page =[txtQuantity]*[txtUnitPrice] for total of 1 row
    I create a calculated field on my table that call total that doing the same thing.
    my question is what is the best way to do?

  7. #7
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,556
    Not an expert, but I would go with the way they did it. I do not know why they did it that way, but there would be a good reason.
    I will ask one of the developers.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  8. #8
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    Is there any advantage or disadvantage of calculating the Qty and unit price on the form vs calculating it on table?
    As a general rule, you do not store calculations. Your invoice line items table might have qty and price fields but the line total should be an expression in the unbound line total control. The reason is, if either qty or cost values change in the line item record, you would have to re-calculate the line total in your table and that is prone to failure.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  9. #9
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,556
    Wouldn't that occur in table calculations?
    I have never used them, only just upgraded to a version that supports calculated fields (I think),
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

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

Similar Threads

  1. Replies: 2
    Last Post: 08-05-2019, 01:24 PM
  2. Replies: 3
    Last Post: 09-23-2017, 08:16 AM
  3. Replies: 14
    Last Post: 05-06-2015, 11:19 PM
  4. Replies: 3
    Last Post: 11-19-2012, 05:05 PM
  5. Replies: 1
    Last Post: 10-10-2012, 01:05 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