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 » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

single or multiple tables



 
 
Thread Tools Display Modes
  #1  
Old July 7th, 2004, 09:27 PM
AdmSteck
external usenet poster
 
Posts: n/a
Default single or multiple tables

Here is my situation. I already have a database with a list of all the parts our facility manufactures: PartID, PartName, PartNumber, etc.

I need to create a seperate database for data collection. Each part will be collected on a daily basis. Each collection will also contain the date, time, and operator. However, the number of points collected for each part and the minimum values for these points will be different. My question is this, what would be the best / most efficient method for setting up my tables? I want to link to the exsisting parts table in the other database, and need to establish the number of points and minimums for each point before data can be collected. Should I create seperate tables for each part, or one table with the maximum number of points for all parts? Thanks for your help in advance.
  #2  
Old July 8th, 2004, 09:19 AM
Steve Schapel
external usenet poster
 
Posts: n/a
Default single or multiple tables

AdmSteck,

It is very difficult to advise on the basis of the information you have
given. Maybe it would help if you could post back with some more
details, with examples. In particular, why do you need a separate
database rather than tables within the existing database, and what is
the meaning of "points collected for each part"?

Another comment, not directly related to your immediate question...
Doesn't the PartNumber uniquely identify each part? Therefore, you
probably do not need the PartID field at all?

--
Steve Schapel, Microsoft Access MVP


AdmSteck wrote:
Here is my situation. I already have a database with a list of all
the parts our facility manufactures: PartID, PartName, PartNumber,
etc.

I need to create a seperate database for data collection. Each part
will be collected on a daily basis. Each collection will also
contain the date, time, and operator. However, the number of points
collected for each part and the minimum values for these points will
be different. My question is this, what would be the best / most
efficient method for setting up my tables? I want to link to the
exsisting parts table in the other database, and need to establish
the number of points and minimums for each point before data can be
collected. Should I create seperate tables for each part, or one
table with the maximum number of points for all parts? Thanks for
your help in advance.

  #3  
Old July 8th, 2004, 11:50 AM
AdmSteck
external usenet poster
 
Posts: n/a
Default single or multiple tables

