This error was happening on my machine because there was an invalid Custom Toolbar set in the properties of my start up form. Removing it fixed the problem.
Apparently this feature is not available in Access 2007 yet. Several users have submitted feature requests for this to appear in a future version, so keep your fingers crossed until then.