Odd Occurance -- Help

G

Guest

I just went and tried that, and that doesn't seem to
correct the problem. It is really weird.
-----Original Message-----
Yup. That's odd. Does the following scenario sound plausible?

Opening the database file by first opening Access specifies to the operating
system _exactly_ which executable file to use and the parameters for opening
the database file. Does your shortcut do this, too? The syntax would
minimally need this:

<Full path to Office\MSAccess.Exe> <Full path to DB\MyDB.mdb>

If one doesn't specify the full path to the executable, then the defaults
listed in the Windows Registry are used, which doesn't include your help
file's path and file name. And the {F1} AutoKeys macro and user-defined
function redirects the keyboard input away from the default Access help
files, so even Access Help is MIA.

That's the only thing I can think of that might affect your custom help
feature. Perhaps someone else can offer some better ideas.

HTH.

Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips.

(Please remove ZERO_SPAM from my reply E-mail address, so that a message
will be forwarded to me.)





.
..
 
D

david epsom dot com dot au

Are you using the full path to the help file, or
a relative or current path? Are you using a registered
Help file, or putting your help file into the Windows
Help Folder?

Also, note that
Function HtmlHelp Lib "hhctrl.ocx" Alias "HtmlHelpA"
can be called a second time to get the 'last error'.

(david)
 
G

Guest

Here is the path as is in the module:
FormHelpFile = "H:\property shop -- master\Help.chm"
FormHelpId = 1

That is for my directory on my network at work. Even if
I move the files to my C: Drive, I have the same problem.

I don't know what you mean about a "registered Help
File", but I need the database, as well as the help file,
available on the network, since there are other users
that use the database as well that would all have access
to the drive and directory that the database and help
file would be stored on.
 
G

Guest

OK. I kept playing and playing. When I get stumped, I
generally don't quit. I think I found the cause of the
problem.
In the Access Form Properties dialog box, I simply had
Help.chm for the Help File. By changing that to
H:\property shop -- master\Help.chm is now works.
I guess the new question is: Is the a command, such as
ActiveDirectory\Help.chm that I could place in the forms
Help File tag?
Whew... this has been a challenge.
 
D

Douglas J. Steele

There's no command, but you could always write code to set the file once you
know the active directory.

For example, to set a form's Help File when you open the form, you could do
something like the following in the form's Load event:

Me.HelpFile = CurrentProject.Path & "Help.chm"

Another possibility would be to set the Current Directory to
CurrentProject.Path when you open the database using ChDir (and ChDrive if
necessary). I would think that this would be slightly less robust.
 

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