When I call the following dll from my ASP page. I get error message
“Microsoft JET Database Engine error '80040e09'
Cannot update. Database or object is read-only. “
*******************
Public Function setVisitor(ByVal userName As Variant, ByVal password As Variant) As Variant
Dim adoConnection As ADODB.Connection
Dim adoRecordset As ADODB.Recordset
Dim connectString As String
connectString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=C:\ clients.mdb"
Set adoConnection = New ADODB.Connection
Set adoRecordset = New ADODB.Recordset
adoConnection.Open connectString
adoRecordset.Open "SELECT * FROM SiteVisitors", adoConnection, _
adOpenDynamic, adLockOptimistic
With adoRecordset
.AddNew
!previousVisit = Now()
.Update
End With
'-- Return a unique ID so we can set the cookie
setVisitor = adoRecordset!cookieID
'-- Close the recordset and the connection
adoRecordset.Close
adoConnection.Close
End Function
******************
When I test this function as a stand alone, it operates perfectly, so it must be something with configuring permissions on my website. I have gone to Microsoft Management Console (MMC) but I don’t see anywhere to give read-write permissions, if this is what I need to do.
Thanks for any help.
Charlix
“Microsoft JET Database Engine error '80040e09'
Cannot update. Database or object is read-only. “
*******************
Public Function setVisitor(ByVal userName As Variant, ByVal password As Variant) As Variant
Dim adoConnection As ADODB.Connection
Dim adoRecordset As ADODB.Recordset
Dim connectString As String
connectString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=C:\ clients.mdb"
Set adoConnection = New ADODB.Connection
Set adoRecordset = New ADODB.Recordset
adoConnection.Open connectString
adoRecordset.Open "SELECT * FROM SiteVisitors", adoConnection, _
adOpenDynamic, adLockOptimistic
With adoRecordset
.AddNew
!previousVisit = Now()
.Update
End With
'-- Return a unique ID so we can set the cookie
setVisitor = adoRecordset!cookieID
'-- Close the recordset and the connection
adoRecordset.Close
adoConnection.Close
End Function
******************
When I test this function as a stand alone, it operates perfectly, so it must be something with configuring permissions on my website. I have gone to Microsoft Management Console (MMC) but I don’t see anywhere to give read-write permissions, if this is what I need to do.
Thanks for any help.
Charlix