L
lmcc007
Well, I thought I had finally figured out how to get my form to work the way
I want it to. Meaning, on my form I want the following phone types to
display as defaults:
Business… (___) ___-____
Busines 2… (___) ___-____
Business Fax… (___) ___-____
Mobile… (___) ___-____
If I decide to select another phone type from the unbound combo box—such as
“cellâ€â€”I want it to display the phone type for the current record only.
The problem is that each time I select a different phone type for a company,
it changes all the phone types for all the companies (the entire table).
Here’s what I have done:
Tables
tblCompanies
CompanyID dbLong PrimaryKey Indexed
CompanyName dbText Indexed Required
tblPhoneNumbers
PhoneNumberID dbLong PrimaryKey Indexed
CompanyID dbLong ForiegnKey Indexed
PhoneType dbText Indexed
Phone dbText Indexed
tblPhoneTypes
PhoneType dbText PrimaryKey Indexed
Relations
Name: Reference1
Table: tblPhoneTypes
Foreign Table: tblPhoneNumbers
PK: PhoneType FKhoneType
Name: tblCompaniestblPhoneNumbers
Table: tblCompanies
Foreign Table: tblPhoneNumbers
PK: CompanyID FK:CompanyID
What am I doing wrong? I have attached the database for your viewing.
I appreciate any help you can give. Thanks!
I want it to. Meaning, on my form I want the following phone types to
display as defaults:
Business… (___) ___-____
Busines 2… (___) ___-____
Business Fax… (___) ___-____
Mobile… (___) ___-____
If I decide to select another phone type from the unbound combo box—such as
“cellâ€â€”I want it to display the phone type for the current record only.
The problem is that each time I select a different phone type for a company,
it changes all the phone types for all the companies (the entire table).
Here’s what I have done:
Tables
tblCompanies
CompanyID dbLong PrimaryKey Indexed
CompanyName dbText Indexed Required
tblPhoneNumbers
PhoneNumberID dbLong PrimaryKey Indexed
CompanyID dbLong ForiegnKey Indexed
PhoneType dbText Indexed
Phone dbText Indexed
tblPhoneTypes
PhoneType dbText PrimaryKey Indexed
Relations
Name: Reference1
Table: tblPhoneTypes
Foreign Table: tblPhoneNumbers
PK: PhoneType FKhoneType
Name: tblCompaniestblPhoneNumbers
Table: tblCompanies
Foreign Table: tblPhoneNumbers
PK: CompanyID FK:CompanyID
What am I doing wrong? I have attached the database for your viewing.
I appreciate any help you can give. Thanks!