|
-
Nov 23rd, 1999, 06:12 AM
#1
Thread Starter
Member
In my form I am displaying the state in a combo box.When I am saving the data in my recordset it is fine but,when I want to display it in the combobox from my reocrdset it is giving an error "Read only property".How do I display the value from the recorset in the combo box?Please reply.
-
Nov 23rd, 1999, 06:18 AM
#2
What property of the combobox are you attempting to modify? It would help if you posted some of your code.
------------------
Marty
-
Nov 23rd, 1999, 07:29 AM
#3
Thread Starter
Member
When I am displaying the record in the form from the recordset i have written
combo1.text = rs!state
-
Nov 23rd, 1999, 07:50 AM
#4
Addicted Member
Anita try,
combo1.clear
rs.movefirst
do
combo1.AddItem rs!State
rs.movenext
if rs.eof then exit do
loop
combo1.listindex = 0
hope it helps
-
Nov 23rd, 1999, 09:47 AM
#5
Text property of the Combobox will be read-only if you set the Style property to 2 (Dropdown List). You can use AddItem method instead.
Combo1.AddItem "MyItem"
Combo1.Listindex = Combo1.NewIndex
------------------
Serge
Software Developer
[email protected]
[email protected]
ICQ#: 51055819
[This message has been edited by Serge (edited 11-24-1999).]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|