Reply
server error updating access database.. WHY?
Old 08-11-2005, 11:14 AM server error updating access database.. WHY?
numbenator's Avatar
Ultra Talker

Posts: 411
Location: London
Hi all,

I am getting an error on the below :

Im a little confused as to why though. If i remove the line
rs.Fields("studentName") = request.form("studentName")
& rs.Update
then i have no error. Could someone please give me some direction.

Code:
 
<% response.Expires=0 %>
 
 
 
<!--#include file="SSI/_conn.asp"-->

<%   Dim rs, updateSQL
     Set rs = Server.CreateObject("ADODB.RecordSet")
	    updateSQL = "SELECT * FROM comments"	    
	    rs.open updateSQL, Conn
		rs.MoveFirst
			rs.Fields("studentName")  = request.form("studentName")
		rs.Update
		rs.Close   
%>
__________________
www.mastech-solutions.com

Last edited by numbenator : 08-11-2005 at 11:29 AM.
numbenator is offline
Reply With Quote
View Public Profile Visit numbenator's homepage!
 
When You Register, These Ads Go Away!
Old 08-11-2005, 11:54 AM
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
What exactly are you trying to do? What error message are you getting?
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"
Inoxia Pyrotechnics Supplies | Surrey Angels Cheerleading Squad
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 08-11-2005, 11:56 AM
numbenator's Avatar
Ultra Talker

Posts: 411
Location: London
I have a form from where i retrieve info.
I then check it's validity then go a a save page.
I simply wish to update the form to the database.

http://www.mastech-solutions.com/Stu...ce/collect.asp


Im not that good at asp so have a standard browser server error. Not sure how to put a proper error page in
cheers.
__________________
www.mastech-solutions.com
numbenator is offline
Reply With Quote
View Public Profile Visit numbenator's homepage!
 
Old 08-11-2005, 02:26 PM
Anacrusis's Avatar
Defies a Status

Posts: 2,099
Name: Adam
Location: Colchester CT
Make sure your database file and the folder it is in both have write permissions on the server.
Anacrusis is offline
Reply With Quote
View Public Profile Visit Anacrusis's homepage!
 
Old 08-11-2005, 02:53 PM
chrishirst's Avatar
Super Moderator

Posts: 13,626
Location: Blackpool. UK
You are not using an updateable locktype. The default is read only.

Code:
rs.open updateSQL, Conn, adOpenkeyset, adLockOptimistic
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 08-11-2005, 03:02 PM
numbenator's Avatar
Ultra Talker

Posts: 411
Location: London
ok. thats helped together with adding permissions to the directory. cheers
__________________
www.mastech-solutions.com
numbenator is offline
Reply With Quote
View Public Profile Visit numbenator's homepage!
 
Old 08-12-2005, 03:48 AM
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Quote:
Im not that good at asp so have a standard browser server error. Not sure how to put a proper error page in
It could be the way your browser is set up. Go to Tools - Options, go to the Advanced tab, and make sure 'Show Friendly HTTP Error Messages' is not checked.
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"
Inoxia Pyrotechnics Supplies | Surrey Angels Cheerleading Squad
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 08-12-2005, 04:57 AM
numbenator's Avatar
Ultra Talker

Posts: 411
Location: London
yeah have that flag set ok. Im actually reading up on proper error catching now. Figured that would
help lol.
cheers for allyour help. Always appreciated.
Steve
__________________
www.mastech-solutions.com
numbenator is offline
Reply With Quote
View Public Profile Visit numbenator's homepage!
 
Reply     « Reply to server error updating access database.. WHY?
 

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

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




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.18491 seconds with 12 queries