Known Error Documdented by Microsoft
I found in the newsgroup comp.databases.ms-access a reference to MS Document Q193167 "ACC97: Error When You Click a Custom Command Bar Button" with the following information:
SYMPTOMS
When you click a menu or button on a command bar, you may see the following error message:
"The expression you entered has a field, control or property name that Microsoft Access can't find. "
CAUSE
This problem happens when the database has a long file name, and you assign a function using the following syntax:
.OnAction = "=<function name>()"
[My filename is HMS97_Rev16.mdb hardly long but outside of DOS!]
RESOLUTION
Do not include an equal sign (=) and parentheses (()) when you assign the function to the OnAction property of the command bar. For example, assign the OnAction property using the following syntax:
.OnAction = "<function name>"
STATUS
Microsoft has confirmed this to be a problem in Microsoft Access 97.
The article is located at
http://support.microsoft.com/default.aspx?scid=kb;en-us;193167
I am going to test their resolution.