J
Jarryd
Hi,
I have the following append query that inserts a record based on some
variables, two those being dates. It works perfectly apart from one thing:
it swaps the days with the months when inserting the date values. I have
message boxed the values out and they are being read correctly, it only
muddles them up when it inserts them into the DB. However, it doesn't swap
them if it the days are greater than 12. For example, 15/10/2005 inserts
fine, but 12/10/2005 inserts as 10/12/2005:
qrySplit = "INSERT INTO Order_Details ( Orders_Link, Quantity, Weight,
Width, Length, [X-Works_Del_Date], [Del_Date], SAP, IN_Completed ) VALUES("
& ordLink & "," & Quantity & "," & Weight & ", " & Wdth_U & ", " & Len_U &
", #" & XW_U & "#, #" & D_Dt_U & "#, '" & S_U & "', " & In_comp & ");"
Any ideas as to what could be gonig wrong?
TIA,
Jarryd
I have the following append query that inserts a record based on some
variables, two those being dates. It works perfectly apart from one thing:
it swaps the days with the months when inserting the date values. I have
message boxed the values out and they are being read correctly, it only
muddles them up when it inserts them into the DB. However, it doesn't swap
them if it the days are greater than 12. For example, 15/10/2005 inserts
fine, but 12/10/2005 inserts as 10/12/2005:
qrySplit = "INSERT INTO Order_Details ( Orders_Link, Quantity, Weight,
Width, Length, [X-Works_Del_Date], [Del_Date], SAP, IN_Completed ) VALUES("
& ordLink & "," & Quantity & "," & Weight & ", " & Wdth_U & ", " & Len_U &
", #" & XW_U & "#, #" & D_Dt_U & "#, '" & S_U & "', " & In_comp & ");"
Any ideas as to what could be gonig wrong?
TIA,
Jarryd