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

Problem with INSERT and UPDATE

Status
Not open for further replies.

chassid

MIS
Aug 27, 2000
58
US
All,

I am trying to UPDATE and INSERT a table but this is the message that I keep getting:

Microsoft VBScript compilation error '800a0401'

Expected end of statement

/newact/members/diract/getpassword.asp, line 82

UPDATE members SET email = '" & strEmail & "' WHERE
---------------^
member_id = '" & strID & "'

I get the strID by doing this code after my select statement:
strID = objRS.Fields("member_id")

Any help will be greatly appreciated!
Daniel Do you know the Chabad Lubavitch Sheliach in your area?
He is waiting for you!
 
Is member_id numeric?

If so, then it should be:

member_id = " & strID

Or, are you sure that there is a value in strID?

Try writing it out before doing the update - ie:

Response.Write &quot;<br>strID = &quot; & strID & &quot;<br>&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top