F
Fred Blair
In one of the examples that are shown on tutorial pages that are shown in
this group, show a relationship that shows a table with 2 primary keys. How
can you do that?
I have two tables. TestMaster and TestQuestions
Test Master has three fields;
testid (autonumber)(primary key)
testname(text)
# of questions(int)
date modified(date).
TestQuestions has 8 fields:
QuestionNum(autonumber)(primary key)
testid(an integer that is linked back to the testid in the Testmaster table)
Questiontext(text - the actual text of the question)
Option1(text-the text of the first option of a multiple choice question)
Option2(text for the second option)
Option3(text for the third option)
Option4(text for the fourth option)
currectanswer(text - the correct choice)
date modified(date)
Each test will have 50 questions and it is a multiple choice test with 4
options.
I created a relationship between the two tables linking testid in both
tables and a simple query retrieves the correct data.
Is there a way to actually call the testid in the TestQuestions table a
primary key or does linking the two variables together in the relationship
document do the same thing?
For later questions, is this an ok way to display the table items?
Fred
this group, show a relationship that shows a table with 2 primary keys. How
can you do that?
I have two tables. TestMaster and TestQuestions
Test Master has three fields;
testid (autonumber)(primary key)
testname(text)
# of questions(int)
date modified(date).
TestQuestions has 8 fields:
QuestionNum(autonumber)(primary key)
testid(an integer that is linked back to the testid in the Testmaster table)
Questiontext(text - the actual text of the question)
Option1(text-the text of the first option of a multiple choice question)
Option2(text for the second option)
Option3(text for the third option)
Option4(text for the fourth option)
currectanswer(text - the correct choice)
date modified(date)
Each test will have 50 questions and it is a multiple choice test with 4
options.
I created a relationship between the two tables linking testid in both
tables and a simple query retrieves the correct data.
Is there a way to actually call the testid in the TestQuestions table a
primary key or does linking the two variables together in the relationship
document do the same thing?
For later questions, is this an ok way to display the table items?
Fred