gypsyjoe11
Registered User.
- Local time
- Today, 09:00
- Joined
- Feb 19, 2010
- Messages
- 46
Hi everyone,
I wrote an Access 2003 function that takes in either a table or select query name. If you give the function a file path it will save it to disk. If you leave the file path out it opens it up in a new Excel application without saving it. You can also set booleans for visiblity and wether to overight the file.
If my function is saving it to disk and the overight is false, I do a check to see if the file exists. If it does I bring up a msgbox asking wether they want to overight the file.
The problem is this msgbox shows up behind the open Excel application and I have to bring up Access in order to view the message.
I have tryied various ways of selecting active workbooks, sheets and cells in the Excel application before bringing up my msgbox but nothing works.
Any ideas would be greatly appreciated,
Joe
I wrote an Access 2003 function that takes in either a table or select query name. If you give the function a file path it will save it to disk. If you leave the file path out it opens it up in a new Excel application without saving it. You can also set booleans for visiblity and wether to overight the file.
If my function is saving it to disk and the overight is false, I do a check to see if the file exists. If it does I bring up a msgbox asking wether they want to overight the file.
The problem is this msgbox shows up behind the open Excel application and I have to bring up Access in order to view the message.
I have tryied various ways of selecting active workbooks, sheets and cells in the Excel application before bringing up my msgbox but nothing works.
Any ideas would be greatly appreciated,
Joe