ok, now I take it that code is what appears in OnClick for the button. I also take it that you haveonly one combobox, and you want to open a form depending on whats chosen, I can fix up that code right there alittle but still lost as to what you mean
[tt]
If Combo1.ListIndex <> -1 then
Select Case Combo1.DataMember
Case StoneHendge
SH.Show vbModal, Form1
Case RainDance
notd.Show VbModal, Form1
end select
end if
[/tt]
also I dont even know why yer using that 'a' variable when you could have simply done this:
[tt]
If Combo1.DataMember = StoneHenge Then
SH.Show vbModal, Form1
End If
If Combo1.DataMember = RainDance Then
notd.Show vbModal, Form1
End If
[/tt]
or even this
[tt]
If Combo1.DataMember = StoneHenge Then
SH.Show vbModal, Form1
ElseIf Combo1.DataMember = RainDance Then
notd.Show vbModal, Form1
End If
[/tt]
did that help any? [sig]<p>Karl<br><a href=mailto:kb244@kb244.com>kb244@kb244.com</a><br><a href=
</a><br>Experienced in : C++(both VC++ and Borland),VB1(dos) thru VB6, Delphi 3 pro, HTML, Visual InterDev 6(ASP(WebProgramming/Vbscript)<br>
[/sig]