UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Cascading Combo box! How do i make?    
 
   
nhagan
post Nov 11 2009, 04:54 AM
Post #1

UtterAccess Member
Posts: 47



Hello all, i have a students form which contains all student information etc.

On this form i have a selection box which allows the user to choose if the student is SEN. If selected i want a combo box to appear linking to the SENType list. If not selected i don't want the combo box to appear.

Selection box named: CheSEN
Combo box: CboSENType

Not sure what to do

THanks
Go to the top of the page
 
+
theDBguy
post Nov 11 2009, 11:35 AM
Post #2

Access Wiki and Forums Moderator
Posts: 47,914
From: SoCal, USA



By "selection box" named CheSEN, are you talking about a checkbox? If so, you could try something like:

Private Sub CheSEN_AfterUpdate()
Me.CboSENType.Visible = Me.CheSEN
End Sub

Hope that helps...
Go to the top of the page
 
+
nhagan
post Nov 12 2009, 12:37 PM
Post #3

UtterAccess Member
Posts: 47



Thanks that works. But i was wondering what would i add so that it werent visible on form load if its not ticked?

Edited by: nhagan on Thu Nov 12 13:06:31 EST 2009.
Go to the top of the page
 
+
theDBguy
post Nov 12 2009, 01:19 PM
Post #4

Access Wiki and Forums Moderator
Posts: 47,914
From: SoCal, USA



Hi,

In the Form's Current event, you could try this:

Private Sub Form_Current()
Call CheSEN_AfterUpdate()
End Sub

Hope that helps...
Go to the top of the page
 
+
nhagan
post Nov 12 2009, 01:21 PM
Post #5

UtterAccess Member
Posts: 47



Thank you very much!

works perfectly x
Go to the top of the page
 
+
theDBguy
post Nov 12 2009, 06:04 PM
Post #6

Access Wiki and Forums Moderator
Posts: 47,914
From: SoCal, USA



You're welcome. Good luck with your project.
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 18th May 2013 - 07:17 PM