K
Ken
I am attempting to create an Order entry form, and all attempts thus
far have run into major snags. Our company has been using a modified
version of the Northwind database, but due to the design, any changes
we make to billing on a new order propagates though all the old orders.
What I have done is created a new database with the following table
structure:
tblCompany - companyID (primary key), company, companydiscount
tblContacts - contactID (primary key), companyID, name, position,
address1, address2, etc.
tblBillto - billtoID (primary key), companyID, billcompany, address1,
address2, etc.
tblShipto - shiptoID (primary key), companyID, shipcompany, address1,
address2, etc.
tblSalesperson - salesmanID (primary key), fullname
tblShippercompany - shipperID (primary key), shippername
tblOrders - orderID (primary key), companyID, billtoID, shiptoID,
salesmanID, contactID, shipperID, jobno, ponumber, etc.
tblProducts - productID (primary key), productname, unitprice, etc.
tblOrderdetails - orderdetailsID (primary key), orderID, productID,
notes, quantity, etc.
Based on this structure, what I would like is a form for orders that
has the ability to select a company that then filters the contacts,
billto, and shipto selections to that one company. Each company can
have multiple contacts, billto addresses, and shipto addresses
Should this be a straight-forward form, or will it require a lot of
behind the scenes coding? I've tried basing the form on one large
query, on multiple queries, on subforms... all kinds of variants, but
always run into some major obstacle. I've tried looking for some
kind of example, but none I've found have covered this kind of
scenario.
If someone could provide a nudge in a particular direction, I'd
certainly appreciate it (book to buy, website to read, etc.).
Ken
far have run into major snags. Our company has been using a modified
version of the Northwind database, but due to the design, any changes
we make to billing on a new order propagates though all the old orders.
What I have done is created a new database with the following table
structure:
tblCompany - companyID (primary key), company, companydiscount
tblContacts - contactID (primary key), companyID, name, position,
address1, address2, etc.
tblBillto - billtoID (primary key), companyID, billcompany, address1,
address2, etc.
tblShipto - shiptoID (primary key), companyID, shipcompany, address1,
address2, etc.
tblSalesperson - salesmanID (primary key), fullname
tblShippercompany - shipperID (primary key), shippername
tblOrders - orderID (primary key), companyID, billtoID, shiptoID,
salesmanID, contactID, shipperID, jobno, ponumber, etc.
tblProducts - productID (primary key), productname, unitprice, etc.
tblOrderdetails - orderdetailsID (primary key), orderID, productID,
notes, quantity, etc.
Based on this structure, what I would like is a form for orders that
has the ability to select a company that then filters the contacts,
billto, and shipto selections to that one company. Each company can
have multiple contacts, billto addresses, and shipto addresses
Should this be a straight-forward form, or will it require a lot of
behind the scenes coding? I've tried basing the form on one large
query, on multiple queries, on subforms... all kinds of variants, but
always run into some major obstacle. I've tried looking for some
kind of example, but none I've found have covered this kind of
scenario.
If someone could provide a nudge in a particular direction, I'd
certainly appreciate it (book to buy, website to read, etc.).
Ken