Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error On RowSource Property Of a dbcombo

Status
Not open for further replies.

vtops

IS-IT--Management
Oct 13, 2005
63
0
0
GR
Dim fill_items As New ADODB.Recordset
Dim cmd_fill_items As New ADODB.Command
Dim i As Integer

cmd_fill_items.CommandText = "select item_code from stores"
cmd_fill_items.ActiveConnection = form_login.main_con
Set fill_items = cmd_fill_items.Execute

With text_item
.RowSource = fill_items
.ListField = "item_code"
.BoundColumn = "item_code"

(The text_item is a dbcombo object)

In the Command:
.Rowsource=fill_items
I have an error Type Missmatch

How can i bind the dbcombo text_item with the recorset fill_items

Could you help me please?
Best Regards
 
fill_items" is an object (specifically a recordset). You need

Set .Rowsource=fill_items
 
Dear Golom

I Tried it to write it as you told me and i have another error message:
Object Variable Or With Block Variable Not Set

Any Ideas?

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top