Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open Specific file in IE

Status
Not open for further replies.

mikelev

Technical User
Mar 23, 2004
223
US
Access 2000

I am creating HTML help files with Robo Help. Then launching the help files in IE with the OnClick event.

The following is the URL I would like to pass to IE.

C:/StraightEdge/Help/Welcome.htm#Employee_Time_Off_Application.htm

The first part of the URL "C:/StraightEdge/Help/Welcome.htm" opens the general help file with no topic specified. The help screen has a left and right pane, with the left being the navigation pane used to display the help context tree.


The second part of the URL "#Employee_Time_Off_Application.htm" displays that specific help topic in the right pane of IE.


I have the following code on the OnClick Event:
Code:
Application.FollowHyperlink "C:/StraightEdge/Help/Welcome.htm#Employee_Time_Off_Application.htm"

It appears as if Access does not like the "#" since this returns "C:/StraightEdge/Help/Welcome.htm" in the address bar.

Also tried:
Code:
Application.FollowHyperlink "C:/StraightEdge/Help/Welcome.htm" & "#" & "Employee_Time_Off_Application.htm"

Any help would be appreciated

Cheers,

 
And if you type "C:/StraightEdge/Help/Welcome.htm#Employee_Time_Off_Application.htm" directly in the browser, does it work?

Greg
"Personally, I am always ready to learn, although I do not always like being taught." - Winston Churchill
 
Just an update, the following fixed my problem.

Code:
Application.FollowHyperlink "C:\StraightEdge\Help\Welcome.htm", "#Employee_Time_Off_Application.htm"

Cheers,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top