Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB Databases Basics
|
VB Databases Basics Beginning-level VB coding questions specific to using VB with databases. Issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Databases Basics 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 December 11th, 2003, 01:14 PM
Authorized User
 
Join Date: Oct 2003
Posts: 75
Thanks: 0
Thanked 0 Times in 0 Posts
Default

In response to Sal's point from 12/3/3, he is right about a system
table in MS-Access that is used internally by Access which indicates
the different object names and types within an MDB. The name of
that table is MSysObjects.

MSys* tables (used internally by Access) and USys* tables (created by
a developer or any user) are both considered system tables and are
not normally displayed under the tables collection in the database
window. To see at least the MSys* tables in any Access database,
all you need to do is go to Tools | Options, click the "View" tab,
and click the "System objects" checkbox to true.

The object name is under the "Name" column and its type is under the
"Type" column. Here are some of the primary object types and their
descriptions:

1 = Native (non-linked) table
4 = ODBC-linked table
5 = Query
6 = Access-linked table
-32756 = Data-Access Page
-32761 = Module
-32764 = Report
-32766 = Macro
-32768 = Form

This table also includes information relating to the connect string
(for ODBC-linked tables), database (for Access-linked tables),
date/time created, and date/time updated as well. To get a "quickie"
list of all objects listed by type in an Access MDB database, you
can run the following query:

SELECT Type, Name
FROM MSysObjects
ORDER BY Type, Name;

Keep in mind that query objects are more or less the equivalent of
views like in SQL Server, etc.

Also, a couple other MSys* system tables include MSysRelationships
which is used to track ALL able relationships within your Access
database, and MSysIMEXSpecs and MSysIMEXColumns which are both used
to store information about import and export definitions you create
within your Access database.

And no need to worry about destroying anything within these tables -
you may only view/read this information because Access maintains the
full update rights to all MSys* tables. However, you actually update
MSysIMEX* tables whenever you create, update, or delete import or
export specs - you're just forced to use the user-interface provided
within Access.

Lastly, USys* tables can be useful if you want to deploy a user
application where the user may be able to see the database window,
but don't want that person to see data that can be used for things
like application parameters and custom run-time configuration
information. Of course, they could see these if they selected to
view system objects via the toolbar.

Warren
:D
 
Old December 12th, 2003, 12:35 AM
sal sal is offline
Friend of Wrox
 
Join Date: Oct 2003
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Are you trying to use a data enabled class?



Sal





Similar Threads
Thread Thread Starter Forum Replies Last Post
Appending a Table to a Catalog using ADOX ShoeBucket Access VBA 3 June 15th, 2007 01:58 PM
Catalog for the products FT BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 0 May 19th, 2007 05:41 AM
ADOX speedlearner BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 June 23rd, 2006 04:15 PM
converting Access 2000 views to Sql views matta Classic ASP Professional 1 January 26th, 2005 03:37 PM





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