
como hacer if con dos campos
Publicado por jose maria (89 intervenciones) el 03/06/2013 12:01:05
hola, quiero saber como poder hacer un if con dos campos en el codigo de access, pense en este, pero no funciona:
Private Sub Form_Open
.......
If age >= 45 Then
If Me.Marco99.Value = 2 Then
MsgBox "hola", vbInformation
End If
End If
End Sub
tambien probe con
Private Sub Form_Open
.......
If age >= 45 and If Me.Marco99.Value = 2 Then
MsgBox "Quillo que viejo ere, con " & age & " años" & " y sin currar, ya te vale picha", vbInformation
End If
End Sub
¿que me falla?
gracias
Private Sub Form_Open
.......
If age >= 45 Then
If Me.Marco99.Value = 2 Then
MsgBox "hola", vbInformation
End If
End If
End Sub
tambien probe con
Private Sub Form_Open
.......
If age >= 45 and If Me.Marco99.Value = 2 Then
MsgBox "Quillo que viejo ere, con " & age & " años" & " y sin currar, ya te vale picha", vbInformation
End If
End Sub
¿que me falla?
gracias
Valora esta pregunta


0