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 November 5th, 2005, 07:25 PM
Authorized User
 
Join Date: Aug 2005
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default jump to combo box

how do i create a jump to combo box that when a customer is selected it will display all the info in the fields in a form.

 
Old November 5th, 2005, 08:32 PM
Authorized User
 
Join Date: Sep 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm not sure what you mean.
You want to set the focus to a combo box?
You use vba. Open the Module for the Form:

me.ComboBoxName.SetFocus

Database Agreements
 
Old November 6th, 2005, 08:08 AM
Friend of Wrox
 
Join Date: Aug 2004
Posts: 159
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think he means to select a customer on a combo box and to have all the fields
on the form updated to that customer.
Rgds Penta

 
Old November 6th, 2005, 01:58 PM
Authorized User
 
Join Date: Sep 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can use the wizard (toolbox) in Access to create a combo box that has the customer Primary Key in it as the first field, and then go through the wizard to select a record on the Form depending on that selection of the Wizard.

Hope that is what you need,




Database Agreements
 
Old November 7th, 2005, 06:07 AM
Friend of Wrox
 
Join Date: Aug 2004
Posts: 159
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I dont think Mjuliao has problems with creating a combo box. He wants to have
the text boxes on the form updated when he select a customer on the combo box.
Hope he help us help him.
Rgds P

 
Old November 7th, 2005, 09:27 PM
Authorized User
 
Join Date: Sep 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well, perhaps I don't understand what he wants.
However, if what he wants is what you are saying,
1. Have a combo box on the Form which when updated selects all the information about a customer.
This wizard creates VBA Code which would use the RecordSet Clone property to find the customer in the QBF and then bring the current record of the Form to the customer.




Database Agreements
 
Old November 7th, 2005, 09:42 PM
Authorized User
 
Join Date: Aug 2005
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi,

well, i did the cbo using the wizard and it does what i want, the only problem is that when i change the record using the arrows on the botton part it doesn't changes the info on the cbo.

 
Old November 7th, 2005, 11:19 PM
Authorized User
 
Join Date: Sep 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

In the Form_Current Event of the Form
Use something like this

me.cboName = me.PrimaryFieldName

I am assuming the Primary Key Fields exist in both the ComboBox and on the Form.

Database Agreements





Similar Threads
Thread Thread Starter Forum Replies Last Post
Populate a text box from a combo box value dnf999 Access VBA 7 February 6th, 2012 02:24 PM
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
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.