Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Populating Combo Box
Name: gardenair Date: March 20, 2004 at 07:21:52 Pacific OS: win98 CPU/Ram: 900
Comment:
Iam using ADO & there r 10 Roll numbers in Roll Number Field. I want to populate combo box at form load event & see all 10 roll numbers in the combo box.
I use the code in form load event
Combo1.AddItem (rec.Fields(0))
but using it,it only show Roll number 1 in combo box. How can i get the remaining 9 Roll numbers which are in the database? Is there need for loop.If yes then how can i use it or there is any other way to see all 10 roll numbers populated in combo box.
2--My second problem is when i see the 1 in combo box i want to see the crosponding fields by clicking 1 . Suppose i click on 1 at combo box & it will show the Name & address of the stiudent in the text boxes. Please guide me that how can i do that. Thanks in advance for the help.
Summary: I need to populate a combo box with a list of information stored on a sheet. The information can be edited tho and will need to be done using a loop and "do without" as there could be spaces in the in...
Summary: Need help with VBA and excel. I'm trying to write a macro for excel, with multiple combo boxes. When populating these boxes, I would like to store the primary key alongside the name. With regular VB, ...
Summary: Iam using VB6 & in it i have populated four items in Combo1 i.e Combo1.AddItem "Paper" Combo1.AddItem "Pen" Combo1.AddItem "Ink" Combo1.AddItem "Shopner" I want that when my form is l...