Hi there,
I have an update query taking a date from a smalldatetime field which I want to put into a datetime field.
I've used the code below:-
DoCmd.RunSQL "update [WorkPackages1]" _
& " set [Planned Start Date] = (" & Format(rs.Fields(0), "dd-mm-yyyy") & ")" & "where [WPID] = 2878"
But it seems only to take the first 2 digits (dd) and enter them into the table.
Can anyone hep please?
I have an update query taking a date from a smalldatetime field which I want to put into a datetime field.
I've used the code below:-
DoCmd.RunSQL "update [WorkPackages1]" _
& " set [Planned Start Date] = (" & Format(rs.Fields(0), "dd-mm-yyyy") & ")" & "where [WPID] = 2878"
But it seems only to take the first 2 digits (dd) and enter them into the table.
Can anyone hep please?