Dar un valor NULO a un campo fecha en un Insert Into
Intento dentro de un Insert Into dar a un campo del tipo fecha que contenga un valor nulo y no consigo evitar el error.
He probado estas dos maneras de inserción y me esta dando el mismo error:
Tipo:1
CurrentDb.Execute "INSERT INTO [FACTURASIMPLIFICADASIVA] (FechaFactura1,FechaFactura2,ImporteFactura) VALUES (nz([FechaFactura1],"NULL"),#" & Format(VerFecha, "mm/dd/yyyy") & "#,'" & Importe & "')"
Tipo:2
CurrentDb.Execute "INSERT INTO [FACTURASIMPLIFICADASIVA] (FechaFactura1,FechaFactura2,ImporteFactura) VALUES (nz([FechaFactura1],""),#" & Format(VerFecha, "mm/dd/yyyy") & "#,'" & Importe & "')"
1 respuesta
Respuesta de Eduardo Pérez Fernández
1