A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Cascading Combo box to three levels



 
 
Thread Tools Display Modes
  #1  
Old November 28th, 2008, 03:00 AM posted to microsoft.public.access.tablesdbdesign
shaz0503
external usenet poster
 
Posts: 24
Default Cascading Combo box to three levels

All

I have borrowed code from the web and it works wonderfully in developing
cascading combo to 2 levels - what I need is a macro to go to a third level.

the code I am using now is

Private Sub cboCountry_AfterUpdate()
On Error Resume Next
Select Case cboCountry.Value
Case "DevelopmentPlanning"
cboQuery.RowSource = "tblWebDevelopment"

I can use this for all option at the first and second level but want an
additional combo box

first level selection - DevelopmentPlanning
second level selection is Web Development and now need to add next level
options
(busilding a budget for example)

any assistance or 'you can't do' is appreciated

rgds

Shaz
  #2  
Old November 28th, 2008, 05:32 PM posted to microsoft.public.access.tablesdbdesign
tina
external usenet poster
 
Posts: 1,997
Default Cascading Combo box to three levels

well, the code runs in the first combobox control's AfterUpdate event
procedure, to set the RowSource for the second combobox control, correct?
and now you want to set the RowSource of a third combobox control, when a
selection is made in the second combobox, correct? if so, just add similar
code to the AfterUpdate event procedure of the second combobox control. or
am i missing something here?

hth


"shaz0503" wrote in message
...
All

I have borrowed code from the web and it works wonderfully in developing
cascading combo to 2 levels - what I need is a macro to go to a third

level.

the code I am using now is

Private Sub cboCountry_AfterUpdate()
On Error Resume Next
Select Case cboCountry.Value
Case "DevelopmentPlanning"
cboQuery.RowSource = "tblWebDevelopment"

I can use this for all option at the first and second level but want an
additional combo box

first level selection - DevelopmentPlanning
second level selection is Web Development and now need to add next level
options
(busilding a budget for example)

any assistance or 'you can't do' is appreciated

rgds

Shaz



 




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:52 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.