Results 1 to 4 of 4
  1. #1
    lpkorn423 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2012
    Posts
    12

    Multiple invoices attached single job

    Thanks for any help in advance.



    Currently have a database that's main table has individual jobs. Each job has multiple 'parts'. I'd like to be able to create multiple invoices for each job because sometimes we are forced to bill by part instead of by the entire job. What I'd like to be able to do is create an invoice based on a single job, but pick and choose what 'parts' it populated from the job table.

    Example:
    Let's say we have a job that requires fabricating 3 unique items. The job table would include all of the information, including price, for each of the unique parts.
    If the buyer requires it, I'd like to be able to have 3 separate invoices that all populate the information from each individual part. Alternatively we might have to include 2 parts on one invoice and 1 part on another invoice.

  2. #2
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    Welcome to the forum!

    If a job has multiple parts, you should have 2 tables not 1 since having multiple parts to a job describes a one-to-many relationship. If you properly structure that, the invoicing by parts or a number of parts becomes easier.

    The structure might look like this

    tblJob
    -pkJobID primary key, autonumber
    other job related fields

    tblJobParts
    -pkJobPartID primary key, autonumber
    -fkJobID foreign key relating back to tblJobs (must be a long integer number datatype field)
    -currPartPrice
    other part fields

    tblInvoice
    -pkInvoiceID primary key, autonumber
    -dteInvoice (invoice date)

    tblInvoiceParts
    -pkInvPartID primary key, autonumber
    -fkInvoiceID foreign key relating back to tblInvoice (must be a long integer number datatype field)
    -fkJobPartID foreign key relating back to tblJobParts (must be a long integer number datatype field)

  3. #3
    lpkorn423 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2012
    Posts
    12
    Well that makes things a lot easier...

    New to access so much thanks!

  4. #4
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    You're welcome.

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

Similar Threads

  1. Multiple Reports to Single PDF
    By hkimpact in forum Access
    Replies: 1
    Last Post: 06-11-2012, 03:17 PM
  2. single form multiple database
    By sms2720 in forum Programming
    Replies: 7
    Last Post: 12-14-2011, 01:26 PM
  3. Single Form, Multiple Options
    By forrestapi in forum Forms
    Replies: 4
    Last Post: 06-30-2011, 07:09 AM
  4. Printing Invoices
    By Alex Motilal in forum Reports
    Replies: 4
    Last Post: 05-11-2010, 01:20 AM
  5. Multiple UPDATE in single query
    By nishezaman in forum Access
    Replies: 0
    Last Post: 12-13-2009, 01:40 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