UPDATE information in access problem

This is a discussion on "UPDATE information in access problem" within the Classic ASP section. This forum, and the thread "UPDATE information in access problem are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jan 30th, 2006, 20:30
New Member
Join Date: Jan 2006
Location: Belgium
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
UPDATE information in access problem

Code: Select all
'Check if current password is correct
 If currentpassword = password Then
  set passconn = server.CreateObject ("ADODB.Connection")  
  passconn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & server.MapPath ("accounts.mdb")
  passSQL = "UPDATE userlist SET password = '" & newcodedpassword & "' where checkname='"& checkname &"'"
    passconn.Execute(passSQL)
    set passSQL=nothing
   'Delete the cookies and sessions
    Response.Cookies("rememberbusiness").Expires = date() -1
  Session("username") = ""
  Session("loggedin") = false
When I run this, I get an error that this line is incorrect
passconn.Execute(passSQL)
can someone help me please?
Reply With Quote

  #2 (permalink)  
Old Jan 31st, 2006, 13:09
Reputable Member
Join Date: Sep 2003
Location: USA
Posts: 112
Thanks: 0
Thanked 0 Times in 0 Posts
Re: UPDATE information in access problem

What's the error? Likely it's a problem with your SQL statement although I don't see anything obvious.
Reply With Quote
Reply

Tags
update, information, access, problem

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Image UPDATE problem kidreapertronV Databases 0 Jan 31st, 2008 17:17
I need to access the windows NT 4.0 user password information adn reset it in my App sitaramig Introduce Yourself 1 May 23rd, 2007 10:22
Access date field - update as record is updated matrixbrawl Databases 0 Jan 10th, 2007 09:58
Update Problem ringo26 Web Page Design 6 Nov 17th, 2006 06:07
Update autonumber field in Access Database redkyna Databases 3 Aug 20th, 2004 09:18


All times are GMT. The time now is 15:40.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43