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
Register
| 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
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 2nd, 2006, 05:33 PM
Authorized User
 
Join Date: May 2006
Location: Elk Grove, CA, USA.
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default Coding issue

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. =(


EB
__________________
EB
Reply With Quote
  #2 (permalink)  
Old June 4th, 2006, 01:24 AM
Authorized User
 
Join Date: May 2006
Location: , , India.
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Ashfaque
Default

Eb,

Confusion..

Do you mean you created a form based on the Issue table and place 2 combo boxes those are based on the Company table and Employee tables? And when you select company name from the combo..what you want it to do ?

Can you explain it more clearly ?

You must have created combo on the form and not and not in the table.

Regards,
Ashfaque

Reply With Quote
  #3 (permalink)  
Old June 4th, 2006, 01:27 AM
Friend of Wrox
 
Join Date: Oct 2004
Location: Clinton, UT, USA.
Posts: 564
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Hi Ashfaque,

I think EB has signed off for the day, but I think we got this resolved on a different posting. Basically what he was looking for was a way to filter a second combo box, based on the selected value of the first box. I had him create a recordsource for the second that reference the value of the first, and then setup an event on the first to refresh the second whenever it changed.

Later,

Mike

Mike
EchoVue.com
Reply With Quote
  #4 (permalink)  
Old June 4th, 2006, 01:39 AM
Authorized User
 
Join Date: May 2006
Location: , , India.
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Ashfaque
Default

Hello Mike,

Thanks

Good you understand and solved the prob.

Regards,
Ashfaque


Reply With Quote
Reply


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
Need help with coding Gini Visual Studio 2008 2 March 6th, 2009 04:14 PM
Coding Help sugunakar Classic ASP Professional 2 March 30th, 2008 04:42 PM
Help coding here Scoob PHP How-To 3 January 26th, 2006 11:18 AM
coding mdlan PHP Databases 1 May 28th, 2005 07:40 PM
can someone help me in coding this? somanchivasu Access 1 April 5th, 2004 02:41 PM



All times are GMT -4. The time now is 01:49 PM.


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