SELECT
Necesita saber si hay algun error en esta intrucción
Set rs = dbs.OpenRecordset("SELECT * FROM General WHERE PApellido= '" & txtapellido.Text & " ' and Sexo='" & Cmbsexo.List(Cmbsexo.ListIndex) & "' ")
gracias
Set rs = dbs.OpenRecordset("SELECT * FROM General WHERE PApellido= '" & txtapellido.Text & " ' and Sexo='" & Cmbsexo.List(Cmbsexo.ListIndex) & "' ")
gracias
pruebalo asi mejor:
sSQL="select * from General where PApellido=" & "'" & txtapellido.Text & "'" & " and Sexo=" & "'" & Cmbsexo.List(Cmbsexo.ListIndex) & "'"
espero que vaya bien
sSQL="select * from General where PApellido=" & "'" & txtapellido.Text & "'" & " and Sexo=" & "'" & Cmbsexo.List(Cmbsexo.ListIndex) & "'"
espero que vaya bien
