asp error message  | | |
March 6th, 2002, 05:24 PM
|
#1 (permalink)
| | Member
Join Date: Mar 2002 Location: AB, Canada
Posts: 150
|
Hello all!
I'm brand new to asp and am trying to do a simple database entry script...
I haven't even gotten as far as writing my own script as sample scripts I'm trying won't even work! grrr....
anyway... my problem is this...
I'm using MS;s PWS and when I hit the submit button I get an error saying:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access Driver] Cannot update. Database or object is read-only.
/webpub/addrecordado2.asp, line 18
I've checked through the properties... and non of the files are read only... help?
Thanks in advance!  |
| |
March 6th, 2002, 05:30 PM
|
#2 (permalink)
| | Member
Join Date: Mar 2002 Location: AB, Canada
Posts: 150
|
ooh... one more thing... is asp the best way to do this? I eventually want to be able to have people insert thier info and have people be able to search the database. |
| |
March 6th, 2002, 06:31 PM
|
#3 (permalink)
| | Not Really a Member
Join Date: Oct 2001
Posts: 25,398
|
ASP is an easy way to achieve this.
How are you connecting to the DB, is it through an ODBC System DSN, File DSN ... or just using ADO connection?
I've seen that error before, but can't remember what it was that was wrong... quite irritating though I know that.
__________________
Helicopters don't fly; they vibrate so much and make so much noise that the earth rejects them.
|
| |
March 6th, 2002, 06:40 PM
|
#4 (permalink)
| | Member
Join Date: Mar 2002 Location: AB, Canada
Posts: 150
|
there is another file with it that is conn.inc
I imagine it is using that... within that file is simply this:
<% strconn = "DRIVER=Microsoft Access Driver (*.mdb);DBQ=" & Server.MapPath("adoandsqladd_update.mdb") %>
I'm guessing that is just an ADO connection... but I honestly don't know even that much.
hehe, I'm trying not to sound to clueless... as it all seems relatively straight forward, and yet does not seem to want to work  |
| |
March 6th, 2002, 07:34 PM
|
#5 (permalink)
| | Member
Join Date: Mar 2002 Location: AB, Canada
Posts: 150
|
okay...
so now what i've done is place the line from conn.inc
<% strconn = "DRIVER=Microsoft Access Driver (*.mdb);DBQ=" & Server.MapPath("adoandsqladd_update.mdb") %>
right within my asp response page and tried to do away with the .inc file... to see if it would help... it didn't...
it gives me this error
Variable is undefined: 'strconn'
I've tried muddling, but to no avail.  |
| |
March 6th, 2002, 07:43 PM
|
#6 (permalink)
| | Not Really a Member
Join Date: Oct 2001
Posts: 25,398
|
You'll have to define strconn if I'm not mistaken.. I'm more familiar with vbscript/ vb then asp (nearly the same thing, but its in the html)
try putting
<%
Dim strConn = "DRIVER=Microsoft Access Driver (*.mdb);DBQ=" & Server.MapPath("C:\pathto database\adoandsqladd_update.mdb")
%> |
| |
March 6th, 2002, 07:54 PM
|
#7 (permalink)
| | Member
Join Date: Mar 2002 Location: AB, Canada
Posts: 150
|
I really appreciate the help...thanks again
I tried it and it gave me this...
Microsoft VBScript compilation error '800a0401'
Expected end of statement
/webpub/addrecordado2.asp, line 5
Dim strConn =
----------------^ |
| |
March 6th, 2002, 08:24 PM
|
#8 (permalink)
| | Member
Join Date: Mar 2002 Location: AB, Canada
Posts: 150
|
woohoo!
Okay... I tried a different example... and had success... so... thanks... I'm giving up on this one!
sweet relieve from frustration!!!
Thanks again! |
| |
March 6th, 2002, 08:29 PM
|
#9 (permalink)
| | Not Really a Member
Join Date: Oct 2001
Posts: 25,398
|
<%
Dim strConn
strConn = "DRIVER=Microsoft Access Driver (*.mdb);DBQ=" & Server.MapPath("C:\pathto database\adoandsqladd_update.mdb")
%>
Would probably have worked  thats what I meant to do in the first place but a typo 
Forgot you can't do that in asp
Congrats, you're on you're way |
| |
March 7th, 2002, 12:15 PM
|
#10 (permalink)
| | Member
Join Date: Mar 2002 Location: AB, Canada
Posts: 150
|
thanks vass,
tried it just to see... still no go... let's trash it  shall we? |
| | | Thread Tools | Search this Thread | | | | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Most Active Discussions | | | | | Recent Discussions  | | | | | |