I'm having a problem inserting a record if the date field empty, It only works if there is a Date in the Me.TxtDate, otherwise I get an Error.
I tried this but, it doesn't work.
Thanks
DS
CurrentDb.Execute "INSERT INTO Table1 (ID,DateF) " & _
"VALUES(" & Forms!Form1!TxtID & ", " & _
"" & Nz("#" & Me.TxtDate & "#", "Null") & ")
I tried this but, it doesn't work.
Thanks
DS
CurrentDb.Execute "INSERT INTO Table1 (ID,DateF) " & _
"VALUES(" & Forms!Form1!TxtID & ", " & _
"" & Nz("#" & Me.TxtDate & "#", "Null") & ")