G
gweasel
Not sure what a good subject would have been for this.
I've got a database that was set up some time ago by a former
employee. In it is a logbook form that pulls from a query (which
combines fields from 3 tables).
The first control on the form that is editable by the user is a combo
box for them to select a company name. Once they select a company
name, fields specific to that company fill in (contact name, delivery
address, phone number, email, fax) automatically by way of a macro and
invisible DLookup controls on the form.
The change that has been requested is to make it automatically fill in
multiple options for some of those controls. Specifically the contact
name and phone number. There are many companies we work with who have
multiple departments that we work with, and therefore, multiple
contacts to deal with. Rather than having the same company entered in
multiple times, it is currently entered once with options for
"Secondary Contact" - but that is not called on at all when the
company name is selected.
I know DLookup will only return a single value (or that is my
understanding). Is there a way to make the contact info automatically
fill in as a combo box where multiple users are selectable?
Alternative ideas, explanations and / or samples would be
appreciated.
Thanks,
RJB
I've got a database that was set up some time ago by a former
employee. In it is a logbook form that pulls from a query (which
combines fields from 3 tables).
The first control on the form that is editable by the user is a combo
box for them to select a company name. Once they select a company
name, fields specific to that company fill in (contact name, delivery
address, phone number, email, fax) automatically by way of a macro and
invisible DLookup controls on the form.
The change that has been requested is to make it automatically fill in
multiple options for some of those controls. Specifically the contact
name and phone number. There are many companies we work with who have
multiple departments that we work with, and therefore, multiple
contacts to deal with. Rather than having the same company entered in
multiple times, it is currently entered once with options for
"Secondary Contact" - but that is not called on at all when the
company name is selected.
I know DLookup will only return a single value (or that is my
understanding). Is there a way to make the contact info automatically
fill in as a combo box where multiple users are selectable?
Alternative ideas, explanations and / or samples would be
appreciated.
Thanks,
RJB