A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Lookup List Needed



 
 
Thread Tools Display Modes
  #1  
Old December 27th, 2006, 09:55 PM posted to microsoft.public.access.forms
Leslie
external usenet poster
 
Posts: 259
Default Lookup List Needed

In my form I have a field called DistributorName and a field called
Technician. Each Distributor has multiple technicians. I want to have a
drop down list of the technicians specific to the Distributor to fill in
after the Distributor Name is choosen. We are using Access 2006. For
example.

FRM_CallLog has a DistributorName Field(object) and then it has a Technician
Field (Object). The Distributor name field is a list of current Distributors
and the person logging a call would choose a Distributor on the list to
populate the Distributor Name field. then based on the Distributor Name that
was choosen the Technician Field would create a list of active technicians
for that DistributorName and the person logging the call would choose the
name of the Technician that they talked to. How can I accomplish this? I
tried DLookup but that does not work and doesn't give the option to pick one
name from the list. Any help would be greatly appreciated.

Thanks,

  #2  
Old December 27th, 2006, 10:24 PM posted to microsoft.public.access.forms
mscertified
external usenet poster
 
Posts: 835
Default Lookup List Needed

Both controls (DistributorName and Technician) should be combo boxes whose
data source is a query). The DistributorName query should be something like
'SELECT distributor FROM tblDistributors ORDER by distrinutor'. The
Technician query should be something like 'SELECT technician FROM
tblTechnicians WHERE distibutor = [Forms]![MyForm]![MyDistributorControl]
ORDER by technician'. You will need a distributor table and a technician
table and the technician table needs to contain the distributor as a column.
Needless to say, this is a vastly simplified explanation. You need the
tables and relationships set up to suport this.

-Dorian

"Leslie" wrote:

In my form I have a field called DistributorName and a field called
Technician. Each Distributor has multiple technicians. I want to have a
drop down list of the technicians specific to the Distributor to fill in
after the Distributor Name is choosen. We are using Access 2006. For
example.

FRM_CallLog has a DistributorName Field(object) and then it has a Technician
Field (Object). The Distributor name field is a list of current Distributors
and the person logging a call would choose a Distributor on the list to
populate the Distributor Name field. then based on the Distributor Name that
was choosen the Technician Field would create a list of active technicians
for that DistributorName and the person logging the call would choose the
name of the Technician that they talked to. How can I accomplish this? I
tried DLookup but that does not work and doesn't give the option to pick one
name from the list. Any help would be greatly appreciated.

Thanks,

  #3  
Old December 27th, 2006, 10:30 PM posted to microsoft.public.access.forms
Leslie
external usenet poster
 
Posts: 259
Default Lookup List Needed

Thanks, I will try this. I already have a Distributor table and a
Technician Table and they are linked by the Distributor ID field.



"mscertified" wrote:

Both controls (DistributorName and Technician) should be combo boxes whose
data source is a query). The DistributorName query should be something like
'SELECT distributor FROM tblDistributors ORDER by distrinutor'. The
Technician query should be something like 'SELECT technician FROM
tblTechnicians WHERE distibutor = [Forms]![MyForm]![MyDistributorControl]
ORDER by technician'. You will need a distributor table and a technician
table and the technician table needs to contain the distributor as a column.
Needless to say, this is a vastly simplified explanation. You need the
tables and relationships set up to suport this.

-Dorian

"Leslie" wrote:

In my form I have a field called DistributorName and a field called
Technician. Each Distributor has multiple technicians. I want to have a
drop down list of the technicians specific to the Distributor to fill in
after the Distributor Name is choosen. We are using Access 2006. For
example.

FRM_CallLog has a DistributorName Field(object) and then it has a Technician
Field (Object). The Distributor name field is a list of current Distributors
and the person logging a call would choose a Distributor on the list to
populate the Distributor Name field. then based on the Distributor Name that
was choosen the Technician Field would create a list of active technicians
for that DistributorName and the person logging the call would choose the
name of the Technician that they talked to. How can I accomplish this? I
tried DLookup but that does not work and doesn't give the option to pick one
name from the list. Any help would be greatly appreciated.

Thanks,

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:35 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.