codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Code Problem - using a counter in a recordset  Archive Import (Mie) at 01:19 on Sunday, April 13, 2003
 

Dim Conn, RS

Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.mappath("../database/student.mdb")
set rs = server.createobject("adodb.recordset")


temp ="select Counter from logon WHERE Matrix = `" & (Matrix) & "`"
rs.open temp,conn
sql12="update logon set Counter=`::1::` where Matrix=`"&(Matrix)&"`"
conn.execute(sql12)
Error Type:
Microsoft JET Database Engine (0x80040E14)
Syntax error in UPDATE statement.
/tutor/include/votecount.asp, line 17





  Code Problem - using a counter in a recordset  Archive Import (goeff) at 05:36 on Sunday, April 13, 2003
 

Presumably your counter field is a data type integer so you should pass it a number without any quotes - what are those :: doing either side of the number anyway??








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
•  onChange issue
•  Remote program execution using cgi-perl
•  Chat application
•  How to send multiple perameters in SOAP request.
•  Java code for Insert picture on the table in spreadsheet
•  Re: Problem with concatenation
•  how to genrates the crystal report by sending a id at runtime
•  help me
•  pls help me with this..


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2007