Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 24th, 2006, 03:57 AM
Registered User
 
Join Date: Nov 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default get Msysobject in Access 2000

Dear All,

if we want to see msysobject in Access 2003, we can follow this step, From the Pull Down menu select
1. Tools/Options
2. Select "View" tab and make System Objects checkbox selected
3. OK
4. Go Back to Pull Down Menu and Selectÿ
Tools/Security/User and Groups permissions
5. On Permissions TAB choose Table object type from the Combobox
6. Select MSysObjects table and give it permissions to read data and read design


the question is ... i want update the "Option" "tool" with visual basic code in application...? (VB.net)
this is my code in vb.net
Code:
Private Sub UpdateCboTable(ByVal sFileMDB As String)

        Me.CboTable.Items.Clear()

        strConn ="Provider=Microsoft.jet.oledb.4.0; data source= " & sFileMDB 
        cn = New OleDb.OleDbConnection(strConn)
        cn.Open()

        lSQL = "SELECT Name FROM  MSysObjects " & _
                " WHERE  (Left([Name],4) <> 'MSys')" & _
                " AND ([Type] In (1, 4, 6)) ORDER BY Name"

        cmd = cn.CreateCommand
        cmd.CommandText = lSQL
        Reader = cmd.ExecuteReader()

        Do While Reader.Read()
            Me.CboTable.Items.Add(Reader.GetString(0))
        Loop
        Reader.Close()
        cn = Nothing

    End Sub
cos .. if i'm not check this option, then message error " Records cannot be read; no read permission on Msysobject" is rise

well... i m really appreciate for your help
thx 4 ur attention
-junis-






Similar Threads
Thread Thread Starter Forum Replies Last Post
looking for access 2000 to sql server 2000 sql/que method SQL Server 2000 0 July 7th, 2005 12:46 PM
SQL SERVER 2000 AND ACCESS 2000 ckentebe SQL Server 2000 3 June 17th, 2004 08:50 PM
ADE file in Access 2000 <---> Access XP ginoitalo Access 3 April 14th, 2004 09:06 PM
Migrating from access 97 to access 2000 Khalifeh Access 12 October 2nd, 2003 02:54 PM
Access XP VBA compatibility issues w/ Access 2000 bourgeois02 Access VBA 1 August 19th, 2003 04:14 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.