|
-
March 30th, 2001, 09:30 PM
#1
ComboBox
I have made a database program with the VB wizard. I have one record with three fields in it.
I want to be able to put one of the fields into a combo box. Can someone tell where to start?
-
March 30th, 2001, 10:19 PM
#2
Re: ComboBox
Hi there.
I am assuming that you have fetched the recorset and the name of you recordset is 'rs'
So you will create a loop
Do while not rs.eof
combobox.additem(rs("column name"))
rs.movenext
loop
-
March 30th, 2001, 10:32 PM
#3
Re: ComboBox
Thanks!! I found the rs in another program. Here is the code.
Public WithEvents rs As ADODB.Recordset
Private Fields As ADODB.Fields
Private fld As ADODB.Field
Set fld = Fields(cboName.Text)
ShowProperties
This did not work and I do not understand any of the code.
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
|