I am using VB6 and the ADODB.Connection.
How do I say List2.AddItem db_url
I don't want to fill the List1 box by calling .Fields(2) names.
List1.AddItem rstRecordSet.Fields(2)
db_Url is the actual field name used in the database.
In other words how do I get the item from the database into the list box using its name instead of the field number as above?
Also how do I get the rec number ID without all the mumbo jumbo above.
ADODB.Connection
List1.AddItem rstRecordSet.Fields(2)
List2.AddItem rstRecordSet.AbsolutePosition
rstRecordSet.Fields(1).Name & "=" & rstRecordSet.Fields(1)
Each record number is called ID.
Field 1 = name db_Url
Thanks.
How do I say List2.AddItem db_url
I don't want to fill the List1 box by calling .Fields(2) names.
List1.AddItem rstRecordSet.Fields(2)
db_Url is the actual field name used in the database.
In other words how do I get the item from the database into the list box using its name instead of the field number as above?
Also how do I get the rec number ID without all the mumbo jumbo above.
ADODB.Connection
List1.AddItem rstRecordSet.Fields(2)
List2.AddItem rstRecordSet.AbsolutePosition
rstRecordSet.Fields(1).Name & "=" & rstRecordSet.Fields(1)
Each record number is called ID.
Field 1 = name db_Url
Thanks.