#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Access


Im new to vba, please be patient. Thx

I've created command buttons in a spreadsheet to open an access mdb's
located on a comman drive.

I managed to locate and open the mdb's trhu

"GetObject" statement.

It works for some mdb's, but not all.

ON those it doesn't work i can see access opening and then it closes
immediatly after opening.

The access versions is 97.

ON those it managed to open - How can i make it the active window? It
opens it but the focus is still on the spreadsheet.

Any help appreciated
Thanks


--
JohnDK
------------------------------------------------------------------------
JohnDK's Profile: http://www.excelforum.com/member.php...fo&userid=7184
View this thread: http://www.excelforum.com/showthread...hreadid=480430

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Access

Sounds like you might have unclosed instances of Access still running. Look
in the Task Manager in Windows and make sure no instances of Access are
open. Make sure you release all references to Access in your code.

You can look at AppActivate for bringing the instance to the front.

You can also look in the Automation help file:
http://support.microsoft.com/?kbid=167223
Microsoft Office 97 Automation Help File Available on MSL

--
Regards,
Tom Ogilvy




"JohnDK" wrote in
message ...

Im new to vba, please be patient. Thx

I've created command buttons in a spreadsheet to open an access mdb's
located on a comman drive.

I managed to locate and open the mdb's trhu

"GetObject" statement.

It works for some mdb's, but not all.

ON those it doesn't work i can see access opening and then it closes
immediatly after opening.

The access versions is 97.

ON those it managed to open - How can i make it the active window? It
opens it but the focus is still on the spreadsheet.

Any help appreciated
Thanks


--
JohnDK
------------------------------------------------------------------------
JohnDK's Profile:

http://www.excelforum.com/member.php...fo&userid=7184
View this thread: http://www.excelforum.com/showthread...hreadid=480430



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Query from Access into Excel cause Access to go to read only T Stephens Excel Discussion (Misc queries) 0 March 24th 09 04:17 PM
Can Excel access data from Access?! Al Excel Discussion (Misc queries) 5 April 5th 08 03:52 PM
Access Form In An Access Report (SubForm) Question Gary Links and Linking in Excel 0 January 27th 06 05:54 AM
Access data -work in Excel- save in Access s_u_resh Excel Programming 1 October 25th 04 12:52 PM
Getting Access Error Messages when running Access through Excel Dkline[_2_] Excel Programming 0 October 12th 04 09:35 PM


All times are GMT +1. The time now is 05:53 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"