PC Review


Reply
 
 
Jim Lavery
Guest
Posts: n/a
 
      7th Nov 2008
I want to show another userform based on the value in the combobox. Simple I
know. any ideas?


 
Reply With Quote
 
 
 
 
FSt1
Guest
Posts: n/a
 
      7th Nov 2008
hi.
simple maybe. depends. but to answer the simplistic reguest....
Private Sub ComboBox1_Change()
If ComboBox1.Value = "something" Then
otherform.Show
End If
End Sub

regards
FSt1

"Jim Lavery" wrote:

> I want to show another userform based on the value in the combobox. Simple I
> know. any ideas?
>
>
>

 
Reply With Quote
 
JLGWhiz
Guest
Posts: n/a
 
      7th Nov 2008
This is for concept only. Without specific information no valid code could
be developed.

Private Sub UserForm_Click()
If Me.ComboBox1.Value = Range("A1").Value Then
UserForm2.Show
Unload Me
End If
End Sub

"Jim Lavery" wrote:

> I want to show another userform based on the value in the combobox. Simple I
> know. any ideas?
>
>
>

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      7th Nov 2008
I think I'd just use something like:

Select case lcase(me.combobox1.value)
case is = "value1" : userform1.show
case is = "value2" : userform2.show
case is = "value3" : userform3.show
end select




Jim Lavery wrote:
>
> I want to show another userform based on the value in the combobox. Simple I
> know. any ideas?


--

Dave Peterson
 
Reply With Quote
 
ShaneDevenshire
Guest
Posts: n/a
 
      8th Nov 2008
Hi,

You could use something like this

Private Sub cboColors_Change()
Select Case Me.cboColors
Case "Red"
frmRed.Show
Case "Green"
frmGreen.Show
Case "Blue"
frmBlue.Show
End Select
End Sub

where you have three forms named frmRed, frmGreen, frmBlue

--
Thanks,
Shane Devenshire


"Jim Lavery" wrote:

> I want to show another userform based on the value in the combobox. Simple I
> know. any ideas?
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Access Problem: Combobox.setfocus fires combobox.OnClick event Hal Levy Microsoft Access Form Coding 5 31st Jul 2009 03:54 AM
delete fields in subform combobox after main form combobox is chan deb Microsoft Access 4 24th Jan 2008 10:09 PM
ComboBox.Items.Clear() causes the selection of Text inside the edit of the ComboBox Nomasnd Microsoft Dot NET Framework Forms 1 27th Sep 2006 06:32 PM
HowTo? shift focus in VBA IDE between Object combobox, procedure combobox, and Code window Malcolm Cook Microsoft Access 0 11th Oct 2005 03:42 PM
Bug: Combobox.dropdown = True during Form.New() causes listbox to be disabled, even though combobox is Enabled. =?Utf-8?B?UmF0a2lsZXk=?= Microsoft Dot NET Framework Forms 1 12th Feb 2004 09:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:50 AM.