trying to populate a variable from a combo box

L

lwhite

I am trying to fill a variable with the value from a
combo box.

I tried the following

Dim myDesc as String
myDesc = Me.ComboBox2

and then I tried
Dim myDesc as String
Set myDesc = Me.ComboBox2

Could someone please tell me what I am doing wrong?
LWhite
 
B

Bob Phillips

Try

myDesc = Me.ComboBox2.Value

--

HTH

RP
(remove nothere from the email address if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top