B
BFish
I thought I had my db fully functional until...
I'm using a phone number field (indexed, no duplicates) to qualify every
business in the db as unique. So upon a new entry added to the close to 6,
000 existing records I can eliminate duplicates due to mispellings of
business name.
Works fine until a business with multiply phone lines will give us a phone
number other than the primary (direct lines, 800 #'s ect.).
I am displaying business information in two different forms one in single
form and another in datasheet. I have split the [PhoneNumber] field off of
the main table (tblBusinessInformation) to its own table (tblPhoneInfo) with
foreign key of tblBusinessInformationID from the main table to store the
multiply phone numbers. In the datasheet view form (frmBusinessLookup) each
business with muptiple phone numbers will display more the one time I would
like to have only one instance displayed. I thought a combo box would be
the way to accomplish this but have struggled in both diplaying the the
business entry only one time and having the combo box using only that
businesses phone numbers to list in the box.
This is the combo box subquery:
SELECT tblPhoneNumber.BusinessInformationID, tblPhoneNumber.PHONE,
tblPhoneNumber.DateEntered FROM tblPhoneNumber WHERE (((tblPhoneNumber.
BusinessInformationID)=[Form]![frmBusinessLookup]![qselBusinessNameByPhone].
[BusinessInformationID])) ORDER BY tblPhoneNumber.DateEntered;
This unforunately is not working the way I intended:
First in having an incorrect reference I believe to the form control (when I
view the form I'm asked for the [Form]![frmBusinessLookup]!
[qselBusinessNameByPhone].[BusinessInformationID] value.
Second is still the muliply listing of each business, one time for each phone
number.
In what way can I accomplish my goal
Thanks for any help,
Bill Fischer
I'm using a phone number field (indexed, no duplicates) to qualify every
business in the db as unique. So upon a new entry added to the close to 6,
000 existing records I can eliminate duplicates due to mispellings of
business name.
Works fine until a business with multiply phone lines will give us a phone
number other than the primary (direct lines, 800 #'s ect.).
I am displaying business information in two different forms one in single
form and another in datasheet. I have split the [PhoneNumber] field off of
the main table (tblBusinessInformation) to its own table (tblPhoneInfo) with
foreign key of tblBusinessInformationID from the main table to store the
multiply phone numbers. In the datasheet view form (frmBusinessLookup) each
business with muptiple phone numbers will display more the one time I would
like to have only one instance displayed. I thought a combo box would be
the way to accomplish this but have struggled in both diplaying the the
business entry only one time and having the combo box using only that
businesses phone numbers to list in the box.
This is the combo box subquery:
SELECT tblPhoneNumber.BusinessInformationID, tblPhoneNumber.PHONE,
tblPhoneNumber.DateEntered FROM tblPhoneNumber WHERE (((tblPhoneNumber.
BusinessInformationID)=[Form]![frmBusinessLookup]![qselBusinessNameByPhone].
[BusinessInformationID])) ORDER BY tblPhoneNumber.DateEntered;
This unforunately is not working the way I intended:
First in having an incorrect reference I believe to the form control (when I
view the form I'm asked for the [Form]![frmBusinessLookup]!
[qselBusinessNameByPhone].[BusinessInformationID] value.
Second is still the muliply listing of each business, one time for each phone
number.
In what way can I accomplish my goal
Thanks for any help,
Bill Fischer