Wrox Programmer Forums
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA 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 December 11th, 2012, 11:37 PM
Registered User
 
Join Date: Dec 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Question combobox changes next combobox

access 2010

I want to make a string of combo boxes to change each other based on the previous one.

I am working on a character creation database: Hair type

I want the user to choose the Color and the length box pops up
then the length box selection pops up and changes the texture box
then the texture box pops up and changes the volume box
then the volume box pops up and changes the style box

example:
length class = 2 --> shows texture box, volume box, style box: all display is class 2

The texture, length, volume, style boxes have Category Name (i.e. Length) and Class Numbers (i.e. Class 1, 2, 3).

I've tried to find or create code that will do what i want but no one seems to know how to do this or even if it is possible (not even my professor).

please let me know if you have any ideas (preferably full code if you've got it)

thanks!
 
Old December 15th, 2012, 01:25 PM
Authorized User
 
Join Date: Feb 2011
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

dear Selene,
i used this type of possibilities, but never through code.
I created (in my case) 4 comboboxes in a form
I my case i had a table with number in 8 positions (2 by 2), so i had 4 "classes"
In fact it was a table on the classification of economic activity hosted by our Central Bank
In the first cbo i made a selection on the 2 first positions: this became the "value" of my first cbo ( => cboFirst.value eg 02 = transport sector)

My second box had a "preselection" of my first (cboFirst.Value) and show me only the values 02.00 trhrough 02.99 you choose eg "roadtransport"
But you will never find here something in the agricultural sector....

and so on for the other 2
I think it should be possible to organise your application with this ideas

Marc
 
Old December 16th, 2012, 05:11 AM
Registered User
 
Join Date: Dec 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default how?

how did you do that without code?

can you do a step by step how for me?
 
Old December 16th, 2012, 02:08 PM
Authorized User
 
Join Date: Feb 2011
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default comboboxes

Hi Selene,
I rebuilt (a part of) an former application I had and made some "comments" to it, step by step, so that you can understand (I hope) the idea behind this way of approach.
Only there is a word-doc, an excel-file and an access-database involved.
If you are interested, please give me an email adress where I can send the whole stuff (by preference a Gmail, because they don't blockoff access files)

My address : [email protected]
regards
Marc
 
Old December 18th, 2012, 02:52 AM
Registered User
 
Join Date: Dec 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs up email address

i just sent you an email with my main email addresses and it was named:

"combo boxes coding/examples wrox"

i'll get back to you with my results once i get the stuff you offered.

thanks





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get value of combobox during Combobox index change in server side harinarayananvp Beginning VB 6 0 October 21st, 2011 01:14 PM
combobox nagarajuballa Java GUI 0 August 13th, 2008 03:49 AM
Filling Combobox with value from other Combobox ayazhoda Access VBA 6 June 5th, 2007 04:58 AM
combobox Warbird General .NET 0 January 7th, 2005 12:26 PM
combobox HenkRog VS.NET 2002/2003 2 March 17th, 2004 01:07 PM





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