C
Cameron Piper
I am working on an access 2002 database on a microsoft
Office and Windows XP based machine.
There are three tables in my question:
1. tblphones
PhoneID: Primary Key, Autonumber
Other Fields
2. tblclient
ClientID: Primary Key, Autonumber
Other Fields
3. tblPhoneRelationship
ClientID: Linked to tblClient
PhoneID: Linked to tblPhones
RelationshipID: Primary Key, Autonumber
frmClient:
I have client form that I am using and on that form I
want to put a command button that will open another phone
where I can enter phone numbers for that client
(frmPhone). Linked to tblClient
frmPhone:
This form contains a subform set to continuous view
(frmPhoneContinuous). The only information stored on
this form will be a couple of non-question related
command buttons.
frmPhoneContinous:
Linked to tblPhone, will be where I enter the information
for the phone numbers.
Will someone please help me link these forms so that when
I open them, I will see the information from the client
that I was viewing. Translation: When I open frmPhone, I
want to only see those phone numbers that are related to
client on frmClient upon which I was working.
I tried linking the tables directly and storing the
clientID with the phone number, but was having many
problems with errors upon entry. I broke up the tables
into a one to many and many to one relationship in order
to avoid these problems, but am at a loss for how to link
the two forms together.
Do I need to base the information on a query?
A nudge in the right direction would certainly be
appreciated.
Cameron Piper
(e-mail address removed)
Office and Windows XP based machine.
There are three tables in my question:
1. tblphones
PhoneID: Primary Key, Autonumber
Other Fields
2. tblclient
ClientID: Primary Key, Autonumber
Other Fields
3. tblPhoneRelationship
ClientID: Linked to tblClient
PhoneID: Linked to tblPhones
RelationshipID: Primary Key, Autonumber
frmClient:
I have client form that I am using and on that form I
want to put a command button that will open another phone
where I can enter phone numbers for that client
(frmPhone). Linked to tblClient
frmPhone:
This form contains a subform set to continuous view
(frmPhoneContinuous). The only information stored on
this form will be a couple of non-question related
command buttons.
frmPhoneContinous:
Linked to tblPhone, will be where I enter the information
for the phone numbers.
Will someone please help me link these forms so that when
I open them, I will see the information from the client
that I was viewing. Translation: When I open frmPhone, I
want to only see those phone numbers that are related to
client on frmClient upon which I was working.
I tried linking the tables directly and storing the
clientID with the phone number, but was having many
problems with errors upon entry. I broke up the tables
into a one to many and many to one relationship in order
to avoid these problems, but am at a loss for how to link
the two forms together.
Do I need to base the information on a query?
A nudge in the right direction would certainly be
appreciated.
Cameron Piper
(e-mail address removed)