I had started to work out a solution.
Its essence:
A hidden form is running in the background.
In its timer event (once in every minute) it asks for the name and the type of the active data object in the screen.
If the active data objects is not a table then it does nothing.
If it is table in design view then it does nothing either. If it finds that the active data object is in normal view then it makes the following checks.
1) It looks for the sentence beginning with
'You must not use the table directly' and ending with a full stop in the description of the table.
2) If the above sentece is found then it check the sentence for the continuation
'but only with {form|macro} "<name>"'.
3) Displaying of an assistant balloon with bullets:
"We do not recommend to use this table directly. Use {form|macro} "<name>" instead.
[ul][li]Close the table.
[/li] [li] Close the table and open it in read-only mode.
[/li] [li] Use it with the recommended handler.
[/li] [li]Ignore and use the table for writing."
[/li] [/ul]
The third case is unavailable if the handler form does not exist.
The last case is available only for Admin users.
---------------------------------------------------------
My remaining problems in the accurate coding of this idea:
1) I can check from the container "Scripts" whether macro "M" exists. How can I check whether macro "M.A" exists?
2) How can I see that the table in active screen object is opene din read only mode? In this case the algorithm should not display the balloon.
3) Is there any collection containing info about all windows within the MDI environment of the Access 97?
An ugly way to get info about the windows:
Set CurrentObject = Screen.ActiveDataObject
Do
SendKeys "^{F6}"
Set OtherObject = Screen.ActiveDataObject
'Evaluate properties of the OtherObject.
Loop Until OtherObject=CurrentObject
----------------------------------------------------------
4) See other thread: "Message boxes with more specific buttons than Ok, Cancel".
I will send the code with mesages and variable translated
from Hungarian to English only if anybody is interested in it.
Regards
Frank
Ferenc Nagy
|\ /~ ~~|~~~ nagyf@alpha0.iki.kfki.hu Fax: (36-1)-392-2529 New!
| \ | | Institute of Isotope and Surface Chemistry
| \ | -+- 1525 Bp. POB 77. Tel.

36-1)-392-2550
| \| |
`-' ' `-' "The goal of the life is the struggle itself"