Text file describing Microsoft Access 2.0 library file 'Ins_Code.mda'.	
Intended users: Microsoft Access 2.0 programmers

Summary:

Version 1.5b Ins_Code.zip [pkuzip v. 2.04g] contains Ins_Code.mda and this
'read_me.txt' file.

Ins_Code.mda is a very small [approx. 131k] library 'mda' utility file
that provides a very easy and convenient method for creating and/or 
modifying Access 2.0 module coding of 'DoMenuItems'.  

As most	Access developers know, the DoMenuItem codes are not readily 
available within Access, and one must often exit the module to look 
the codes up by use of the Macro window (the 'count from zero' method).  
	
This is not only cumbersome, but very time consuming.  According to our 
research THERE ARE AT LEAST 745 DoMenuItem codes. Ins_Code.mda consists 
of a table of all known DoMenuItem codes including the THREE TO FOUR LEVELS
of menu commands.

A compact form is also included that is based upon the codes table 
(auto-activated by 'Hot-key'). Command buttons allow the user, while
in any open module, to quickly filter sort or find any individual record
or groups of records that fit the specified criteria.  

Once the correct code is located (usually within seconds), another command 
button provides immediate insertion of the proper DoMenuItem codes within 
the open module, as well as appropriate AUTOMATIC comments to document the 
code.  A 'Time and Date' stamp is [optionally] appended to the line of code.

The user, by positioning the cursor at the insertion point, dictates whether
the new code is simply added to the open module, or writes over existing 
'bad' code.

The following 'dummy' code is included in a test module with the file.

*************************************
Function TestModule ()
On Error GoTo TestModule_Err
'*******************************************************************
'   The following 'dummy code' can be used for testing.
'   First place your cursor at the point you wish to insert new
'   code (on a blank line-left margin), or at the point you wish to
'   replace existing code (that line will be deleted, and the new code
'   inserted in its place.  Open the form (Hot Key is {F5})
'   and locate the code you wish to insert.  The 'Filter' and 'Find'
'   command buttons can be used to locate specific code.  Once the
'   desired code is located and is being displayed in the form,
'   click the 'Run' command button.  The chosen code should then
'   be inserted into the module at the chosen insertion point.
'
'   Caution:  If you accidentally overwrite code outside of the
'   'test area', you may get an error [syntax] message.
'
'   Suggestion:  Do not save this module after testing.
'*******************************************************************


'**************************** begin test code area ******************
                              
DoCmd DoMenuItem 0, 0, 0, 0, A_MENU_VER20     'form, file, new, table, 11/4/94 3:33:20 PM
DoCmd DoMenuItem 0, 0, 0, 1, A_MENU_VER20     'form, file, new, query, 11/4/94 3:33:23 PM
DoCmd DoMenuItem 0, 0, 0, 2, A_MENU_VER20     'form, file, new, form, 11/4/94 3:33:26 PM
DoCmd DoMenuItem 0, 0, 0, 3, A_MENU_VER20     'form, file, new, report, 11/4/94 3:33:29 PM
DoCmd DoMenuItem 0, 0, 0, 4, A_MENU_VER20     'form, file, new, macro, 11/4/94 3:33:31 PM
DoCmd DoMenuItem 0, 0, 0, 5, A_MENU_VER20     'form, file, new, module, 11/4/94 3:33:33 PM
DoCmd DoMenuItem 0, 0, 1, , A_MENU_VER20     'form, file, close, 11/4/94 3:33:35 PM
DoCmd DoMenuItem 0, 0, 2, , A_MENU_VER20     'form, file, save form, 11/4/94 3:33:38 PM
DoCmd DoMenuItem 0, 0, 3, , A_MENU_VER20     'form, file, save form as, 11/4/94 3:33:40 PM
DoCmd DoMenuItem 0, 0, 4, , A_MENU_VER20     'form, file, save record, 11/4/94 3:33:43 PM
DoCmd DoMenuItem 0, 0, 5, , A_MENU_VER20     'form, file, output to, 11/4/94 3:33:46 PM
DoCmd DoMenuItem 0, 0, 6, , A_MENU_VER20     'form, file, print setup, 11/4/94 3:33:48 PM
DoCmd DoMenuItem 0, 0, 7, , A_MENU_VER20     'form, file, print preview, 11/4/94 3:33:51 PM
DoCmd DoMenuItem 0, 0, 8, , A_MENU_VER20     'form, file, print, 11/4/94 3:33:53 PM
DoCmd DoMenuItem 13, 5, 4, , A_MENU_VER20     'system relationships, help, About Microsoft Access, 11/4/94 3:33:56 PM
DoCmd DoMenuItem 13, 5, 3, , A_MENU_VER20     'system relationships, help, technical support, 11/4/94 3:33:59 PM
DoCmd DoMenuItem 13, 5, 2, , A_MENU_VER20     'system relationships, help, cue cards, 11/4/94 3:34:01 PM



