Help with Help File

  • Thread starter Afrosheen via AccessMonster.com
  • Start date
A

Afrosheen via AccessMonster.com

Thanks you for your time.

I have created a help file through Word and saving it as an html file.

I'm trying to press a button on different forms that will go to that
particular help file. Here is the code I'm trying to use:

Dim stDocName, strHelp As String
Dim stLinkCriteria As String

strHelp = "login.htm"
stDocName = "frmHelpMain"
DoCmd.OpenForm stDocName, , , , stLinkCriteria, , strHelp

When I put a break in and hover over the strHelp it shows strHelp = "login.
htm" for the openargs. The problem is that it comes up with the error, Type
Mismatch

When I do a debug.print openargs it shows null

The form MainHelp code is:
Me.WebBrowser0.Navigate "e:\nci database\nci taps\helpfiles\html files\" &
[openargs]


When I do just the code in the mainhelp form:
dim strHelp As String
strHelp = "login.htm"
Me.WebBrowser0.Navigate "e:\nci database\nci taps\helpfiles\html files\" &
strHelp

It goes right to the correct help file.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top