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!

SQL Update error using Autonumber 1

Status
Not open for further replies.

ukwebsite

Programmer
Joined
Dec 9, 2000
Messages
82
Location
GB

Please help

Im trying to update an Access database using the following script

UPDATE items SET image = 'none' WHERE id = '1'

image is of type Text id is of type Autonumber.

I get the message

Data type mismatch in criteria expression. X-)

I even get this message using the SQL query thing in Access. If I change the ID to text instead of Autonumber it works fine.

Please help
Matthew Wilde
matthew@ukwebsite.com
 
get rid of the single quotes around 1

UPDATE items SET image = 'none' WHERE id = 1 ray
rheindl@bju.edu

 
Cheers works perfectly.

Thanks a lot
Matthew Wilde
matthew@ukwebsite.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top