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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to "Update" a Date field 2

Status
Not open for further replies.

byrne1

Programmer
Joined
Aug 7, 2001
Messages
415
Location
US
I try to run an update at the control center to update a date field in a table using the sql statement "update custrel set dtndateofbirth=2/8/67 where customernum=80194565" but I gat the following error message:

"Incompatible types in column assignment list"

I've tried different formats for the date field including "yyyy/mm/dd", "yyyy-mm-dd", "mm-dd-yy" but none have worked.

What am I doing wrong?
 
You should use:
update custrel set dtndateofbirth='1967-02-08' where customernum=80194565"
THe format is:
'yyyy-mm-dd'
The Single quotes are critical.

Mirtheil
Certified Pervasive Developer
Certified Pervasive Technician
 
Yep. That did the trick. Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top