I have figured out how to build a custom toolbar that opens tables, queries, and forms within the access database. But how do I program buttons that will open word and excel docs related to that database but not IN the database?? Thanks.
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?
Mike's response looks helpful, but I need to use a relative path name. Not eveyone that uses the application has the related files in the same place...Is this possible to do or am I dreaming?
Try this........ if you have no joy give me get back to me here!
Create a form, and place 2 unbound text boxes on it.
Name one "txtAppPath" and the other "txtDocPath". Save the form as "frmRunApp"
Now create a macro called mcrRunApp and set the first action of the macro to "RunApp". For the "Command-line" type:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.