Tengo el siguiente código en una BD de access 2007....

Dim conexion As ADODB.Connection
Set conexion = CurrentProject.Connection
Dim myRecordSet As New ADODB.Recordset
Dim x As Long
myRecordSet.ActiveConnection = conexion
x = Me!combobox0.Value
MySQL = "SELECT OS.LongContrato,OS.IntIDOS FROM [OS] WHERE OS.LongContrato = '" & x & "' "
myRecordSet.Open MySQL
If Not (myRecordSet.BOF And myRecordSet.EOF) Then
answer = MsgBox(" El contrato que esta tratando de registrar ya existe", vbOKOnly)
Else
answer = MsgBox(" no hay nada", vbOKOnly)
End If
MySQL = ""
myRecordSet.Close
El error que me da es que "NO COINCIDEN LOS TIPOS DE DATOS EN LA EXPRESIÓN DE CRITERIOS" en la línea que marque en negritas....ayuda por favoooooor!!!
