hii,
i am having some problem in saving the data in combo box at runtime.
i am taking the input from a text box to add item in my combo box, it is saving the data for the same time but when i restart my program these added items are removed automatically..
what to do to add the data permanently??????
if we can do it by making another database then what can be the code?
can we make an MS ACCESS file into which we can add item through text box and then fetch that item list using dataenvironment, etc..
please reply........
saving data in combo box at runtime
Mon, 01/18/2010 - 12:58
#1
saving data in combo box at runtime
On the properties of the Combo Box search for the "List" put your necessary this there
Web / System Developer
Contacts :
09327081978
recca_flame05@yahoo.com >>> Facebook/YM
ICCT Colleges Cainta Rizal
but dear i want it to be done at run time.
i have made another page to add the item, as soon as we submit it, it should add item to comobox, permanently
reply ASAP
if we can do it by making a text file then what can be the code......
how to add data at runtime to that file and then adding these items to combo box
reply ASAP
'SAVE-----
Dim i as interger
Open "C:\test.txt" for output as #1
For i = 1 to combo1.listcount
Combo1.listindex = i
Print #1, combo1.text
close #1
'GET------
Dim txt as string
Open "C:\test.txt" For Input As #1
Do While EOF(1) = False
Line Input #1, txt
combo1.Additem txt
Loop
Close #1
From Denmark
hhmm@ofir.dk
Pages
Add new comment