473,394 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

relationship problems

Hi,

I currently have a spreadsheet with customer\delivery\cost etc. a snapshot
of which can be viewed at
http://members.lycos.co.uk/moriman/dda-web.jpg

I am trying to construct a database to store this information.

I have so far made a customer table with the following fields...

Customers -> CustomerID (autonumber (primary key)), Name, House No.,
Address, Area

What I want to be able to do is bring up a form (similar to one week in the
spreadsheet) with a complete list of customers and a delivery column which
initially has a null value where I can simply enter '1' if the customer
recieved a delivery that day. When I get that far I'll take a look at the
rest of the information I need to store.

I would be extremely grateful for any help anyone can give on what my
delivery table should contain and the relationships I need to make to be
able create the form I am looking for.

Many thanks

mori
Nov 16 '05 #1
5 1454
The normal way to handle this sort of thing is to have your customer
table(see later), a Product table - ProductID, ProdDesc ProdPrice and a
JoinCustomerProduct -CustomerID, ProductID, Date, Quantity, Price, Paid

Normally you select the customer, select the product using a combo box and
enter the quantity. The date default is today Date(), the Price = Quantity *
ProdPrice. You then have a full record of what customers have bought and
what products have sold.

Back to the customer file. If your spreadsheet is a sample of a real sheet,
I would consider having a table of street addresses and a table of areas.
The street address would have something like
StreetID StreetName AreaID
2 Boulevard Charone 1

and the AreaTable
AreaID Area
1 St Julian's

Setting up the customer the consists of entering a name, house no and
picking the street from a combo box.

HTH

Phil
"moriman" <mo*****@btinternet.com> wrote in message
news:dl**********@nwrdmz03.dmz.ncs.ea.ibs-infra.bt.com...
Hi,

I currently have a spreadsheet with customer\delivery\cost etc. a snapshot
of which can be viewed at
http://members.lycos.co.uk/moriman/dda-web.jpg

I am trying to construct a database to store this information.

I have so far made a customer table with the following fields...

Customers -> CustomerID (autonumber (primary key)), Name, House No.,
Address, Area

What I want to be able to do is bring up a form (similar to one week in
the
spreadsheet) with a complete list of customers and a delivery column which
initially has a null value where I can simply enter '1' if the customer
recieved a delivery that day. When I get that far I'll take a look at the
rest of the information I need to store.

I would be extremely grateful for any help anyone can give on what my
delivery table should contain and the relationships I need to make to be
able create the form I am looking for.

Many thanks

mori

Nov 16 '05 #2
Thanks for the input Phil ;-)

I think that what makes my position different from what you are explaining
is that there is only one product and customers receive 0 or 1 delivery per
day at a set price (i.e. all customers pay exactly the same for 1 unit and
*no* customer receives more than 1 delivery per day).

anyway, thx again,

mori

"Phil Stanton" <ph******@xxstantonfamily.co.uk> wrote in message
news:43***********************@ptn-nntp-reader03.plus.net...
The normal way to handle this sort of thing is to have your customer
table(see later), a Product table - ProductID, ProdDesc ProdPrice and a
JoinCustomerProduct -CustomerID, ProductID, Date, Quantity, Price, Paid

Normally you select the customer, select the product using a combo box and
enter the quantity. The date default is today Date(), the Price = Quantity * ProdPrice. You then have a full record of what customers have bought and
what products have sold.

Back to the customer file. If your spreadsheet is a sample of a real sheet, I would consider having a table of street addresses and a table of areas.
The street address would have something like
StreetID StreetName AreaID
2 Boulevard Charone 1

and the AreaTable
AreaID Area
1 St Julian's

Setting up the customer the consists of entering a name, house no and
picking the street from a combo box.

HTH

Phil
"moriman" <mo*****@btinternet.com> wrote in message
news:dl**********@nwrdmz03.dmz.ncs.ea.ibs-infra.bt.com...
Hi,

I currently have a spreadsheet with customer\delivery\cost etc. a snapshot of which can be viewed at
http://members.lycos.co.uk/moriman/dda-web.jpg

I am trying to construct a database to store this information.

I have so far made a customer table with the following fields...

Customers -> CustomerID (autonumber (primary key)), Name, House No.,
Address, Area

What I want to be able to do is bring up a form (similar to one week in
the
spreadsheet) with a complete list of customers and a delivery column which initially has a null value where I can simply enter '1' if the customer
recieved a delivery that day. When I get that far I'll take a look at the rest of the information I need to store.

