G
Garret Hurd
I am trying to read the records an access2k database from and ADO procedure
inside another Acess2k database. I get an record(s) cannot be read: no read
permission error. I am not sure what identfies me as a user or how the other
database is determining security levels. I am not prompted for login name. I
do have several network privileges. Any guidance is suggested.
here is my code
Public Function GetDR(PartNumber As String) As String
Dim MyDb As Database
Dim RS2 As Recordset
Set MyDb = CurrentDb
Set RS2 = New ADODB.Recordset
RS2.Open "Select * From tblparts Where (partnumber = '" & PartNumber & "')",
_
"Provider=Microsoft.Jet.OLEDB.4.0;Data source=l:\database\dr database\back
end\DrDataBeta V1_be.mdb", adOpenStatic
RS.MoveLast
MsgBox RS2.RecordCount
End Function
inside another Acess2k database. I get an record(s) cannot be read: no read
permission error. I am not sure what identfies me as a user or how the other
database is determining security levels. I am not prompted for login name. I
do have several network privileges. Any guidance is suggested.
here is my code
Public Function GetDR(PartNumber As String) As String
Dim MyDb As Database
Dim RS2 As Recordset
Set MyDb = CurrentDb
Set RS2 = New ADODB.Recordset
RS2.Open "Select * From tblparts Where (partnumber = '" & PartNumber & "')",
_
"Provider=Microsoft.Jet.OLEDB.4.0;Data source=l:\database\dr database\back
end\DrDataBeta V1_be.mdb", adOpenStatic
RS.MoveLast
MsgBox RS2.RecordCount
End Function