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!

ADO Update fails with Sybase System 11

Status
Not open for further replies.

vjee

Programmer
Jan 16, 2002
23
BE
Hi,

we are trying to update a table using ADO (2.6). We have a Sybase System 11 database.
The weird thing is, the rs.update works fine UNTIL we try to update a varchar-field in the table.
ex.
with rs
.fields("Status") = 5
.fields("AuditDate") = Now
.update
end with

This works!

if I include for example:
.fields("AuditAction") = "M"

the update fails with an E-FAIL error.
Another weird thing is that it DOES work if we add a new record to the table.
Tried it with other tables, other fields,.... all the same.

Anybody an idea?

TIA
Vjee
 
Try
.fields("AuditAction") = "'M'"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top