What is causing Microsoft Access ODBC Error - "Syntax error in update statement"?

I am not a programmer. I am using Dreamweaver to update (edit) a dynamic table on my website.
I cannot seem to figure out what is wrong with the code. Please see the attached Word document for the error message and the code that Dreamweaver filled in for me.  I hi-lited in yellow the line of code that the error message  refers to.

Any help in resolving this issue would be greatly appreciated.

Thank you...
Rick
ERROR-MESSAGE.doc
ES-ComponentsAsked:
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.

Randy PooleCommented:
Add a Response.Write(MM_editQuery);
before the following line:
    MM_editCmd.Execute();

and let me know what the output is
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
ES-ComponentsAuthor Commented:
Made the change - Got another error message. See attached word document for error message.
Hi-lited in blue is what it does not like.

Thank you...
Rick
ERROR-MESSAGE.doc
0
Randy PooleCommented:
This error is normally caused by not having a valid selection in the drop down list, which would be prospect list in this error.
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

ES-ComponentsAuthor Commented:
I do not have any drop down lists. The name of my table that I am updating is called "ProspectList."
To update the table the client selects the line on the table to update and clicks the hyperlink.
The hyperlink passes the LineId to the update table page. (The code you are looking at).
Once the client types in the change on this page, they hit the submit button which is supposed to update the Access Table and then redirect the client back to the beginning page to see that the change was made.

Not sure if this will help you.

let me know.
thank you...
Rick
0
ES-ComponentsAuthor Commented:
Thank you very much for your help.
I figured out the second error. (The url address was incorrect) I made the change and the web page works fine.
Again thank you for the one line of code.

Rick
0
Randy PooleCommented:
No problem
0
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
Query Syntax

From novice to tech pro — start learning today.