Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 21st, 2004, 10:16 AM
Authorized User
 
Join Date: Nov 2003
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default Combo Box Lookup

Hello,

I have a broker form and a dealership subform that I need to create lookup combo boxes for. I creatd the combo box for the broker form with no problem, but I am having problems creating the lookup combo box for the dealership subform and have the combo box only bring up dealership records that are related to the broker form.

The combo box is showing all dealership records and I would like to limit the combo box to just show dealership records related to the particular broker.

Any ideas?

 
Old May 21st, 2004, 04:08 PM
Authorized User
 
Join Date: May 2004
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Need to reference the form field with the BrokerID in the WHERE portion of the SQL query. Something like:

SELECT DealerName
FROM tblDealers
WHERE (((tblDealers.BrokerID)=Me![BrokerID]))





Similar Threads
Thread Thread Starter Forum Replies Last Post
Combo box to display items from parent combo box Gini Visual Studio 2008 0 June 18th, 2008 12:30 AM
Count in combo box(display results in text box) mboyisis Access 4 April 4th, 2008 07:08 AM
Combo box choice creating filtered combo box stevensj5 Access 11 September 13th, 2007 11:33 AM
Subform combo box 'reverse lookup?' russ2rsa Access 2 June 12th, 2006 08:26 AM
Populate List Box by Combo Box Selection mmcdonal Access 2 June 15th, 2004 12:08 PM





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