Hello,
I have looked around on Tek-Tips a bit for some help with this but haven't been able to get anything to work yet. Please help with the code to open an excel file from an Access form based on a field's value displayed on the form. I am going to name an excel file (.xls) with the same name as the key field in my form. So, when a command button is clicked I want Excel to open the following path:
H:\home\research\ResearchFund\Accounting
and find a file with the same name as the key field on the Access form. The form name is 'frmProtocol', the command button is called 'cmdOpenExcel' and the field on the form is called 'ProtocolNumber'.
Any help will be appreciated.
Thanks!
Julia
I have looked around on Tek-Tips a bit for some help with this but haven't been able to get anything to work yet. Please help with the code to open an excel file from an Access form based on a field's value displayed on the form. I am going to name an excel file (.xls) with the same name as the key field in my form. So, when a command button is clicked I want Excel to open the following path:
H:\home\research\ResearchFund\Accounting
and find a file with the same name as the key field on the Access form. The form name is 'frmProtocol', the command button is called 'cmdOpenExcel' and the field on the form is called 'ProtocolNumber'.
Any help will be appreciated.
Thanks!
Julia