A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Help with simple sales data base



 
 
Thread Tools Display Modes
  #1  
Old March 5th, 2010, 08:47 PM posted to microsoft.public.access
CP
external usenet poster
 
Posts: 121
Default Help with simple sales data base

Hi need help with a school project for one of my off spring
They are writing a simple sales database and have become stuck. Any help
would be appreciated.

We have an Orders table, Customers table (with a link to orders) and a
product table.

What we are trying to do is have an orders form where you select a customer
(done that), and have a subreport pick out the products you are selling -
however I cant figure out how to link products to orders as i may have many
lines of products on one order and wish to show totals etc?

Any pointers....
  #2  
Old March 5th, 2010, 08:55 PM posted to microsoft.public.access
XPS350
external usenet poster
 
Posts: 69
Default Help with simple sales data base

On 5 mrt, 21:47, CP wrote:
Hi need help with a school project for one of my off spring
They are writing a simple sales database and have become stuck. Any help
would be appreciated.

We have an Orders table, Customers table (with a link to orders) and a
product table.

What we are trying to do is have an orders form where you select a customer
(done that), and have a subreport pick out the products you are selling -
however I cant figure out how to link products to orders as i may have many
lines of products on one order and wish to show totals etc?

Any pointers....


You need one more table: Orderlines.

In your order table you store general data about orders (date,
customer). In the orderlines table (linked to the order table and you
product table) you store a rcord for each product in an order
(product, quantity).

Groeten,

Peter
http://access.xps350.com
  #3  
Old March 5th, 2010, 09:31 PM posted to microsoft.public.access
Sharkbyte
external usenet poster
 
Posts: 110
Default Help with simple sales data base

You will want to add a 4th table combining Orders and Products. In its
simplest form you can use OrderID and ProductID to make your primary key.
In this way, you can show what products were on a specific order.

Sharkbyte


"CP" wrote:

Hi need help with a school project for one of my off spring
They are writing a simple sales database and have become stuck. Any help
would be appreciated.

We have an Orders table, Customers table (with a link to orders) and a
product table.

What we are trying to do is have an orders form where you select a customer
(done that), and have a subreport pick out the products you are selling -
however I cant figure out how to link products to orders as i may have many
lines of products on one order and wish to show totals etc?

Any pointers....

  #4  
Old March 5th, 2010, 10:07 PM posted to microsoft.public.access
Mark Andrews[_4_]
external usenet poster
 
Posts: 169
Default Help with simple sales data base

An order form is not really that simple. It has a few tricks.

I would go with the tblOrderLines approach. Subform for orderlines where
you use a combobox to pick the product (tblProduct) on each line, you also
enter the quantity. When you pick the product use extra hidden columns in
the combobox to help populate the product price and product description, let
the user enter quantity and possible a checkbox for taxable or not.

The totals at the bottom of the order are usually the trickiest parts.
Since it's for school I'll let you figure that one out yourself.

If you can't figure it out shoot me an email I'll give you more pointers.
Download www.donationmanagementsoftware.com and look at the invoice section
for an example of the invoice form (very similar concept to order). You can
view the back-end to see/steal table structures.

Mark Andrews
RPT Software
http://www.rptsoftware.com
http://www.donationmanagementsoftware.com

"CP" wrote in message
...
Hi need help with a school project for one of my off spring
They are writing a simple sales database and have become stuck. Any help
would be appreciated.

We have an Orders table, Customers table (with a link to orders) and a
product table.

What we are trying to do is have an orders form where you select a
customer
(done that), and have a subreport pick out the products you are selling -
however I cant figure out how to link products to orders as i may have
many
lines of products on one order and wish to show totals etc?

Any pointers....


  #5  
Old March 5th, 2010, 10:37 PM posted to microsoft.public.access
John W. Vinson
external usenet poster
 
Posts: 18,261
Default Help with simple sales data base

On Fri, 5 Mar 2010 12:47:12 -0800, CP wrote:

Hi need help with a school project for one of my off spring
They are writing a simple sales database and have become stuck. Any help
would be appreciated.

We have an Orders table, Customers table (with a link to orders) and a
product table.

What we are trying to do is have an orders form where you select a customer
(done that), and have a subreport pick out the products you are selling -
however I cant figure out how to link products to orders as i may have many
lines of products on one order and wish to show totals etc?

Any pointers....


Take a look at the Northwind sample database that comes with Access. It
implements exactly this. It's not ideal, and there are some features I don't
like, but you can use it as a sample of how to do this. (Hint: you need
another table, related one to many to Orders and also to Products; it's called
OrderDetails in Northwind).
--

John W. Vinson [MVP]
  #6  
Old March 13th, 2010, 05:44 PM posted to microsoft.public.access
De Jager
external usenet poster
 
Posts: 393
Default Help with simple sales data base


"CP" wrote in message
...
Hi need help with a school project for one of my off spring
They are writing a simple sales database and have become stuck. Any help
would be appreciated.

We have an Orders table, Customers table (with a link to orders) and a
product table.

What we are trying to do is have an orders form where you select a
customer
(done that), and have a subreport pick out the products you are selling -
however I cant figure out how to link products to orders as i may have
many
lines of products on one order and wish to show totals etc?

Any pointers....


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:57 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.