Sensibilium
Programmer
I'm trying to create a DSN-less connection to my Access Database as below:
[tt]Set oConn=Server.CreateObject("ADODB.connection"
Set rsProdType=Server.CreateObject("ADODB.Recordset"
strSource = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=C:\Inetpub\ UserID=User"
oConn.ConnectionString = strSource
oConn.Open
Set rsProdType=Server.CreateObject("ADODB.Recordset"
rsProdType.Open "SELECT * FROM tblProductTypes", oConn[/tt]
An error occurs when it gets to the emboldened line above, this is the error:
[tt]Microsoft OLE DB Provider for ODBC Drivers error '80040e09'
[Microsoft][ODBC Microsoft Access Driver] Record(s) cannot be read; no read permission on 'tblProductTypes'. [/tt]
There is no password for 'User', and all the correct user permissions are set up within the database.
Any ideas?
[tt]Set oConn=Server.CreateObject("ADODB.connection"
Set rsProdType=Server.CreateObject("ADODB.Recordset"
strSource = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=C:\Inetpub\ UserID=User"
oConn.ConnectionString = strSource
oConn.Open
Set rsProdType=Server.CreateObject("ADODB.Recordset"
rsProdType.Open "SELECT * FROM tblProductTypes", oConn[/tt]
An error occurs when it gets to the emboldened line above, this is the error:
[tt]Microsoft OLE DB Provider for ODBC Drivers error '80040e09'
[Microsoft][ODBC Microsoft Access Driver] Record(s) cannot be read; no read permission on 'tblProductTypes'. [/tt]
There is no password for 'User', and all the correct user permissions are set up within the database.
Any ideas?