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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Refer to combo box in a series that depends on variable. 1

Status
Not open for further replies.

NewTexican

Technical User
Dec 10, 2004
95
US
Ok, I have a column of comboboxes combo11, comb012, ..., combo16. These boxes are next to text11, text12, ..., text16. Thanks to Roy vidar I have a public sub which contains.

mlout = Val(Right(Screen.ActiveControl.Name, 2)) - 10

gives me 1, 2, ..., 6 which I save in a field of a record with an onclick event.
Before I save I want to grab the value in the corresponding combo box and put that in the record as well.
How do I refer to the value in the combo box using mlout so I can assign it to the variable addtype?

addtype = me.combo(mlout + 10).value !?!?!?! (something like that)

thanks in advance.


 
addtype = Me("combo1" & mlout).Value

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
too easy, man thanks I was not going about that the right way.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top