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 » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Combo Box Visible Yes/No



 
 
Thread Tools Display Modes
  #1  
Old July 27th, 2006, 11:11 PM posted to microsoft.public.access.forms
Gus
external usenet poster
 
Posts: 69
Default Combo Box Visible Yes/No

I have two Combo Boxes in a form in Access2003 and want the second Combo Box
to be Visible or not depending on the item selected on Combo Box 1.
Something like;
IFF combo1="a", Combo box2.visible=true, False

I hope this explain what I need. I thank you for your consideration and
help...

Thanks
Gus

  #2  
Old July 27th, 2006, 11:20 PM posted to microsoft.public.access.forms
Dirk Goldgar
external usenet poster
 
Posts: 1,164
Default Combo Box Visible Yes/No

"Gus" wrote in message
news
I have two Combo Boxes in a form in Access2003 and want the second
Combo Box to be Visible or not depending on the item selected on
Combo Box 1. Something like;
IFF combo1="a", Combo box2.visible=true, False

I hope this explain what I need. I thank you for your consideration
and help...


Basic code would be along the lines of

Me!ComboBox2.Visible = (Me!ComboBox1 = "a")

You need to execute this line in the AfterUdate event of ComboBox1 and,
if ComboBox1 is a bound control, in the Current event of the form/

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)


  #3  
Old July 28th, 2006, 10:46 PM posted to microsoft.public.access.forms
Gus
external usenet poster
 
Posts: 69
Default Combo Box Visible Yes/No

Thanks for the rapid response but it did not work. If you have any other
ideas please let me know.

Thanks
Gus

"Dirk Goldgar" wrote:

"Gus" wrote in message
news
I have two Combo Boxes in a form in Access2003 and want the second
Combo Box to be Visible or not depending on the item selected on
Combo Box 1. Something like;
IFF combo1="a", Combo box2.visible=true, False

I hope this explain what I need. I thank you for your consideration
and help...


Basic code would be along the lines of

Me!ComboBox2.Visible = (Me!ComboBox1 = "a")

You need to execute this line in the AfterUdate event of ComboBox1 and,
if ComboBox1 is a bound control, in the Current event of the form/

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)



  #4  
Old July 28th, 2006, 11:09 PM posted to microsoft.public.access.forms
Dirk Goldgar
external usenet poster
 
Posts: 1,164
Default Combo Box Visible Yes/No

"Gus" wrote in message

Thanks for the rapid response but it did not work. If you have any
other ideas please let me know.

"Dirk Goldgar" wrote:

Basic code would be along the lines of

Me!ComboBox2.Visible = (Me!ComboBox1 = "a")

You need to execute this line in the AfterUdate event of ComboBox1
and, if ComboBox1 is a bound control, in the Current event of the
form.


It should work, so if it didn't, either you applied it wrong or there's
something about your situation that I don't know yet. In what way did
it "not work"? Did you get an error message, or did nothing happen at
all? Please post (by copy/paste) the exact code you tried, and give
some more background details of the form, the controls, and the way you
tested. Be aware that it's possible for a combo box to show one value
but actually store another -- maybe that's the trouble.

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)


 




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 12:45 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.