M
Marc
I'm back in the Access development mode and seem to have forgotten how to do
2 things that should be simple. I have a database with a table of contacts,
companies and activities. The idea is that I'll put in a list of companies,
a bunch of contacts that work at each company, and an activities form that
allows me to input every activity I do for each contact.
The activities table includes a lookup field (also named contactID) for
contactID field in the contact table so that each activity is assigned to
only one contact by selecting the contact's contactID. In the contacts table
I have done the same with the companyID so that each contact is assigned a
company by using the companyID. The lookup allows me to see the contact name
in the first example and the company name in the second example so that
selection is easy. Here's what I wanted to do in the activities form:
1) I have a lookup table for the contactID which looks up the contact's name
in the contact table so that "firstname, middlename, lastname" appears in
the dropdown insead of just the contactID number. Unfortunately 2 things
occur: (a) I see the firstname, middlename, lastname fields but I want them
sorted by the lastname field -- it sorts by firstname; (b) when I finish
using the dropdown, all I see is the firstname field and the other two
disappear. I'd like to have all 3 fields appear.
2) I'd like to have a field which merely displays the companyname field from
the company table on this form. Since I have selected a contactID, I have a
companyID lookup in the contact table. I'm not sure how to set up this query
and a field that shows the results of the query in the form. Obviously this
does not have to be stored because it already has been stored and it is used
just for dispay purposes only...
Thanks all so much in advance...
Marc
2 things that should be simple. I have a database with a table of contacts,
companies and activities. The idea is that I'll put in a list of companies,
a bunch of contacts that work at each company, and an activities form that
allows me to input every activity I do for each contact.
The activities table includes a lookup field (also named contactID) for
contactID field in the contact table so that each activity is assigned to
only one contact by selecting the contact's contactID. In the contacts table
I have done the same with the companyID so that each contact is assigned a
company by using the companyID. The lookup allows me to see the contact name
in the first example and the company name in the second example so that
selection is easy. Here's what I wanted to do in the activities form:
1) I have a lookup table for the contactID which looks up the contact's name
in the contact table so that "firstname, middlename, lastname" appears in
the dropdown insead of just the contactID number. Unfortunately 2 things
occur: (a) I see the firstname, middlename, lastname fields but I want them
sorted by the lastname field -- it sorts by firstname; (b) when I finish
using the dropdown, all I see is the firstname field and the other two
disappear. I'd like to have all 3 fields appear.
2) I'd like to have a field which merely displays the companyname field from
the company table on this form. Since I have selected a contactID, I have a
companyID lookup in the contact table. I'm not sure how to set up this query
and a field that shows the results of the query in the form. Obviously this
does not have to be stored because it already has been stored and it is used
just for dispay purposes only...
Thanks all so much in advance...
Marc