Any ideas how to refer to it? So I have 2 columns and 1st column bound
I have some text I want to find in the second column of the combo box
Vendor ID
ABC URDFG
XYZ FUDGD
RTF SDFFS
so I have "FUDGD" in my search string and I want to loop thru combo box and set it on "XYZ"
DougP
I have some text I want to find in the second column of the combo box
Vendor ID
ABC URDFG
XYZ FUDGD
RTF SDFFS
so I have "FUDGD" in my search string and I want to loop thru combo box and set it on "XYZ"
Code:
' get vendor name from first column in TimesheetF1
Dim Conn2 As ADODB.Connection
Dim Rs1 As ADODB.Recordset
Dim SQLCode As String
Set Conn2 = CurrentProject.Connection
Set Rs1 = New ADODB.Recordset
SQLString = "SELECT TimesheetF1.F1 From TimesheetF1 GROUP BY TimesheetF1.F1;"
Rs1.Open SQLString, Conn2, adOpenStatic, adLockOptimistic
For a = 1 To Me.cboChoosePTNumber.ListCount
if Me.cboChoosePTNumber.ItemData(a).column(2) <>>> how do I refer to the secondcolumn in this loop
.Column(1). = Rs1!F1
Next
DougP