Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Databases
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old October 6th, 2003, 12:32 PM
Authorized User
 
Join Date: Sep 2003
Location: Beaumont, TX, USA.
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


Reply With Quote
  #2 (permalink)  
Old October 6th, 2003, 12:43 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Copenhagen, , Denmark.
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.

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Inserting values from other tables TheAndruu SQL Language 7 May 27th, 2007 11: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 04: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 06:15 PM



All times are GMT -4. The time now is 05:40 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.