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.
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.