home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 12
/
CD_ASCQ_12_0294.iso
/
news
/
dbexam
/
dbexam.txt
< prev
next >
Wrap
Text File
|
1993-12-16
|
7KB
|
171 lines
Documentation for DBEXAM
DBEXAM is a Microsoft Access database examination tool written in
Microsoft Visual BASIC 3.0. It also uses Far Point Technologies'
SpreadSheet (V 2.0).
This program is distributed free of charge to all. The only stipulation
is that it not be sold. There is no charge for its use or distribution.
Enjoy!
What DBEXAM does:
1. It allows you to choose a database and view all the tables.
2. You may view and print the structure of any table.
3. You may view all the entries of any field in the table.
4. You may delete all items from a table.
5. You execute any valid Microsoft Access SQL statement and print the
result set.
What DBEXAM does not do:
1. You may not change the structure of a database or table.
2. Anything else not mentioned above.
To Use:
DBEXAM is an MDI application. When first executed, you must open a database
window and select a database.
To select a database, click on the "File" menu and select "New Database
Window". After the Database window is opened, you may open a database by
either:
- Clicking on the "File" menu and selecting "Open Database", or
- Selecting from the five most recently opened databases from the list
at the bottom of the "File" menu.
Up to ten database windows may be opened. Each one may be used to examine
a different database.
Once a database is opened, the tables will be listed in the listbox on
the left. If you wish to view the Access system tables, you must first
check the "Display System Tables" check box. THIS MUST BE DONE BEFORE
OPENING THE DATABASE.
To examine the structure of a table, double click on the table name. The
table's structure will be listed in listbox to the right and indexes will
be listed in the listbox below the table structure list box.
To list the elements in a column (field), double click on the column name.
To delete all the members in a table, press the "ZAP TBL" button. You
must confirm the action. You may clear multiple tables at one time by
selecting "Clear Tables..." from the "File" menu. You will be presented
with a multi-select listbox and you must highlight the tables you wish
to clear. You will still be asked to confirm the deletion for each
table.
To print the table structure, press the "Print Struct." button or select
"Print Current Table Layout" from the "File" menu. You may also
print more than one table at a time by selecting "Print Multiple Table
Layouts..." from the "File" menu. Selecting the latter option opens a
dialogue box that allows you to select tables to print from a multi-select
listbox. Highlight each table you wish to print and press the "Print"
button. Each table structure will be printed on a separate page.
To add comments about the table, press the "Comments" button. The first
time you do this, you will be asked if you wish to create a "Comments"
table. This creates a table in your database named DTD00000XXXXX_TBL
which is used to store comments. If you don't want to mess up your
database with this table, don't use the comments tool.
SQL QUERIES
For each database window, up to ten query windows may be opened. To open
an SQL Query Window, select "Open SQL Query Window" from the "File" menu.
Any valid Microsoft Access SQL statement (selection or executable) may be
entered in the textbox at the bottom of the screen. Pressing the "Do Query"
button or selecting "Perform Query" from the "Query" menu will execute the
query.
You may open more than one Query Window by selecting "Open New Query Window"
from the "Query" menu. Use the "Window" menu to switch between different
Database or Query windows.
The "Statistics" button displays information about the latest Query
executed.
The "Print" button prints the query results.
The "Print Size" button allows you to choose the fonts and type size
for printing.
The "Row Numbers" check box turns the row number display of the query grid
off and on.
All the above functions may also be accessed from the "Query" menu.
Note that the Query Window executes against the database from which the
Query Window was opened. If you have opened two Database windows and from
each Database window you have opened three SQL Query windows, then three
of the Query windows will use the first database and three will use the
second database. To keep track of which Query window is associated with
each Database window, the following scheme is used:
- Each Database window has the caption "Access DB Browser:[x]" where
"x" is a number between 1 and 10. Each time a new Database window is
opened, x is incremented by one (however if, for example, Database
windows 1 through 7 are opened and then window 4 is closed, the next
Database window opened will be window 4 and not window 8)
- Each Query window opened has the caption "SQL Query ENGINE:[x,y]"
where "x" is the number of the Database window and "y" is a number
from 1 to 10 (implemented in the same manner as "x").
Also, the caption of the Database window will have the full pathname of
the database appended once a database is opened. The caption of the Query
window will have as much as possible of the SQL quesry appended once a
query is performed.
If a Database window is closed, all Query windows derived from that Database
window are automatically closed.
PROBLEMS:
Error checking is minimal. For instance, printer errors will dump you out
of the program. If you've implemented referential integrity, you'll
get errors if you use the ZAP function (the "ZAP" is from my old dBase II
days).
Sorry I can't give the source code, but I'm using Far Points' SPREAD20.VBX
and the design time license is commercial.
One of the problems that I've had is implementing comments. The method I'm
using (adding a comment table) isn't too elegant. Microsoft Access does have
the ability to store comments at the column level, but I haven't taken the
time to see how they do it. If you know the secret, I'd like to know it
too.
DISCLAIMER:
This program is distributed "as is." The author takes no responsibility
for errors, problems caused, or misinformation generated, or any business,
personal, or other loses caused by use of this program.
QUESTIONS:
If you have any questions, comments, or suggestions, I may be reached at:
71742,3323@compuserve.com
VJWD47A@prodigy.com
Matsushita Electric Corp. of America
One Panasonic Way
Panazip 2G-3
Secaucus, NJ 07094
Have fun.
Mark Zeiger