Good evening all, and happy holidays.
I've spent the last month or so developing a simple MS Access database for my team at work to track our daily tasks. Up to this point, I've always been able to find an answer to my Access questions on this board or others like it, but this time no such luck.
We all open the db in the morning and basically keep it open all day. Most of our daily tasks are completed through excel spreadsheets with their own macros and queries. For my database, I simply have a hyperlink field to store locations on the network. These hyperlinks are displayed on a form, which users click on to open each task sheet. For some reason, the worksheets behave differently when opened from the hyperlinks in MS Access than they do if opened from excel itself.
In particular, the macros in the excel sheet fail at places they should not. For example the excel vba code will have a line referencing
Activeworkbook.name
but we will get a runtime error on that line, with activeworkbook.name not getting picked up. This is especially puzzling because these macros still have to be manually kicked off from the main page of the excel book - so I know the book has the focus. If I close the book and reopen it from excel (and not the access link) the very same macro works fine!
Has anyone seen anything like this before? I will be glad to provide the specific runtime error once I am back in the office tomorrow morning if that may help.
Cheers,
Ben
I've spent the last month or so developing a simple MS Access database for my team at work to track our daily tasks. Up to this point, I've always been able to find an answer to my Access questions on this board or others like it, but this time no such luck.
We all open the db in the morning and basically keep it open all day. Most of our daily tasks are completed through excel spreadsheets with their own macros and queries. For my database, I simply have a hyperlink field to store locations on the network. These hyperlinks are displayed on a form, which users click on to open each task sheet. For some reason, the worksheets behave differently when opened from the hyperlinks in MS Access than they do if opened from excel itself.
In particular, the macros in the excel sheet fail at places they should not. For example the excel vba code will have a line referencing
Activeworkbook.name
but we will get a runtime error on that line, with activeworkbook.name not getting picked up. This is especially puzzling because these macros still have to be manually kicked off from the main page of the excel book - so I know the book has the focus. If I close the book and reopen it from excel (and not the access link) the very same macro works fine!
Has anyone seen anything like this before? I will be glad to provide the specific runtime error once I am back in the office tomorrow morning if that may help.
Cheers,
Ben