Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Grab Value from Combo Box

Status
Not open for further replies.

Fattire

Technical User
Nov 30, 2006
127
US
I'm just trying to grab a value choosen by a combo box so I can use it else where in the form....the code below is all I've come up with and it doesn't grab the value clicked on in the combo box - it pulls nothing.

Combo box get's it's values from a SQL statement

Code:
Private Sub cbo_Listing_AfterUpdate()

Dim varName As String

Me.cbo_Listing.Value = varName

End Sub
 
ooohhhhh, had the code backward, nevermind - copied too fast and then wasn't looking...sorry.
 
thats because you typed it backward

try varname = me.cbo_listing.value

ck1999
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top