Private Sub Combo7_Click() Dim RES As New ADODB.Recordset Dim SQL As String SQL = "SELECT * FROM DRIVER WHERE DID='" & Combo7.Text & "'" RES.Open SQL, CON, adOpenDynamic, adLockOptimistic If RES.RecordCount > 0 Then Text9.Text = RES!DCONT Text10.Text = RES!DADD End If RES.Close End Sub
Rec.Fields.Count
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)