Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 2nd, 2006, 10:15 PM
Authorized User
Join Date: May 2006
Location: Elk Grove, CA, USA.
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default A form field list populating based on another fiel

I have created three tables Companies, Employees, and Issue.
In all three tables I have added CompanyID as a common factor.
In the Employees table I have a field called Name.
In the Issue table I have created combo box field called company name where the source is the companyname field from the companies table . In the same table I have created a combo box field called contact whereas the source is the Name field from the employees table.
What I am trying to do is create a form from the Issue table where the Company Name field and Contact field are inserted in the form however, when I select a company from the dropdown in form view of the issues table the contacts field will have a dropdown only showing me the contact from that particular company only that I can select from.
Can anyone help me with coding this? I am trying to do an SQL query an here is what I have maybe I am wrong.

Select Name
From Employees
Where Companies.companyid = Employees.companyid

I have to be missing something because it is not working. =(


Reply With Quote
  #2 (permalink)  
Old June 2nd, 2006, 10:28 PM
Friend of Wrox
Join Date: Oct 2004
Location: Clinton, UT, USA.
Posts: 564
Thanks: 0
Thanked 4 Times in 4 Posts

Being Friday, my brain is only firing on 1 cylinder, but...

Are you trying to do select an option from one combo box and then have it change the available options in another combo box?

Reply With Quote
  #3 (permalink)  
Old June 3rd, 2006, 09:37 AM
Authorized User
Join Date: May 2006
Location: Elk Grove, CA, USA.
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts


Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
populating table from a subform based on a query bjcountry Access 1 April 11th, 2008 06:35 AM
Populating combo based on first one creative_eye PHP How-To 0 June 30th, 2006 10:30 AM
Select a field on a form, based on variable JAnthony Access VBA 2 April 17th, 2006 11:16 AM
Populating web form with drop down list selection AugieDawgie ASP.NET 1.0 and 1.1 Basics 0 December 7th, 2005 11:44 AM
Hide Tabs in a Form Based on a field. snoopy92211 Access VBA 1 November 18th, 2004 02:33 PM

All times are GMT -4. The time now is 01:47 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.