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!

Value not writing to DB

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??

 
what db is it? For access:
Code:
sqlString = "UPDATE Orders " &_
   "SET Fulfilled=" & orderStatus & ", " &_
   "ShipDate=#" & NOW() & "# " &_
   "WHERE OrderID=" & orderID
 
ShipDate=NOW() "

that line is an error has to be "ShipDate =" & NOW() & "

 
I assumed that the SHIPDATE is a date field. If it is a string then replace # with '
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top