Cambia el procedimiento correspondiente por éste:
Public Sub MuestraDetalleCliente(id As Long)
'Inserción de fila al final de la tabla pulsando TAB
If id = 0 Then
Call NuevoRegistro
Exit Sub
End If
Dim cnn As ADODB.Connection
Dim rst As ADODB.Recordset
Dim strSQL As String
Dim cnn2 As ADODB.Connection
Dim rst2 As ADODB.Recordset
Dim str2SQL As String
'Establece la conexión con la base de datos
Set cnn = New ADODB.Connection
With cnn
.Provider = "Microsoft.ACE.OLEDB.12.0"
.Open strDB
End With
'Consulta
strSQL = "SELECT * FROM Pacientes WHERE Id=" & id
str2SQL = "Select Nombre_cups From Relacion Where id_Paciente=" & id
'Abrimos un RecordSet
Set rst = New ADODB.Recordset
Set rst2 = New ADODB.Recordset
Rst. Open strSQL, cnn, adOpenForwardOnly, adLockOptimistic
Rst2. Open str2SQL, cnn, adOpenForwardOnly, adLockOptimistic
'Copiamos los resultados del RecordSet en los distintos textBox:
Hoja4.txbId.Value = rst(0)
Hoja4. TxbCiudad.Text = IIf(IsNull(rst(1)), "", rst(1))
Hoja4. Txbproveedor.Text = IIf(IsNull(rst(2)), "", rst(2))
Hoja4. TxbEmpresa.Text = IIf(IsNull(rst(3)), "", rst(3))
Hoja4. TxbEmpresaMision.Text = IIf(IsNull(rst(4)), "", rst(4))
Hoja4. TxbExamen.Text = IIf(IsNull(rst(5)), "", rst(5))
Hoja4. TxbCargo.Text = IIf(IsNull(rst(6)), "", rst(6))
Hoja4. TxbPaciente.Text = IIf(IsNull(rst(7)), "", rst(7))
Hoja4. TxbCedula.Text = IIf(IsNull(rst(8)), "", rst(8))
Hoja4. TxbTelefono.Text = IIf(IsNull(rst(9)), "", rst(9))
Hoja4. TxbRadicado.Text = IIf(IsNull(rst(10)), "", rst(10))
Hoja4. TxbNoFact.Text = IIf(IsNull(rst(11)), "", rst(11))
Hoja4. TxbTotExamen.Text = IIf(IsNull(rst(12)), "", rst(12))
Hoja4. TxbObservaciones.Text = IIf(IsNull(rst(13)), "", rst(13))
Hoja4. TxbFechaOrden.Text = IIf(IsNull(rst(14)), "", rst(14))
Hoja4. TxbHoraOrden.Text = IIf(IsNull(rst(15)), "", rst(15))
Hoja4. TxbFechaAtencion.Text = IIf(IsNull(rst(16)), "", rst(16))
Hoja4. TxbHoraAtencion.Text = IIf(IsNull(rst(17)), "", rst(17))
Hoja4. TxbFechaEntrega.Text = IIf(IsNull(rst(18)), "", rst(18))
Hoja4. TxbHoraEntrega.Text = IIf(IsNull(rst(19)), "", rst(19))
Hoja4. TxbRecepcion.Text = IIf(IsNull(rst(20)), "", rst(20))
Hoja4. TxbCorreo.Text = IIf(IsNull(rst(21)), "", rst(21))
Hoja4. ListaExamenes. Clear
Do While Not rst2.EOF
Hoja4. ListaExamenes. AddItem rst2.Fields("Nombre_cups")
Rst2. MoveNext
Loop
'Close
Rst. Close
Rst2. Close
Cnn. Close
Set rst = Nothing
Set rst2 = Nothing
Set cnn = Nothing
End Sub
Por lo que vi lo estabas intentando, era solo cuestión de establecer tu cadena SQL. Salu2
Abraham Valencia