I would be extremely grateful for any help anyone can give on what my
delivery table should contain and the relationships I need to make to be
able create the form I am looking for.

Many thanks

mori


Nov 16 '05 #3
Just intrigued that there appear to be an assortment of prices - £3.90,
£2.60, £3.25 an 1.95 and in your daily deliveries, apart from the 1 and
zero, there are "X" and "A"

Anyway, what I suggested is still valid, and will give you the opportunity
to have additional products, and also makes it simple to get totals

Phil
"moriman" <mo*****@btinternet.com> wrote in message
news:dl**********@nwrdmz03.dmz.ncs.ea.ibs-infra.bt.com...
Thanks for the input Phil ;-)

I think that what makes my position different from what you are explaining
is that there is only one product and customers receive 0 or 1 delivery
per
day at a set price (i.e. all customers pay exactly the same for 1 unit and
*no* customer receives more than 1 delivery per day).

anyway, thx again,

mori

"Phil Stanton" <ph******@xxstantonfamily.co.uk> wrote in message
news:43***********************@ptn-nntp-reader03.plus.net...
The normal way to handle this sort of thing is to have your customer
table(see later), a Product table - ProductID, ProdDesc ProdPrice and a
JoinCustomerProduct -CustomerID, ProductID, Date, Quantity, Price, Paid

Normally you select the customer, select the product using a combo box
and
enter the quantity. The date default is today Date(), the Price =
Quantity

*
ProdPrice. You then have a full record of what customers have bought and
what products have sold.

Back to the customer file. If your spreadsheet is a sample of a real

sheet,
I would consider having a table of street addresses and a table of areas.
The street address would have something like
StreetID StreetName AreaID
2 Boulevard Charone 1

and the AreaTable
AreaID Area
1 St Julian's

Setting up the customer the consists of entering a name, house no and
picking the street from a combo box.

HTH

Phil
"moriman" <mo*****@btinternet.com> wrote in message
news:dl**********@nwrdmz03.dmz.ncs.ea.ibs-infra.bt.com...
> Hi,
>
> I currently have a spreadsheet with customer\delivery\cost etc. a snapshot > of which can be viewed at
> http://members.lycos.co.uk/moriman/dda-web.jpg
>
> I am trying to construct a database to store this information.
>
> I have so far made a customer table with the following fields...
>
> Customers -> CustomerID (autonumber (primary key)), Name, House No.,
> Address, Area
>
> What I want to be able to do is bring up a form (similar to one week in
> the
> spreadsheet) with a complete list of customers and a delivery column which > initially has a null value where I can simply enter '1' if the customer
> recieved a delivery that day. When I get that far I'll take a look at the > rest of the information I need to store.
>
> I would be extremely grateful for any help anyone can give on what my
> delivery table should contain and the relationships I need to make to
> be
> able create the form I am looking for.
>
> Many thanks
>
> mori
>
>



Nov 16 '05 #4
Hi again Phil ;-)

The figures you quote (£2.60, £3.25, £1.95 etc) are, in fact, *weekly*
delivery charges at a rate of £0.65 per day.

Say, for example, that customer No. 7 gets a delivery on a Mon, Tue, Thurs,
Fri & Sat, then his row appears as
Due
1 1 0 1 1 1 £3.25

that is, 5 * £0.65

The X's and A's in the spreadsheet represent customers who *never* receive a
delivery on a particular day (X) and those who do not want a delivery
because they are (A)way for a few days. These X's and A's are not important
for me at the moment in the construction of the database.

thanks again

mori
"Phil Stanton" <ph******@xxstantonfamily.co.uk> wrote in message
news:43***********************@ptn-nntp-reader04.plus.net...
Just intrigued that there appear to be an assortment of prices - £3.90,
£2.60, £3.25 an 1.95 and in your daily deliveries, apart from the 1 and
zero, there are "X" and "A"

Anyway, what I suggested is still valid, and will give you the opportunity
to have additional products, and also makes it simple to get totals

Phil
"moriman" <mo*****@btinternet.com> wrote in message
news:dl**********@nwrdmz03.dmz.ncs.ea.ibs-infra.bt.com...
Thanks for the input Phil ;-)

I think that what makes my position different from what you are explaining is that there is only one product and customers receive 0 or 1 delivery
per
day at a set price (i.e. all customers pay exactly the same for 1 unit and *no* customer receives more than 1 delivery per day).

anyway, thx again,

mori

