I am using VB6.0
I have two combo boxes , namely combo1 and combo2.
For E.g, I say Combo1.AddItem Combo1.Text to add a new item to the list during run time. In the drop down I do see the new item during run time. But It disappears in the next run time.
My question is , how can I save the newly added item to the Combo boxes list permanently so that in the next run time it should show the new added item along with the old items.
Please help.
Thanks
Pratibha
Hi there -
I can figure out your problem. Those values in the combo box that you said that are not gone after rerun, are really values it at your design time. Try to look at Combo box "List" property at the design time and you will those values.
Now, you may have wanted it all coming from your database (MS Access). What you gonna do is
I suppose that you know how and you are able to connect to the dbase and your recordset object is ready.
Combo1.clear -- This will clear the values from design time
If not rs.eof -- And load values extracted from your table in the dbase
Do until rs.eof
Combo1.AddItem rs!<Fieldname>
Loop
End if
This perhaps shed light to this problem.
Have a good day.