473,416 Members | 1,774 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,416 software developers and data experts.

Making the same data in one table, with same name, appear automatically in another table and form for record integrity and adding extra information

Please bear with me, and if you answer this question, please do it
step by step. I am new at Access, not at all sophisticated. I am
using Office XP. This will need to be read in Access for Office 2000.

I am creating a database to track student athletes. I have created
the following tables. The table title is to the far left, with fields
under each. The common field will be the StudentID field, which is
their student number assigned by the college, or their SS#.

Tbl_Student_Information
Key: StudentID
LastName
FirstName
MIddleInitial
Title
Freshman
Sophomore
Male
Female

Tbl_AA_Checklist_Completed
Key: AAID
StudentID
Date
Year
Fall
Spring

I have set up a relationship (1 to 1) between the StudentID in both
tables, enforcing referential integrity, only include rows from both
tables which are equal. ( I cannot set up a 1-to-many in this system,
which seems what I should be able to do.)

What I want to do is the following:

1) I want the StudentID from Tbl_Student_Information to automatically
be copied to Tbl_AA_Checklist_Completed, as well as to my form for
this latter, Frm_AA_Checklist_Completed. (If possible, I would like
to be able to also copy LastName, FirstName, and MiddleInitital to the
Tbl_AA_Checklist_Completed and Frm_AA_Checklist_Completed.

2) I would like to be able to have all this information automatically
copied to all other tables I have made, and then the information to
automatically appear in the forms that I create in the Wizard, and
then manipulate and move around to make them prettier.

I have tried to create one table, rather than several, for all
information, but Access says it cannot create the form using the
Wizard because such a table has probably 100+ fields.

Please answer me here, and if you are willing to correspond privately,
I will then give you my email address.

Thanks for your help.
Nov 12 '05 #1
5 3719
Sami,

The short answer to your question is, I think you need a one-to-many
relationship between your tables, and the reason Access is not letting you
make one is that your KEY field in your STUDENTS table has to be an
AUTONUMBER, PRIMARY KEY, and the KEY field in your CHECKLIST table has to be
a NUMBER (LONG) INDEXED, DUPLICATES OK. If you make these changes and then
re-create your relationship, I think you will find that Access will allow
you to create a one-to-many relationship.
Now here is the long answer:

A good database design will typically gravitate to more tables, not less.
So several tables is not necessarily a bad thing. The reason for this is
based on a simple principle: Each piece of information (such as Name or
Grade Level) in a well-designed database is store once, and only once
(except for keys).

The way you accomplish this is to split your "entities" into separate
tables. An entity is one member of a collection of like objects (such as
Students or Classes). So for example, one of your tables is Students,
student being an entity. Each record in your table corresponds to one
student.

Every entity has a set of "attributes," or characteristics. The Student
table can store more than one (different) piece of information (or
"attribute") about each student. These pieces of information are called
fields. LastName, FirstName, MiddleInitial, etc. If you think of your
table as a little spreadsheet, then each row corresponds to one student, and
each column corresponds to an "attribute" of that student. Notice that
every student has the same set of attributes, but may have different
"values" for these attributes (e.g. each student has a different name).

Now here's where it gets interesting. If the pieces of information about an
entity are different "attributes," then they are stored in the same record
as the other "entity" information. However, if the pieces of information
you are trying to store are multiple different values for the SAME ATTRIBUTE
for the SAME ENTITY, then you put them in a separate table. This is the
reason Access would not let you put all of the information in the same
record.

Here is an example. Each student has only ONE name. Therefore NAME is a
FIELD in the STUDENT table. However, each student can go to class for more
than one year. Therefore the checklist CANNOT be stored in the STUDENT
table, because you cannot predict how many years the student will go to
school. The checklists must be stored in another table, with a ONE TO MANY
RELATIONSHIP between the two tables.

Each record in STUDENT_CHECKLIST contains a pointer field back to ONE
STUDENT RECORD. Here is what this would look like:

STUDENT TABLE

StudentID Autonumber
LastName Text
FirstName Text
MiddleInitial Text
GradeLevel Number (Integer)

STUDENT_CHECKLIST

ChecklistID Autonumber <---- NOTE: Each table always has
its own Primary Key.
StudentID Number <---- This is the pointer back
to the Student's Record in the STUDENT TABLE
Date Number
FallCompleted Yes/No
SpringCompleted Yes/No
Notice that StudentID is in both tables. These two fields are the basis for
the ONE-TO-MANY relationship. The StudentID in the STUDENT_TABLE must be a
PRIMARY KEY, and the StudentID in the STUDENT_CHECKLIST table must be a
NUMBER (LONG), INDEXED, DUPLICATES OK.

Finally, this is not the only possible arrangement of these fields and
records. Depending on what it is that your trying to do, there may be a
better possible design.

I hope this helps. Let me know if you have any further questions.
Robert
ro**********@nospam-unforgettable.com
To email me, remove the "nospam" (and the dash) from the above email
address.
<Sami> wrote in message news:92********************************@4ax.com...
Please bear with me, and if you answer this question, please do it
step by step. I am new at Access, not at all sophisticated. I am
using Office XP. This will need to be read in Access for Office 2000.

I am creating a database to track student athletes. I have created
the following tables. The table title is to the far left, with fields
under each. The common field will be the StudentID field, which is
their student number assigned by the college, or their SS#.

Tbl_Student_Information
Key: StudentID
LastName
FirstName
MIddleInitial
Title
Freshman
Sophomore
Male
Female

Tbl_AA_Checklist_Completed
Key: AAID
StudentID
Date
Year
Fall
Spring

I have set up a relationship (1 to 1) between the StudentID in both
tables, enforcing referential integrity, only include rows from both
tables which are equal. ( I cannot set up a 1-to-many in this system,
which seems what I should be able to do.)

What I want to do is the following:

1) I want the StudentID from Tbl_Student_Information to automatically
be copied to Tbl_AA_Checklist_Completed, as well as to my form for
this latter, Frm_AA_Checklist_Completed. (If possible, I would like
to be able to also copy LastName, FirstName, and MiddleInitital to the
Tbl_AA_Checklist_Completed and Frm_AA_Checklist_Completed.

2) I would like to be able to have all this information automatically
copied to all other tables I have made, and then the information to
automatically appear in the forms that I create in the Wizard, and
then manipulate and move around to make them prettier.

I have tried to create one table, rather than several, for all
information, but Access says it cannot create the form using the
Wizard because such a table has probably 100+ fields.

Please answer me here, and if you are willing to correspond privately,
I will then give you my email address.

Thanks for your help.

Nov 12 '05 #2
DFS
<Sami> wrote in message news:92********************************@4ax.com...
Please bear with me, and if you answer this question, please do it
step by step. I am new at Access, not at all sophisticated. I am
using Office XP. This will need to be read in Access for Office 2000.

I am creating a database to track student athletes. I have created
the following tables. The table title is to the far left, with fields
under each. The common field will be the StudentID field, which is
their student number assigned by the college, or their SS#.

Tbl_Student_Information
Key: StudentID
LastName
FirstName
MIddleInitial
Title
Freshman
Sophomore
Male
Female

Tbl_AA_Checklist_Completed
Key: AAID
StudentID
Date
Year
Fall
Spring

What's the AA checklist? Can it be completed only once? If so, make it a
part of the student table.

Tbl_Student_Information
Key: StudentID
LastName
FirstName
MIddleInitial
Title
Freshman
Sophomore
Male
Female
AAChecklistCompletedDate

From the date you can derive the Year, and whether it was Fall or Spring.

I have set up a relationship (1 to 1) between the StudentID in both
tables, enforcing referential integrity, only include rows from both
tables which are equal. ( I cannot set up a 1-to-many in this system,
which seems what I should be able to do.)

What I want to do is the following:

1) I want the StudentID from Tbl_Student_Information to automatically
be copied to Tbl_AA_Checklist_Completed, as well as to my form for
this latter, Frm_AA_Checklist_Completed. (If possible, I would like
to be able to also copy LastName, FirstName, and MiddleInitital to the
Tbl_AA_Checklist_Completed and Frm_AA_Checklist_Completed.

2) I would like to be able to have all this information automatically
copied to all other tables I have made, and then the information to
automatically appear in the forms that I create in the Wizard, and
then manipulate and move around to make them prettier.
Except for StudentID, you don't want to be copying student data from one
table to another