'**************************** end test code area *******************

TestModule_Exit:
    Exit Function

TestModule_Err:
    Resume TestModule_Exit

End Function
'***************************************************************

Obviously, the foregoing code is for test purposes only.   Each full line of
this code was entered with one click of the command button.  This .mda file 
is a DEMO that is fully functional, however, the underlying table does not 
contain all of the necessary codes.  Once the user registers, the full 
version will be forwarded.  

Shareware...price $10.00, plus any shipping, if necessary.

The full version file can also be e-mailed, with purchaser paying the 
nominal CIS charges.  Register by mail or through CompuServe.
'GO SWREG'  Id # 3795
	
Eclipse Software
71230,501

1776 Ygnacio Valley Road, Suite 200
Walnut Creek, CA 94598-3125
(510)798-5858
fax(510))798-9049
****************************************************************
Instructions for Demo Setup and Use:

1)	Download Demo

2)	unzip w/ pkunzip 2.04g

3)	copy 'Ins_Code.mda' to Access directory

4)	open the mda file as a stand-alone database file to become
	familiar with its operation before using it as a library 
	mda file with another database

5)	AutoKey macro has assigned {F5} as the hot key

6)	a 'test' module with dummy code is included for testing

7)	open 'modTestModule' from database window in design view

8)	position cursor on a blank line at the left margin at a 
	location where new code will be inserted

9)	activate hot key {F5}

10)	pop up form 'frmDoMenuItem' appears showing approx. 400 'DoMenuItem'
	codes up to four menu levels deep

11)	scroll through the records, or use the 'Find' or 'Filter' 
	buttons to locate a test record to insert

12)	click the '!' [Run] command button

13)	the selected code should be inserted at the exact cursor location 
	within the open module

14)	comments at the end of the code line indicate what codes were 
	inserted, and a time/date stamp is optional [check date box on form]

15)	to test, open 'Immediate Window'

16)	type '?TestModule()' [NOT '?modTestModule()'] followed by the
	{ENTER} key

17)	whichever code was first in line in the open module should execute
	In some cases, that particular command may not be available and an
	error message may result.  Any command must be 'view appropriate'.

18)	if necessary, cancel the code action

*************************************************************************

To Use With Existing Database '.mdb' file:

*************************************************************************

1)	make sure 'Ins_Code.mda' is functioning properly with your 
	system before using it on any valuable data.  MAKE SURE YOU HAVE A 
	CURRENT BACKUP!

2)	open the 'msacc20.ini' file with Microsoft 'notepad' [usually in 
	the 'Windows' subdirectory]

3) 	scroll down to the [Libraries] section

4)	add 'Ins_Code.mda=ro' as the bottom entry

5)	save the ini file and close it

6)	open any Access .mdb file

7)	from file menu option, select 'import'

8)	import the 'AutoKeys' macro from 'Ins_Code.mda'

9)	If you have already assigned {F5} as a hot key you must 
	reconfigure one or the other

10)	If there is a problem, check 'View'/'Option'/'Keyboard' 
	to see what has been assigned as Auto Keys macro

11)	open any existing module from the database window

12)	locate DoMenuItem that you would like to replace, and place 
	cursor on the same line at the left margin

13)	activate the DoMenuItem form with the hot key

14)	locate the code you would like to add to the module in place of 
	the existing code

15)	press the (!) [Run] command button on the form and the code is 
	replaced and commented.  A time and date stamp will append to the
	comments if the check box on the form is checked

16)	the DoMenuItem form can be minimized to an icon to make more room 
	if needed