D
DrAvi via AccessMonster.com
Hello,
I'm trying to update date value in "MachineClockDate" column in SQL table
"TblRules" , and the following tries returns the following errors:
strSQL = "UPDATE TblRules SET TblRules.MachineClockDate = # " & 24/01/2010 &
" # ;"
Error message: incorrect syntax near '#"
strSQL = "UPDATE TblRules SET TblRules.MachineClockDate = ' " & 24/01/2010 &
" ' ;"
Error message: the conversion of a char data type to datetime date type
resulted in an out-of-range datetime value
strSQL = "UPDATE TblRules SET TblRules.MachineClockDate = " & 24/01/2010 & "
;"
No error message, but the value stored is "03/01/1900"….
strSQL = "UPDATE TblRules SET TblRules.MachineClockDate = " & 40202 & " ;"
Where 40202 represent the days count value. The value stored has shift of two
days, 26/01/2010 (why is that)?
How should I write the string, using Date() to update the SQL column value ?
Thank you,
DrAvi
I'm trying to update date value in "MachineClockDate" column in SQL table
"TblRules" , and the following tries returns the following errors:
strSQL = "UPDATE TblRules SET TblRules.MachineClockDate = # " & 24/01/2010 &
" # ;"
Error message: incorrect syntax near '#"
strSQL = "UPDATE TblRules SET TblRules.MachineClockDate = ' " & 24/01/2010 &
" ' ;"
Error message: the conversion of a char data type to datetime date type
resulted in an out-of-range datetime value
strSQL = "UPDATE TblRules SET TblRules.MachineClockDate = " & 24/01/2010 & "
;"
No error message, but the value stored is "03/01/1900"….
strSQL = "UPDATE TblRules SET TblRules.MachineClockDate = " & 40202 & " ;"
Where 40202 represent the days count value. The value stored has shift of two
days, 26/01/2010 (why is that)?
How should I write the string, using Date() to update the SQL column value ?
Thank you,
DrAvi