Hi,
i have a form in VB. iam using SQL Server as Back-end. And connection string and all works properly. the only one thing is i want to retrieve data from database into a combobox. i'am using this code....
[ dim i ]
[ for i = 0 to Combo1.ListCount - 1 ]
[ Combo1.Text = Combo1.AddItem "rst!fieldname1" ]
[ Next ]
' wher rst is the recordset. form this code i can get only one record. actually i want to display the list of records from a particular column.
i also tried
[ dim i ]
[ for i = 0 to Combo1.ListCount - 1 ]
[ Combo1.List(i) = rst!fieldname1 ]
[ Next ]
it also doesnt work.