Spirit
07-24-2002, 01:14 PM
Hi everybody,
i already searched the forum, but the other threads did not help me.
I want to add a new record, but everytime i get this:
Microsoft JET Database Engine Fehler '80040e09'
Updating not possible; Database or Object is read only.
I tried everything, but i couldnt do it.
Here is my code:
set conn = Server.CreateObject("ADODB.connection")
sConnection = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=c:\Server\web\ExDaten\db\Offline.mdb;" & _
"Persist Security Info=False"
conn.Open(sConnection)
strSQL = "SELECT * FROM member"
Set dbe = Server.CreateObject("ADODB.Recordset")
dbe.Open strSQL, Conn,1,3
dbe.AddNew
dbe("Nick") = SUNick
dbe("Email") = SUEMail
dbe("Pass") = SUPass
dbe("Name") = SUName
dbe("SurName") = SUSurName
dbe("Age") = SUAge
dbe("EDate") = Date
dbe.Update
dbe.Close
Hope you guys know, what i did wrong!
Thanks
Ben
i already searched the forum, but the other threads did not help me.
I want to add a new record, but everytime i get this:
Microsoft JET Database Engine Fehler '80040e09'
Updating not possible; Database or Object is read only.
I tried everything, but i couldnt do it.
Here is my code:
set conn = Server.CreateObject("ADODB.connection")
sConnection = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=c:\Server\web\ExDaten\db\Offline.mdb;" & _
"Persist Security Info=False"
conn.Open(sConnection)
strSQL = "SELECT * FROM member"
Set dbe = Server.CreateObject("ADODB.Recordset")
dbe.Open strSQL, Conn,1,3
dbe.AddNew
dbe("Nick") = SUNick
dbe("Email") = SUEMail
dbe("Pass") = SUPass
dbe("Name") = SUName
dbe("SurName") = SUSurName
dbe("Age") = SUAge
dbe("EDate") = Date
dbe.Update
dbe.Close
Hope you guys know, what i did wrong!
Thanks
Ben