I have tried to create one table, rather than several, for all
information, but Access says it cannot create the form using the
Wizard because such a table has probably 100+ fields.

Please answer me here, and if you are willing to correspond privately,
I will then give you my email address.

Thanks for your help.

Nov 12 '05 #3
Hi Robert,

First, thanks for the detailed answer.

My first problem is that in Access XP, any time I set up a
relationship, it always, ALWAYS defaults to one-to-one. That seems to
be the first issue I need to clear up. Using the relationships page,
I drag and drop from the table wherein the StudentID resides as the
primary key, and drag it to StudentID in another table where it is NOT
the primary key.

For my DB, the StudentID is either the SSN or a number, also 9 digits
and divided as xxx-xx-xxxx to parallel the SSN, as assigned by the
school.

Therefore, if I have read you correctly, I must make these numbers
long integers for them to work as one-to-many? Let's start with this
question!

Thanks!

On Sun, 18 Jan 2004 06:56:49 GMT, "Robert"
<ro**********@nospam-unforgettable.com> wrote:
Sami,

The short answer to your question is, I think you need a one-to-many
relationship between your tables, and the reason Access is not letting you
make one is that your KEY field in your STUDENTS table has to be an
AUTONUMBER, PRIMARY KEY, and the KEY field in your CHECKLIST table has to be
a NUMBER (LONG) INDEXED, DUPLICATES OK. If you make these changes and then
re-create your relationship, I think you will find that Access will allow
you to create a one-to-many relationship.
Now here is the long answer:

A good database design will typically gravitate to more tables, not less.
So several tables is not necessarily a bad thing. The reason for this is
based on a simple principle: Each piece of information (such as Name or
Grade Level) in a well-designed database is store once, and only once
(except for keys).

The way you accomplish this is to split your "entities" into separate
tables. An entity is one member of a collection of like objects (such as
Students or Classes). So for example, one of your tables is Students,
student being an entity. Each record in your table corresponds to one
student.

Every entity has a set of "attributes," or characteristics. The Student
table can store more than one (different) piece of information (or
"attribute") about each student. These pieces of information are called
fields. LastName, FirstName, MiddleInitial, etc. If you think of your
table as a little spreadsheet, then each row corresponds to one student, and
each column corresponds to an "attribute" of that student. Notice that
every student has the same set of attributes, but may have different
"values" for these attributes (e.g. each student has a different name).

Now here's where it gets interesting. If the pieces of information about an
entity are different "attributes," then they are stored in the same record
as the other "entity" information. However, if the pieces of information
you are trying to store are multiple different values for the SAME ATTRIBUTE
for the SAME ENTITY, then you put them in a separate table. This is the
reason Access would not let you put all of the information in the same
record.

Here is an example. Each student has only ONE name. Therefore NAME is a
FIELD in the STUDENT table. However, each student can go to class for more
than one year. Therefore the checklist CANNOT be stored in the STUDENT
table, because you cannot predict how many years the student will go to
school. The checklists must be stored in another table, with a ONE TO MANY
RELATIONSHIP between the two tables.

Each record in STUDENT_CHECKLIST contains a pointer field back to ONE
STUDENT RECORD. Here is what this would look like:

STUDENT TABLE

StudentID Autonumber
LastName Text
FirstName Text
MiddleInitial Text
GradeLevel Number (Integer)

STUDENT_CHECKLIST

ChecklistID Autonumber <---- NOTE: Each table always has
its own Primary Key.
StudentID Number <---- This is the pointer back
to the Student's Record in the STUDENT TABLE
Date Number
FallCompleted Yes/No
SpringCompleted Yes/No
Notice that StudentID is in both tables. These two fields are the basis for
the ONE-TO-MANY relationship. The StudentID in the STUDENT_TABLE must be a
PRIMARY KEY, and the StudentID in the STUDENT_CHECKLIST table must be a
NUMBER (LONG), INDEXED, DUPLICATES OK.

Finally, this is not the only possible arrangement of these fields and
records. Depending on what it is that your trying to do, there may be a
better possible design.

