Re: Duplicating Data
- From: "Duane Hookom" <duanehookom@xxxxxxxxxxxxxxxxx>
- Date: Wed, 11 Jan 2006 08:52:21 -0600
Why would you want to place these three tables in the same query? If a
student has one record in the student table, 3 records in the attendance
table, and 7 records in the Assignment table, your query will display that
student with 21 records (3*7).
Normally the attendance and/or assignment tables would be displayed
individually with the student table or in separate subforms or subreports.
Subforms and subreports have their own record source/query.
--
Duane Hookom
MS Access MVP
--
"Stephen" <sdeserio@xxxxxxx> wrote in message
news:E27476AD-4A74-4F45-AA27-06B254C5B5B7@xxxxxxxxxxxxxxxx
> Hi,
>
> I have an 11 table Database all relating to "Student Information" SSN
> (primary key). The rest of the tables have SSN also, but they don't have
> a
> primary key field in any of those tables. When I create a multiple table
> query with three or more tables I obtain many records if I have
> duplicating
> SSN in the Assignment table or any other table. For example, the tables
> are
> set up in the following manner:
>
> Student Information Table
> SSN-Primary Key (Text)
> Roll Call Number - Auto Number
> First Name-Text
> Last Name - Text
> Gender - Text
> Birth Date - Date
>
> Attendance Table
> SSN - Text
> Date - Date
> Present -Yes/No
> Absent - Yes/No
> Tardy - Yes/No
> Time Arrived - Text
>
> Assignments Table
> SSN - Text
> Completed Assignments - Yes/ No
> Type of Assignment- Text
> Grade - Number
>
> When I set up the query, I have the tables relate to the SSN. When I run
> the query, I obtain duplicate data. It looks like when I have the same
> SSN
> listed more than twice in the assignments table I get duplicate date.
>
> I am not sure why I am getting many records. I have a join between the
> tables or query. Also all the join properties are the same. I still not
> sure what's wrong.
>
> If the table design is wong, how would i fix it. Most of the tables are
> set
> up the same way.
>
> Thanks in advance
>
.
- Follow-Ups:
- Re: Duplicating Data
- From: Stephen
- Re: Duplicating Data
- Prev by Date: Re: Copying access file with user level security
- Next by Date: Re: Hyperlink Problems (Automatic updates)
- Previous by thread: Re: Copying access file with user level security
- Next by thread: Re: Duplicating Data
- Index(es):
Relevant Pages
|