Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Field doesn't write

Status
Not open for further replies.

catalystunderx

Programmer
May 17, 2003
13
GB
sqlString = "UPDATE Orders " &_
"SET Fulfilled=" & orderStatus & ", " &_
"ShipDate=NOW() " &_
"WHERE OrderID=" & orderID.............

the statement goes through fine and the fulfilled field writes fine but the shipdate (set as date format) field doesn't write??
 
I would have thought it should (either that, or give a data type mismatch error), you could perhaps try:

[tt]sqlString = "UPDATE Orders " & _
"SET Fulfilled=" & orderStatus & ", " & _
"ShipDate=#" & format(now(),"yyyy-mm-dd") & _
"# WHERE OrderID=" & orderID.............
[/tt]

i e concatinating the date value into the string, here using ansi date format which is supposed to work on all databases.

Roy-Vidar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top