A
Al Newbie
I have an access frontend and SQL Server backend. I don't want to link any
tables but prefer to use ado.
I have a combobox that I want to populate with the result of a recordset.
Here is the code I am using:
Do While Not rsSQL.EOF
cbxCustFrom.AddItem rsSQL!Customer, 0
rsSQL.MoveNext
Loop
This works fine except that I would like to add a 2nd field
I have tried adding
cbxCustFrom.AddItem rsSQL!Name, 1
before the rsSQL.MoveNext but get the error Can't add item. Index too long
What am I doing wrong?
Thanks
tables but prefer to use ado.
I have a combobox that I want to populate with the result of a recordset.
Here is the code I am using:
Do While Not rsSQL.EOF
cbxCustFrom.AddItem rsSQL!Customer, 0
rsSQL.MoveNext
Loop
This works fine except that I would like to add a 2nd field
I have tried adding
cbxCustFrom.AddItem rsSQL!Name, 1
before the rsSQL.MoveNext but get the error Can't add item. Index too long
What am I doing wrong?
Thanks