Home | Advertising Info4 USERS CURRENTLY ONLINE   
PowerASP
   Site Search Contact Us Monday, April 29, 2024  

  Active InfoActive Info  Display List of Info MembersMemberlist  Search The InfoSearch  HelpHelp
  RegisterRegister  LoginLogin
Classic ASP - Database Issues
 PowerASP Code Help Area : Classic ASP - Database Issues
Subject Info: UPDATE problem (noob,newbie) A d d  -  P o s tAdd P o s t
Author
Message << Prev Info | Next Info >>
Djadja Zloj
Newbie
Newbie
Avatar

Joined: June/03/2005
Location: Sweden
Online Status: Offline
Info: 5
Added: May/10/2006 at 4:59am | IP Logged Quote Djadja Zloj

I've got the following problem.

I get an error at the MyConn.execute(SQL) row in the following script.

Set MyConn = Server.CreateObject("ADODB.Connection")
strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & dbPath & ";"
MyConn.open strConn

dim ID

ID = request.querystring("ID")
dagtxt = request.querystring("dagtxt")

SQL="UPDATE data SET dagbok = '" & request.querystring("dagtxt") & "' WHERE count='" & ID & "'"

 MyConn.Execute(SQL)

I've checked the Value of SQL and it is: UPDATE data SET dagbok = 'test test' WHERE count='1'

 

Would be very greatful for some help. D.Z.



__________________
BR D.Z.
Back to Top View Djadja Zloj's Profile Search for other info by Djadja Zloj
 
firas_TheGeek
Newbie
Newbie
Avatar

Joined: May/27/2006
Location: Oman
Online Status: Offline
Info: 28
Added: May/27/2006 at 7:50am | IP Logged Quote firas_TheGeek

the problem isnt with the sql, it is in the connection settings

the code must be like this

 

 MyConn.Execute(SQL).LockType = 3

 

hope this helps

tell me what happens with u

 

Best Regards



__________________
Firas S Assaad (TheGeek)
firas489@gmail.com
0096892166434
http://firas-thegeek.blogspot.com
Back to Top View firas_TheGeek's Profile Search for other info by firas_TheGeek Visit firas_TheGeek's Homepage
 

If you wish to make a comment to this info you must first login
If you are not already registered you must first register

  A d d  -  P o s tAdd P o s t
Printable version Printable version

Info Jump
You cannot add new info in this area
You cannot add to info in this area
You cannot delete your info in this area
You cannot edit your info in this area
You cannot create polls in this area
You cannot vote in polls in this area

   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright © 1998 - 2024 PowerASP.com and Christopher J. Williams
Banner ads ,other site logos, etc are copyright of their respective companies.
STATS Unless otherwise noted - All Rights Reserved.

Active Server Pages asp source code database MS SQL MS Access .mdb adovbs.inc cookies calendar codes sql commands scripts asp programming tutorials iis web server components CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspprotect.com, www.cjwsoft.com,www.aspclassifieds.com,www.aspphotogallery.com