I hope this helps. Let me know if you have any further questions.
Robert
ro**********@nospam-unforgettable.com
To email me, remove the "nospam" (and the dash) from the above email
address.
<Sami> wrote in message news:92********************************@4ax.com...
Please bear with me, and if you answer this question, please do it
step by step. I am new at Access, not at all sophisticated. I am
using Office XP. This will need to be read in Access for Office 2000.

I am creating a database to track student athletes. I have created
the following tables. The table title is to the far left, with fields
under each. The common field will be the StudentID field, which is
their student number assigned by the college, or their SS#.

Tbl_Student_Information
Key: StudentID
LastName
FirstName
MIddleInitial
Title
Freshman
Sophomore
Male
Female

Tbl_AA_Checklist_Completed
Key: AAID
StudentID
Date
Year
Fall
Spring

I have set up a relationship (1 to 1) between the StudentID in both
tables, enforcing referential integrity, only include rows from both
tables which are equal. ( I cannot set up a 1-to-many in this system,
which seems what I should be able to do.)

What I want to do is the following:

1) I want the StudentID from Tbl_Student_Information to automatically
be copied to Tbl_AA_Checklist_Completed, as well as to my form for
this latter, Frm_AA_Checklist_Completed. (If possible, I would like
to be able to also copy LastName, FirstName, and MiddleInitital to the
Tbl_AA_Checklist_Completed and Frm_AA_Checklist_Completed.

2) I would like to be able to have all this information automatically
copied to all other tables I have made, and then the information to
automatically appear in the forms that I create in the Wizard, and
then manipulate and move around to make them prettier.

I have tried to create one table, rather than several, for all
information, but Access says it cannot create the form using the
Wizard because such a table has probably 100+ fields.

Please answer me here, and if you are willing to correspond privately,
I will then give you my email address.

Thanks for your help.


Nov 12 '05 #4
The AA Checklist is to see if a student has fulfilled requirements for
receiving an AA or AS degree. Required of student athletes in a
community college setting.

On Sun, 18 Jan 2004 10:04:26 -0500, "DFS" <no****@nospam.com> wrote:
<Sami> wrote in message news:92********************************@4ax.com...
Please bear with me, and if you answer this question, please do it
step by step. I am new at Access, not at all sophisticated. I am
using Office XP. This will need to be read in Access for Office 2000.

I am creating a database to track student athletes. I have created
the following tables. The table title is to the far left, with fields
under each. The common field will be the StudentID field, which is
their student number assigned by the college, or their SS#.

Tbl_Student_Information
Key: StudentID
LastName
FirstName
MIddleInitial
Title
Freshman
Sophomore
Male
Female

Tbl_AA_Checklist_Completed
Key: AAID
StudentID
Date
Year
Fall
Spring

What's the AA checklist? Can it be completed only once? If so, make it a
part of the student table.

Tbl_Student_Information
Key: StudentID
LastName
FirstName
MIddleInitial
Title
Freshman
Sophomore
Male
Female
AAChecklistCompletedDate

From the date you can derive the Year, and whether it was Fall or Spring.

I have set up a relationship (1 to 1) between the StudentID in both
tables, enforcing referential integrity, only include rows from both
tables which are equal. ( I cannot set up a 1-to-many in this system,
which seems what I should be able to do.)

What I want to do is the following:

1) I want the StudentID from Tbl_Student_Information to automatically
be copied to Tbl_AA_Checklist_Completed, as well as to my form for
this latter, Frm_AA_Checklist_Completed. (If possible, I would like
to be able to also copy LastName, FirstName, and MiddleInitital to the
Tbl_AA_Checklist_Completed and Frm_AA_Checklist_Completed.

2) I would like to be able to have all this information automatically
copied to all other tables I have made, and then the information to
automatically appear in the forms that I create in the Wizard, and
then manipulate and move around to make them prettier.


Except for StudentID, you don't want to be copying student data from one
table to another

I have tried to create one table, rather than several, for all
information, but Access says it cannot create the form using the
Wizard because such a table has probably 100+ fields.

Please answer me here, and if you are willing to correspond privately,
I will then give you my email address.

Thanks for your help.


Nov 12 '05 #5
DFS

