O
omar
Hello,
thank you for taking the time to read this, I appreciate
it very much.
Im creating a database the allows an individual/student to
input different activities. I created 3 tables.
table 1-- this table contains fields the are generic to
all other (table) activities like userid, date, hours
exercising, activity type, etc. It also includes an
autonumber field call trackingID set to primary key.
table 2-- this table contains specific items for an
activity like basketball.
table 3-- this table contains specific items for an
activity like football.
I then created a form that contains all the fields in
table 1. Within the form, I added (using the tab control
and subform tool) 2 subforms. These subforms were created
using table 2 and 3.
Hopefully I did a decent job of explaining.. Now for the
questions..
First, I would like to add a macro/expression of some sort
that would detect the selection of activity type within
the table 1 and depending on what the user selected it
(access) would point to the specific subform page.
Second, I would like to create a relationship between
table 1 and 2,3. I do not know what type of relationship i
need in order to make this work. right now I have it setup
with a one-to-one relation between 1 and tables 2-3. using
primary key of trackingID from table 1 to primary key of
trackingID from tables 2and3. but this does not work..
thank you
thank you for taking the time to read this, I appreciate
it very much.
Im creating a database the allows an individual/student to
input different activities. I created 3 tables.
table 1-- this table contains fields the are generic to
all other (table) activities like userid, date, hours
exercising, activity type, etc. It also includes an
autonumber field call trackingID set to primary key.
table 2-- this table contains specific items for an
activity like basketball.
table 3-- this table contains specific items for an
activity like football.
I then created a form that contains all the fields in
table 1. Within the form, I added (using the tab control
and subform tool) 2 subforms. These subforms were created
using table 2 and 3.
Hopefully I did a decent job of explaining.. Now for the
questions..
First, I would like to add a macro/expression of some sort
that would detect the selection of activity type within
the table 1 and depending on what the user selected it
(access) would point to the specific subform page.
Second, I would like to create a relationship between
table 1 and 2,3. I do not know what type of relationship i
need in order to make this work. right now I have it setup
with a one-to-one relation between 1 and tables 2-3. using
primary key of trackingID from table 1 to primary key of
trackingID from tables 2and3. but this does not work..
thank you