G
Guest
I have the following code in the after update event of form
[F_FicheContrat] :
If Me!DateFin < Date = False Then
CurrentDb.Execute "UPDATE T_Interimaires SET " _
& "Statut = 'Interimaire'," _
& "TypeContrat = 'EF'," _
& "Datedispo = " & Me!DateFin & " WHERE IDInterimaire = " _
& Me!IDInterimaire, dbFailOnError
ElseIf Me!DateFin < Date = True Then
CurrentDb.Execute "UPDATE T_Interimaires SET " _
& "Statut = 'Candidat'," _
& "TypeContrat = 'Aucun'," _
& "DateDispo = '' WHERE IDInterimaire = " _
& Me!IDInterimaire, dbFailOnError
End If
Everything works fine except that the " & Me!DateFin & " keeps returning
"30-Déc-1899". I think it's a system date problem but I don't know how to
fix it.
Any help would be greatly appreciated !
Thanks in advance
Access 2002
[F_FicheContrat] :
If Me!DateFin < Date = False Then
CurrentDb.Execute "UPDATE T_Interimaires SET " _
& "Statut = 'Interimaire'," _
& "TypeContrat = 'EF'," _
& "Datedispo = " & Me!DateFin & " WHERE IDInterimaire = " _
& Me!IDInterimaire, dbFailOnError
ElseIf Me!DateFin < Date = True Then
CurrentDb.Execute "UPDATE T_Interimaires SET " _
& "Statut = 'Candidat'," _
& "TypeContrat = 'Aucun'," _
& "DateDispo = '' WHERE IDInterimaire = " _
& Me!IDInterimaire, dbFailOnError
End If
Everything works fine except that the " & Me!DateFin & " keeps returning
"30-Déc-1899". I think it's a system date problem but I don't know how to
fix it.
Any help would be greatly appreciated !
Thanks in advance
Access 2002