Solved

How do I keep Access from Minimizing when linking to MS Word

Posted on 2002-07-23
5
355 Views
Last Modified: 2008-03-17
How do I keep Access from Minimizing when linking to MS Word, or keep it Maximized or Active or whatever?

I am using the FollowHyperlink method to open MS Word and bring up a document on the C Drive.  Unfortunately, when I close word, I MS Access is minimized.

Does anyone have a simple solution to this?  I have seen some answers on this, but I'm too dumb to follow them.

Maybe some code someone has already used that I can just copy over?

Thanks,

tcoc
0
Comment
Question by:tcoc
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 4

Expert Comment

by:zuijdhoek
ID: 7172114
I don't understand what you mean. What do you mean by using the FollowHyperlink-method?

Mark
0
 

Author Comment

by:tcoc
ID: 7172125
Private Sub Comments_Click()
Dim PathName As String
PathName = "C:\tcoc\" & Me.[Comments]

Me.Application.FollowHyperlink PathName

End Sub

If the value of field [Comments] is an MS Word document, then MS Word will open and display that document.

Upon closing Word, Access is now minimized.


Per Access Help:
"By using the FollowHyperlink method, you can follow a hyperlink that doesn't exist in a control. This hyperlink may be supplied by you or by the user. For example, you can prompt a user to enter a hyperlink address in a dialog box, then use the FollowHyperlink method to follow that hyperlink."



tcoc
0
 
LVL 52

Expert Comment

by:Ryan Chong
ID: 7173715
My suggestion is use other method to open the doc file, so that the Access interface is not affected with FollowHyporLink function. Example, use ShellExecute API to open the doc.

regards
0
 
LVL 52

Accepted Solution

by:
Ryan Chong earned 200 total points
ID: 7173767
0
 

Author Comment

by:tcoc
ID: 7177300
Thanks for the help,

tcoc
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question