S
Siegfried Heintze
If I have table student and table classes
(1) What is your favorite naming convention to creating the many-to-many
table that holds the foreign keys for students and the foreign keys for
classes?
(2) Should the primary key in my many-to-many relation contain the foreign
key of (a) the student or (b) the class or (c) neither?
(3) I tried to make the foreign key for student the primary key but since a
student might have multiple clases, that primary key might have duplicates
and that caused problems. Do I need to have a primary key? Cannot I just
have two fields that are indexed? MSAccess complains when I dont' have a
primary key.
Also: does any one have an example of using a language like VB.NET to
programmatically create an MSAccess database? Which would be easier, ADOX or
DAO?
Thanks,
Siegfried
(1) What is your favorite naming convention to creating the many-to-many
table that holds the foreign keys for students and the foreign keys for
classes?
(2) Should the primary key in my many-to-many relation contain the foreign
key of (a) the student or (b) the class or (c) neither?
(3) I tried to make the foreign key for student the primary key but since a
student might have multiple clases, that primary key might have duplicates
and that caused problems. Do I need to have a primary key? Cannot I just
have two fields that are indexed? MSAccess complains when I dont' have a
primary key.
Also: does any one have an example of using a language like VB.NET to
programmatically create an MSAccess database? Which would be easier, ADOX or
DAO?
Thanks,
Siegfried