can't update enum field in MySQL

I've have this code where I use read as a boolean field it's just a enum field with a value of ('0','1').

Set rs = objConn.execute("UPDATE pm SET read = 0 (Where id = "&strid&") ")

But it won't update I get this error

Microsoft OLE DB Provider for ODBC Drivers error '80040e09'
[TCX][MyODBC]You have an error in your SQL syntax near 'read = 0 (Where id = 1) ' at line 1

I'm rather new to mysql and is mostly used to Access so I might be doing something basic wrong.


Cheers
bjawnie
bjawnieAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AlfaNoMoreCommented:
Set rs = objConn.execute("UPDATE pm SET read = 0 WHERE id = " & strid)
0
bjawnieAuthor Commented:
I didn't help get's the same error msg.
0
AlfaNoMoreCommented:
Set rs = objConn.execute("UPDATE pm SET read = 0 WHERE id = " & strid & ";")
0
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

bjawnieAuthor Commented:
still no change :(
0
AlfaNoMoreCommented:
Clutching @ straws here:

Set rs = objConn.execute("UPDATE [pm] SET [read] = 0 WHERE [id] = " & strid & ";")
0
bjawnieAuthor Commented:
No, that didn't help either. I confused :o(
0
AlfaNoMoreCommented:
Me too!
0
bjawnieAuthor Commented:
Found the problem.

It seems that I wasn't allowed to name a field "read" after changing it it works smooth.

Now how do I cancel this questiong?

/bjawnie
0
AlfaNoMoreCommented:
Ask a new question (0 points) inside http://www.experts-exchange.com/Community_Support/. Just copy the URL of THIS page into a message.
0
bjawnieAuthor Commented:
oki thanX
0
Computer101Commented:
Points refunded and placed in PAQ

Computer101
E-E Admin
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.