You know, sometimes commands like that don't seem to work in the On Action box in my custom toolbar items. (For example, I can't get MsgBox to work directly.)
What I end up doing is writing a public function in a module, then pointing the toolbar command to that function.
It might be a sloppy workaround, but it's the only way certain commands will work for me. Could this be an Access 97 bug?