hi,
for some reason, whenever i am updating one of my records, it switches the date format from DD/MM/YYYY to MM/DD/YYYY or vice versa, depending on what it is originally. Here's the code (dbConnection has already been opened):
The thing about the date is it's not even being changed, it's just a hidden value on a form that's being passed ... not sure why it's doing this .. it's screwing up my results tables which are sorted by date .. any ideas ? thanks
kevin
for some reason, whenever i am updating one of my records, it switches the date format from DD/MM/YYYY to MM/DD/YYYY or vice versa, depending on what it is originally. Here's the code (dbConnection has already been opened):
Code:
strSQL = "UPDATE WorkOrders SET Completed=True,"
strSQL = strSQL & "DateCompleted=" & "#" & request.form("DateCompleted") & "#"
strSQL = strSQL & " WHERE ID=" & request.form("ID_Value")
Set updateWR = dbConnection.Execute(strSQL)
Set updateWR = Nothing
The thing about the date is it's not even being changed, it's just a hidden value on a form that's being passed ... not sure why it's doing this .. it's screwing up my results tables which are sorted by date .. any ideas ? thanks
kevin