Link button to different spreadsheets - TechRepublic
General discussion
June 20, 2002 at 10:50 PM
atwork

Link button to different spreadsheets

by atwork . Updated 23 years, 11 months ago

In Access 97, I would like to have a command button on a form that will link to an Excel spreadsheet. The problem is, I want it to link to different spreadsheets, depending on the value of the data in the form.

For example if the value of txtTexton the form is = “1.1”, then I want the button to link to BudgetJan.XLS; if txtText is “2.1”, then I want it to link to BudgetFeb.XLS. How do I change the hyperlink path of the command button based on a value in the form?

Any help is always appreciated!

Thanks,

Elwood

This discussion is locked

All Comments