<Sami> wrote in message news:8q********************************@4ax.com...
The AA Checklist is to see if a student has fulfilled requirements for
receiving an AA or AS degree. Required of student athletes in a
community college setting.
If so, it seems like an attribute of the student, and can safely be placed
within your Student information table.
On Sun, 18 Jan 2004 10:04:26 -0500, "DFS" <no****@nospam.com> wrote:
<Sami> wrote in message news:92********************************@4ax.com...
Please bear with me, and if you answer this question, please do it
step by step. I am new at Access, not at all sophisticated. I am
using Office XP. This will need to be read in Access for Office 2000.

I am creating a database to track student athletes. I have created
the following tables. The table title is to the far left, with fields
under each. The common field will be the StudentID field, which is
their student number assigned by the college, or their SS#.

Tbl_Student_Information
Key: StudentID
LastName
FirstName
MIddleInitial
Title
Freshman
Sophomore
Male
Female

Tbl_AA_Checklist_Completed
Key: AAID
StudentID
Date
Year
Fall
Spring

What's the AA checklist? Can it be completed only once? If so, make it apart of the student table.

Tbl_Student_Information
Key: StudentID
LastName
FirstName
MIddleInitial
Title
Freshman
Sophomore
Male
Female
AAChecklistCompletedDate

From the date you can derive the Year, and whether it was Fall or Spring.

I have set up a relationship (1 to 1) between the StudentID in both
tables, enforcing referential integrity, only include rows from both
tables which are equal. ( I cannot set up a 1-to-many in this system,
which seems what I should be able to do.)

What I want to do is the following:

1) I want the StudentID from Tbl_Student_Information to automatically
be copied to Tbl_AA_Checklist_Completed, as well as to my form for
this latter, Frm_AA_Checklist_Completed. (If possible, I would like
to be able to also copy LastName, FirstName, and MiddleInitital to the
Tbl_AA_Checklist_Completed and Frm_AA_Checklist_Completed.

2) I would like to be able to have all this information automatically
copied to all other tables I have made, and then the information to
automatically appear in the forms that I create in the Wizard, and
then manipulate and move around to make them prettier.


Except for StudentID, you don't want to be copying student data from one
table to another

I have tried to create one table, rather than several, for all
information, but Access says it cannot create the form using the
Wizard because such a table has probably 100+ fields.

Please answer me here, and if you are willing to correspond privately,
I will then give you my email address.

Thanks for your help.

Nov 12 '05 #6

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

Similar topics

2
by: M Wells | last post by:
Hi All, I'm trying to track down a mysterious problem we're experiencing in which updates and inserts to tables in our mssql2k server appear to be 'disappearing.' To explain our situation: ...
4
by: N. Graves | last post by:
Hello... thank you for your time. I have a form that has a List box of equipotent records and a sub form that will show the data of the equipment select from the list box. Is it possible to...
5
by: ND | last post by:
I need to create a separate field from 4 fields, "street address", "city", "State" and "zip code". For example, Street address - 100 Forest Street City - Seattle State - WA Zip - 05555 ...
2
by: Jono | last post by:
Simple application - 2 tables, 1 qry and 1 form only. The main table is tblProjects and describes each of about 100 business projects. Each and every Project is developed under a particular...
6
by: polocar | last post by:
Hi, I'm writing a program in Visual C# 2005 Professional Edition. This program connects to a SQL Server 2005 database called "Generations" (in which there is only one table, called...
69
by: kabradley | last post by:
Alrighty Guys and Gals, I have another question that I hope you all can help me with. I have a report that uses a cross-tab query as its record source. This cross-tab query is getting all of its...
4
by: Wayne | last post by:
I've used a data field as the rowsource for a combo box many times. The main advantage that I see is that a separate table of say, "Customers" does not have to be constantly updated. When a new...
2
by: Richard Sherratt | last post by:
I've inherited a system that was designed by someone with no understanding of database design. From the logical design point of view, there is no logical design. The physical design is a nightmare....
9
by: vanlanjl | last post by:
Okay lets see if I can do this with out confusing myself or others. First I will give ALL the details then state my problem and request at the bottom. Tables: tblContacts ID Company LastName...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.