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!

Problems opening a html page from Access and linking within a page!

Status
Not open for further replies.

jimtmelb1

Technical User
Sep 7, 2003
72
AU
Hi,

In Access 2000, is it possible to open a local html file and be able to link to a specific section in a page. The page is not on the web it just lives locally. I want to be able to click buttons from different forms in my db and it will link to certain sections in this html page.

I have used these tags throughout my html document
<A NAME="section_name">
and then tried using

Dim LocalURL As String
LocalURL = "C:\Backup\temp.htm#section_name"
junk = fHandleFile(LocalURL, WIN_NORMAL)

I use the above code to open URL's from my Access DB and it opens the temp.htm without the "#section_name" but not with it.

If this is possible, could someone please show me how.

Thanks
Jim
 
You may try this:
Application.FollowHyperlink "C:\Backup\temp.htm", "section_name"


Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top