"Phil Stanton" <ph******@xxstantonfamily.co.uk> wrote in message
news:43***********************@ptn-nntp-reader03.plus.net...
The normal way to handle this sort of thing is to have your customer
table(see later), a Product table - ProductID, ProdDesc ProdPrice and a JoinCustomerProduct -CustomerID, ProductID, Date, Quantity, Price, Paid

Normally you select the customer, select the product using a combo box
and
enter the quantity. The date default is today Date(), the Price =
Quantity

*
ProdPrice. You then have a full record of what customers have bought and what products have sold.

Back to the customer file. If your spreadsheet is a sample of a real

sheet,
I would consider having a table of street addresses and a table of areas. The street address would have something like
StreetID StreetName AreaID
2 Boulevard Charone 1

and the AreaTable
AreaID Area
1 St Julian's

Setting up the customer the consists of entering a name, house no and
picking the street from a combo box.

HTH

Phil
"moriman" <mo*****@btinternet.com> wrote in message
news:dl**********@nwrdmz03.dmz.ncs.ea.ibs-infra.bt.com...
> Hi,
>
> I currently have a spreadsheet with customer\delivery\cost etc. a

snapshot
> of which can be viewed at
> http://members.lycos.co.uk/moriman/dda-web.jpg
>
> I am trying to construct a database to store this information.
>
> I have so far made a customer table with the following fields...
>
> Customers -> CustomerID (autonumber (primary key)), Name, House No.,
> Address, Area
>
> What I want to be able to do is bring up a form (similar to one week in > the
> spreadsheet) with a complete list of customers and a delivery column

which
> initially has a null value where I can simply enter '1' if the customer > recieved a delivery that day. When I get that far I'll take a look at

the
> rest of the information I need to store.
>
> I would be extremely grateful for any help anyone can give on what my
> delivery table should contain and the relationships I need to make to
> be
> able create the form I am looking for.
>
> Many thanks
>
> mori
>
>



Nov 17 '05 #5
Repeating groups of values... put all that in a child table. Link to
AccountNumber or whatever.

So you'd have something like
tblCustomers
=========
CustomerID
ACNo
Address
Area

tblDeliveries (or whatever this represents)
=========
DeliveryID (Autonumber)
CustomerID(PrimaryKey1)
DeliveryDate(PK2)
Delivered(Y/N)
BF
Due
CF

if you have CustomerID and DeliveryDate as the primary key of
tblDeliveries, it means that each customer can have only one delivery
per day. Then you just have a main form based on Customer and a
subform based on delivery.

Nov 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Alcyone Oliveira | last post by:
------=_NextPart_000_000D_01C36572.F6480CE0 Content-Type: multipart/alternative; boundary="----=_NextPart_001_000E_01C36572.F6480CE0" ------=_NextPart_001_000E_01C36572.F6480CE0 Content-Type:...
9
by: Bob C. | last post by:
I want to create a 1-many relationship. Parent table has a primary key, child table has no primary key. The child table does have an index with all four fields of the parent's PK. How can I do...
13
by: Tom | last post by:
Hi, Do you guys know what's wrong with a one-to-one relationship? The reason I want to make it like this is that at the very end of the chain, the set of keys is huge. I want to limit the...
0
by: David | last post by:
Hi, I have the following Tables: JS_Customer JS_Job JS_Product JS_Pack The layout:
0
by: Chris Belcher | last post by:
I'm building an action item database among the tables are Scope - A table that contains a scope of who gets assigned this task AI Master - The master task (I want you to do this and other...
3
by: Leinad Kong | last post by:
I'm using Access 2002, as front-end and back-end as well: 1) I faced database corrupted problems, when more than 1 user edit concurrently. I'm using All-records Locking, and open-exclusively as...
3
by: lorirobn | last post by:
Hello, I have a report which uses a subreport. When I run the report, I get "Enter Parameter Value" error message for "tblGuestRoom". I click ok and the report seems to work fine. I...
5
by: BrianDP | last post by:
This is a strange one-- I have an Access 2K database with a split front end/back end. There are two tables in the back end - RFile and RLine. There is a one to many relationship from...
3
by: shawnews | last post by:
Ok...I'll first describe briefly what I've done. Working from a paper form with over 200 fields - broken into 10 areas, I created a database with 10 tables. I then created a form using those 10...
1
by: Phive | last post by:
Hi all, What I'm trying to do and having a lot of trouble with is pulling how one user is related to another user from my database. I'll explain... The table (relationships) looks like this: ID...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.