Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error msg when trying to list MSysObjects 1

Status
Not open for further replies.

barny2006

MIS
Mar 30, 2006
521
US
hi,
i'm getting this error msg:
Record(s) cannot be read; no read permission on 'MsysObjects'
when i'm trying to list table names with this code:
Code:
commandstring = "SELECT MSysObjects.Name FROM MsysObjects WHERE (Left$([Name],3)=" & chr(39) & "Feb" & chr(39) & ");"  
objRecordSet.Open commandstring, objConnection, adOpenStatic, adLockOptimistic
any ideas why?
 
Silly me,<br><br>I hadn't set read permissions on the msysobjects table.<br><br>Select Tools-Options-View-Show-System objects, Click OK<br>(this makes the system object tables visible)<br><br>Select Tools-Security-User and group Permissions<br>Select MSysObjects from object names<br>Add 'Read Design' and Read Permissions<br><br>My code worked just fine after that.
 
thanks so much, mrmovie.
that did it. i gotta keep that in mind.
thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top