Avatar billede per-olof Nybegynder
03. juni 2003 - 19:07 Der er 10 kommentarer og
1 løsning

Problem at skrive til acces

Jeg har en lille gbog på
http://elev.kvu.bornesko.dk/kvu02109/gbok/gbok.asp
Det går udmærket at læse fra den oavsett då jeg skifter indehållet direct i access filen
Men ikke at skrive til den ??

Set Conn = Server.CreateObject("ADODB.Connection")
        Conn.Open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & Server.MapPath("gbok.mdb")


        SQLStmt = "INSERT INTO gbok (namn,mail,url,meddelande) Values (" & "'" & namn & "','" & mail & "','" & url & "','" & medd & "')"
        Set RS = Conn.Execute(SQLStmt)

Stigen er F:\Users\wwwelev\kvu02109\gbog\gbog.mdb
Adressen er http://elev.kvu.bornesko/kvu02109/gbog/gbok.mdb
Avatar billede henrik13 Nybegynder
03. juni 2003 - 19:13 #1
Linked virker ikke til:
Adressen er http://elev.kvu.bornesko/kvu02109/gbog/gbok.mdb
Vh Henrik
Avatar billede per-olof Nybegynder
03. juni 2003 - 19:32 #2
Nej okej men den ligger der jeg tænkte problemet var ang viruel sti osv.
Avatar billede terry Ekspert
04. juni 2003 - 20:28 #3
the right link would help
http://elev.kvu.bornesko.dk/kvu02109/gbok/gbok.asp

What error do you get, I dont see any error!
Avatar billede per-olof Nybegynder
04. juni 2003 - 21:25 #4
The problem are that if I try to write in something from the side it don't goes in to the database. I have self write in to the database manually what you can see on the side. When I write from the side it happens nothing no error  nothing. Of course I use the right link http://elev.kvu.bornesko.dk/kvu02109/gbok/gbok.asp
Avatar billede terry Ekspert
04. juni 2003 - 21:40 #5
I think there is a small error in the dB PATH!

Conn.Open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & Server.MapPath & ("/gbok.mdb")
Avatar billede per-olof Nybegynder
04. juni 2003 - 23:08 #6
Thanks terry
I tried but i is the same. It is possible that the access is write protected on one way or another becouse I have the same problem at
http://elev.kvu.bornesko.dk/kvu02109/user/default.asp.
And there I get error
Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Microsoft Access Driver] Cannot update. Database or object is read-only.

/kvu02109/user/default.asp, line 123

I have look at the DB-access but only find how to password prtect the DB
It is small testing program I use to learn more about ASP/Acces I prepare MySql/Php
Per-Olof
Avatar billede terry Ekspert
05. juni 2003 - 10:04 #7
The database AND folder MUST be read/write.
Avatar billede per-olof Nybegynder
05. juni 2003 - 12:54 #8
I am using Frontpage is it possible to do it with Frontpage or must it be done before i upload it?
Avatar billede terry Ekspert
05. juni 2003 - 13:03 #9
I would think that the dB IS already read/write but the folder on the web server must be also and it is also possible that when you copy files to it then the files also get read only set. You may need to get in touch with your WEB provider to clear this up.
Avatar billede per-olof Nybegynder
05. juni 2003 - 13:19 #10
Ok. I have no problem with this:
http://elev.kvu.bornesko.dk/kvu02109/WebPortal/default.asp
It also use access but it's "complete" program and fix the installation self.
It is our schoolserver and it have some (several)limitations so I drop it and put it up on my own server and try again and I give you the points for your help
Per-Olof
Avatar billede terry Ekspert
05. juni 2003 - 15:48 #11
Ok, hope you get it all working :o)
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Dyk ned i databasernes verden på et af vores praksisnære Access-kurser

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester