Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 6th, 2003, 11:32 AM
Authorized User
 
Join Date: Sep 2003
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default inserting values error - Please help

I am getting the following error
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'

[Microsoft][ODBC Microsoft Access Driver] Missing semicolon (;) at end of SQL statement.

I am trying to insert values into a database. the user submits a form for user id and password and the code enters the password for matching user id
mySQL = "insert into password1 (password) values"
   mySQL = mySQL& "('" & password & "')"
   mySQL = mySQL& " where uid = '" & uid & "'"


   Set objRS2 = objConn.Execute (mySQL)

Please help


 
Old October 6th, 2003, 11:43 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 440
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The error message says that you are missing a semicolon at the end of the statement, right? So try this...
Code:
mySQL = "insert into password1 (password) values"
mySQL = mySQL& "('" & password & "')"
mySQL = mySQL&  " where uid = '" & uid & "';"
Perhaps...!?

Hope it helps

Jacob.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Inserting values from other tables TheAndruu SQL Language 7 May 27th, 2007 10:47 AM
inserting values sspr SQL Server 2000 2 February 15th, 2006 03:20 PM
Error while inserting values into database table pothireddy_s SQL Server 2000 2 August 3rd, 2005 03:01 AM
inserting values into a database RPG SEARCH ASP.NET 1.0 and 1.1 Basics 3 February 5th, 2005 07:56 PM
Regarding Inserting values to ntext field Hari_Word ADO.NET 1 August 31st, 2004 05:15 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.