Re: standard rel. rules between 2 main frms with 1-1 rel. and su
- From: TravelingHT <akwillims75@xxxxxxxxxxx(stopthespamer)>
- Date: Mon, 4 Aug 2008 08:50:14 -0700
Dear Steve:
Firstly thank you for taking the time to respond. I know I am lacking in
understanding because your post tells me I have a round peg and a round hole
but I just can not seem to understand how to put them together. So please
forgive me, I will mull this over untill I understand I know the concept is
core to access and relational databases. I speak specifically of your way of
having a Tbl of Questions and a Tbl of Answers.
I have problems becuase there are some questions that can have more than one
answer, so I need a sub form for the one to many relationship this can cause
to the main answer section.
Again there are another set of questions that only come into play if a
respondent answers yes to a previous question. Thus making records to those
questions redundant on a "No" answer.
When I look at what you are telling me I feel as though my previous two
paragraphs are completly missing the point. I can not conseptualize how a
table of questions can exist separately from a table of answers. In my mind
the Questions are the lables and the answers are the txt boxes. Again I will
think on this. Thanks for the insite.
Yours truly,
TravelingHT
"Steve" wrote:
Your situation is no different than all other database applications. Two.
rules apply:
1. Each table should record data of a single entity.
TblQuestionaireAnswerer - each person who answers one or more of
your questions
TblQuestion - The questions in your survey
TblAnswersToQuestions - Each responders to one or more of your
questions
2. The tables should be normalized. One-to-many relationships require at
least 2 tables. Any survey recorded in TblAnswersToQuestions could have
many answers recorded in TblAnswer.
Steve
"TravelingHT" <akwillims75@xxxxxxxxxxx(stopthespamer)> wrote in message
news:23D12824-4035-4380-AEC6-7A8A406DD2A5@xxxxxxxxxxxxxxxx
Dear Steve:
Thanks for the info.
I do realy want to know if in the situation I describe if there is a
convention and what it is if it exists?
Yours Truly,
Traveling HT
"Steve" wrote:
Consider these tables .....
TblQuestionaireAnswerer
QuestionaireAnswererID
FirstName
LastName
<Contact fields>
TblQuestion
QuestionID
Question
TblAnswersToQuestions
AnswersToQuestionsID
QuestionaireAnswererID
DateQuestionsAnswered
TblAnswer
AnswerID
AnswersToQuestionsID
QuestionID
Answer
Steve
"TravelingHT" <akwillims75@xxxxxxxxxxx(stopthespamer)> wrote in message
news:A9445ADC-5044-4068-9757-3BEBEC0CE3AA@xxxxxxxxxxxxxxxx
Dear All:
I have created a form and tables for taking in the info from a
questionnaire. For reasons of insanity and trying to keep to the rules
of
4th
normal planning for my questionnaire, I have created a one to one
relationship between the questions always answered and some questions
only
some times answered to save space.
To connect the two primary forms I created a primary key with auto
number
in
the Always Used Main Table and linked it to a primary key using long
integer
(No Duplicates) in the Sometimes Used Main Table.
I set up an If statement to send the tab to a sub form in the Sometimes
Main Form which worked fine, but Ctrl+Tab out of the subform into
another
subform did lots of weird things depending on if there was a value in
the
first subform, if I added another entry then Ctrl+Tab to the point I
could
not keep track of the variables that would create the changes.
I then looked at my relationships and added a one to many link from the
Sometimes Used Main Table to all the sub tables and now things are
working
fine.
Originally there was only the One to One relationship between the two
main
forms and a One to Many relationships between the Always Used Main
Forms
and
the Subforms.
This now means that both the Always Used Main Table and the Sometimes
Used
Main Table both have One to Many relationships with all of the sub
tables
and
a One to One relationship between the two of the Main Tables!
Is this normal, is it an abomination, what are the rules, can I go to
prison
for this?
Where can I find out about the conventions on this type of situation?
Thanks in advance.
TravelingHT
- Follow-Ups:
- References:
- Prev by Date: Re: 2003 Glitch -- Search by last name not working
- Next by Date: Re: standard rel. rules between 2 main frms with 1-1 rel. and su
- Previous by thread: Re: standard rel. rules between 2 main frms with 1-1 rel. and su
- Next by thread: Re: standard rel. rules between 2 main frms with 1-1 rel. and su
- Index(es):
Relevant Pages
|