Results 1 to 4 of 4
  1. #1
    mlozano is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2012
    Location
    Madrid, Spain
    Posts
    11

    Automated record generation

    Hi
    I am developing a db for quotes, orders, delivery noted and invoices.



    Each type of document (quotes, orders, delivery notes, invoices) is divided in two tables, one for the headers and another one for the details (lines)

    I would like to allow my users to generate an order from an existing quote, a delivery note from an existing orsder, and invoices from existing delivery notes. The details (lines) of each document should be transferred from one type of document to the next, and all the header detyails should be copied too.
    What is the simplest way to go around this?

    Thanks a lot

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    You don't need a separate table for orders vs quotes. You can have one table that is the quote, just have a 'yes/no' field if that quote becomes an order. Then have a order sub table for any additional items that are DIFFERENT from your quote system (i.e. delivery date etc). You also do not need to copy information from orders to invoices. You can create an invoice based on the order likely involving a cost per item table so that your shipping label would just have quantities but your invoice would have the cost. Copying the same information from table to table is a very, very bad idea, you will have all kinds of trouble synchronizing your data and making sure there are no errors, not to mention you will be storing WAY more information than you need.

  3. #3
    mlozano is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2012
    Location
    Madrid, Spain
    Posts
    11
    Thanks rpeare!
    Do you think it would be workable to havethen only one "headers" tableand one "details" table, then add successively the necessary information. For exple
    1.- Quote is created
    2.- Order is confirmed, so Order Nr. is added
    3.- Order is ready forshipment, so Delivery Note Nr is added
    4.- Shipment is delivered, so Invoice Nr is added

    Adding the Invoice nr weould imply locking the data of both the header record and the associated lines records, is this feasible without too much coding?

    Many thanks

  4. #4
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    Well, I tend to prefer designing data entry on unbound forms so I use a lot of code, I find it a lot easier to control what happens to the data that way. But realistically you can do the same sort of function on both bound and unbound forms, the bound forms are much easier for newer users to contend with but everything you mentioned is possible how you proceed is really determined on your data structure and whether or not you're going to use a bound/unbound form for data entry.

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

Similar Threads

  1. Automatic generation of tax year
    By Redhillgeneral in forum Database Design
    Replies: 6
    Last Post: 11-01-2012, 11:30 AM
  2. Replies: 1
    Last Post: 03-28-2012, 03:27 PM
  3. Random value generation?
    By Delta223 in forum Access
    Replies: 4
    Last Post: 01-12-2012, 12:14 PM
  4. Automatic Next number generation
    By MicroMan in forum Programming
    Replies: 17
    Last Post: 10-21-2011, 05:57 PM
  5. Report Generation
    By Lorlai in forum Reports
    Replies: 5
    Last Post: 07-01-2011, 11:13 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