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 March 3rd, 2004, 07:40 PM
Friend of Wrox
Join Date: Aug 2003
Posts: 137
Thanks: 0
Thanked 0 Times in 0 Posts
Default Combo boxes

I have created a form that allows users to navigate through a database. Within this form users can also add a record by clicking a button. The form has three input fields which are bound text boxes to fields in a database. I was wanting to change one of these text boxes to a drop down list using a combo box allowing users to select a choice for a particular input when required to do so.

My question is can a combo box be used to show data for a particular record when a user navigates through the records, yet also provide an input selection when a user decided to input a new record?

Could somebody advise me if this is possible? Am I making sense?

Old March 4th, 2004, 09:28 AM
Friend of Wrox
Join Date: Jun 2003
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
Send a message via ICQ to SerranoG Send a message via AIM to SerranoG

To reduce confusion to the users, those two functions, i.e. navigation and input, should be separated. You can have a dropdown with choices in it that moves the user to the desired records when changed, e.g. company name. Set Limit to List = YES because you're just navigating... moving to a record of existing companies. If a NEW record is desired, one of the choices in the dropdown can be "Add New". In that way, Access will navigate to a new record.

Then below in another area of the form, you actually enter/edit the info you navigated to, including a (second) field to enter company name. You can make that second field a dropdown, too, so that people can choose from existing company names; but the second dropdown is not to navigate anywhere, it's just to fill in the company name for that record. Set Limit to List = NO so you can add a totally new company name if needed.

Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division

Similar Threads
Thread Thread Starter Forum Replies Last Post
Combo Boxes nbuckwheat Access 1 January 15th, 2006 09:26 AM
3 combo boxes ttkt Beginning PHP 0 July 2nd, 2005 02:20 PM
Combo Boxes tjs206 VB Databases Basics 2 December 10th, 2003 05:20 PM
combo boxes damnnono_86 Access 2 October 15th, 2003 09:00 PM
Combo Boxes Louisa Beginning VB 6 2 September 10th, 2003 09:26 AM

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