J
Jack MacDonald
Hi
A colleague is working on a database for storing and querying results
of various productivity studies. He is an Access novice, but wants to
(mainly) build this database for himself. My initial recommendation
was to set up three major tables for him:
tblCommon
- PK StudyID - autonumber
- about 50 fields that are common to two types of studies
tblDetailedStudy
- PK StudyIDfk - longInt
- about 50 fields that are specific to "detailed" studies
tblShiftStudy
- PK StudyIDfk - longInt
- about 50 fields that are specific to "shift-level" studies
A particular study site (ie, a record in Common) can have either a
Detailed study or a Shift-Level study, or both. The database will grow
with time, but will probably top out at about 1500 records. This will
be a personal database -- no end-users except for my colleague.
He ran into problems with this three-table approach. I had showed him
how to make a single form for tblCommon, with two subforms for the two
subsidiary tables. It worked well until he wanted to apply filtering
and sorting to some of the fields in the subforms. Of course, that did
not work because each subform contained only one record - the one
related to the current record in the main form.
Then I tried to create a single query using outer joins that displayed
all the fields and records from all three tables. Worked well to
display the data, but was non-updateable because of its two outer
joins, and therefore useless for data entry.
My next thought (not implemented yet) was to create two queries and
two forms that dealt with (Common + Detailed) and (Common + Shift)
data. These two forms would be accessed completely independently from
one another, and the fact that two studies shared the same Common data
would appear to be coincidental. Under this scenario, if my colleague
was viewing a Detailed study and wanted to check whether there was a
corresponding Shift-Level study, using two separate forms would make
that process somewhat awkward.
I guess the ultimate "inelegant" approach would be to dump everything
into a single table, and treat it like a spreadsheet, but I have a
hard time recommending that...
I am leaning towards recommending the two-query, two-form approach for
its simplicity, but it bothers me for some reason. Perhaps it seems
clunky...??
Can anybody offer any insight or advice?
**********************
(e-mail address removed)
remove uppercase letters for true email
http://www.geocities.com/jacksonmacd/ for info on MS Access security
A colleague is working on a database for storing and querying results
of various productivity studies. He is an Access novice, but wants to
(mainly) build this database for himself. My initial recommendation
was to set up three major tables for him:
tblCommon
- PK StudyID - autonumber
- about 50 fields that are common to two types of studies
tblDetailedStudy
- PK StudyIDfk - longInt
- about 50 fields that are specific to "detailed" studies
tblShiftStudy
- PK StudyIDfk - longInt
- about 50 fields that are specific to "shift-level" studies
A particular study site (ie, a record in Common) can have either a
Detailed study or a Shift-Level study, or both. The database will grow
with time, but will probably top out at about 1500 records. This will
be a personal database -- no end-users except for my colleague.
He ran into problems with this three-table approach. I had showed him
how to make a single form for tblCommon, with two subforms for the two
subsidiary tables. It worked well until he wanted to apply filtering
and sorting to some of the fields in the subforms. Of course, that did
not work because each subform contained only one record - the one
related to the current record in the main form.
Then I tried to create a single query using outer joins that displayed
all the fields and records from all three tables. Worked well to
display the data, but was non-updateable because of its two outer
joins, and therefore useless for data entry.
My next thought (not implemented yet) was to create two queries and
two forms that dealt with (Common + Detailed) and (Common + Shift)
data. These two forms would be accessed completely independently from
one another, and the fact that two studies shared the same Common data
would appear to be coincidental. Under this scenario, if my colleague
was viewing a Detailed study and wanted to check whether there was a
corresponding Shift-Level study, using two separate forms would make
that process somewhat awkward.
I guess the ultimate "inelegant" approach would be to dump everything
into a single table, and treat it like a spreadsheet, but I have a
hard time recommending that...
I am leaning towards recommending the two-query, two-form approach for
its simplicity, but it bothers me for some reason. Perhaps it seems
clunky...??
Can anybody offer any insight or advice?
**********************
(e-mail address removed)
remove uppercase letters for true email
http://www.geocities.com/jacksonmacd/ for info on MS Access security