I want to use a seperate database because the db with the part information is used as a shared db since the part information is common to several other db's I have written. Also, the part numbers can be the same on rare occurrences, thus the partid.
Our facility produces spot welded parts. Each part has different minimum sizes for each weld and a different amount of welds. I am trying to set up a db to record the weld sizes (data points). Each entry would contain the following fields: ID, date, time, operator, weld1, weld2, weld3, etc....
My question is if it would be better / more efficient to have a seperate table for each part with the correct number of weld fields for that part, or add a partID lookup field and have one table with the same number of welds as the largest part (I think it's around 38). If I use the latter, there would be several empty fields for all the parts with fewer than 38 welds (some only have 1). I was planning on creating a table that would contain all the minimum values for each part, or adding it to the exsisting parts db. I would like to keep it seperate to make it easier to update.
I hope this clarifies things a bit. Thanks.

"Steve Schapel" wrote:

AdmSteck,

It is very difficult to advise on the basis of the information you have
given. Maybe it would help if you could post back with some more
details, with examples. In particular, why do you need a separate
database rather than tables within the existing database, and what is
the meaning of "points collected for each part"?

Another comment, not directly related to your immediate question...
Doesn't the PartNumber uniquely identify each part? Therefore, you
probably do not need the PartID field at all?

--
Steve Schapel, Microsoft Access MVP


AdmSteck wrote:
Here is my situation. I already have a database with a list of all
the parts our facility manufactures: PartID, PartName, PartNumber,
etc.

I need to create a seperate database for data collection. Each part
will be collected on a daily basis. Each collection will also
contain the date, time, and operator. However, the number of points
collected for each part and the minimum values for these points will
be different. My question is this, what would be the best / most
efficient method for setting up my tables? I want to link to the
exsisting parts table in the other database, and need to establish
the number of points and minimums for each point before data can be
collected. Should I create seperate tables for each part, or one
table with the maximum number of points for all parts? Thanks for
your help in advance.


  #4  
Old July 9th, 2004, 11:01 AM
Steve Schapel
external usenet poster
 
Posts: n/a
Default single or multiple tables

AdmSteck,

Thanks for the clarification. The best way to handle this is with a
table structure like this...

Table: Production
ProductionID
ProductionDateTime
Operator
PartID

Table: ProductionWelds
ProductionWeldsID
ProductionID
WeldNumber
WeldSize

You will also, I presume, have a table listing the Parts definitions,
and another table with the minimum weld sizes for the different welds on
each part.

--
Steve Schapel, Microsoft Access MVP


AdmSteck wrote:
I want to use a seperate database because the db with the part
information is used as a shared db since the part information is
common to several other db's I have written. Also, the part numbers
can be the same on rare occurrences, thus the partid. Our facility
produces spot welded parts. Each part has different minimum sizes
for each weld and a different amount of welds. I am trying to set up
a db to record the weld sizes (data points). Each entry would
contain the following fields: ID, date, time, operator, weld1,
weld2, weld3, etc.... My question is if it would be better / more
efficient to have a seperate table for each part with the correct
number of weld fields for that part, or add a partID lookup field and
have one table with the same number of welds as the largest part (I
think it's around 38). If I use the latter, there would be several
empty fields for all the parts with fewer than 38 welds (some only
have 1). I was planning on creating a table that would contain all
the minimum values for each part, or adding it to the exsisting parts
db. I would like to keep it seperate to make it easier to update. I
hope this clarifies things a bit. Thanks.

  #5  
Old July 22nd, 2004, 12:22 PM
AdmSteck
external usenet poster
 
Posts: n/a
Default single or multiple tables

Ok, the table layout makes sense and seems easy enough, but how would I create a form to show text boxes for each weld number for the operator to enter the data?

"Steve Schapel" wrote:

AdmSteck,

Thanks for the clarification. The best way to handle this is with a
table structure like this...

Table: Production
ProductionID
ProductionDateTime
Operator
PartID

Table: ProductionWelds
ProductionWeldsID
ProductionID
WeldNumber
WeldSize

You will also, I presume, have a table listing the Parts definitions,
and another table with the minimum weld sizes for the different welds on
each part.

--
Steve Schapel, Microsoft Access MVP


AdmSteck wrote:
I want to use a seperate database because the db with the part
information is used as a shared db since the part information is
common to several other db's I have written. Also, the part numbers
can be the same on rare occurrences, thus the partid. Our facility
produces spot welded parts. Each part has different minimum sizes
for each weld and a different amount of welds. I am trying to set up
a db to record the weld sizes (data points). Each entry would
contain the following fields: ID, date, time, operator, weld1,
weld2, weld3, etc.... My question is if it would be better / more
efficient to have a seperate table for each part with the correct
number of weld fields for that part, or add a partID lookup field and
have one table with the same number of welds as the largest part (I
think it's around 38). If I use the latter, there would be several
empty fields for all the parts with fewer than 38 welds (some only
have 1). I was planning on creating a table that would contain all
the minimum values for each part, or adding it to the exsisting parts
db. I would like to keep it seperate to make it easier to update. I
hope this clarifies things a bit. Thanks.


  #6  
Old July 22nd, 2004, 08:15 PM
Steve Schapel
external usenet poster
 
Posts: n/a
Default single or multiple tables

AdmSteck,

Probably the "standard" way to do this would be a continuous view
subform, with each record showing textboxes for the WeldNumber and
WeldSize fields. The operator just enters the data straight into there,
for each weld. It may be applicable to set it up so that an Append
Query is run, to add a complete set of records to the ProductionWelds
table for all required welds for any given Part. That would mean the
subform would immediately show with all records created, and the
WeldNumbers already entered, and the operator then just completes the
WeldSize data.

--
Steve Schapel, Microsoft Access MVP


AdmSteck wrote:
Ok, the table layout makes sense and seems easy enough, but how would
I create a form to show text boxes for each weld number for the
operator to enter the data?

 




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Concatenating multiple values into a single field on a report Kevin Running & Setting Up Queries 8 July 16th, 2004 03:31 PM
Listing multiple records in a single document EHPorter Mailmerge 3 May 27th, 2004 09:18 AM
Multiple tables on to one form LMB New Users 4 May 23rd, 2004 03:35 AM
Multiple Many-To-Many Tables Tom Database Design 7 May 15th, 2004 03:47 AM


All times are GMT +1. The time now is 11:59 PM.


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