Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2002-07-23
5
Medium Priority
?
378 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
  • 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 54

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 54

Accepted Solution

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

Author Comment

by:tcoc
ID: 7177300
Thanks for the help,

tcoc
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
Suggested Courses

927 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