473,326 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Provide help by using F1

Does anybody have some code for opening a helpform by clicking F1 in a field
on an access form?
thank you.
Orjan
Nov 12 '05 #1
4 1973
Orjan wrote:
Does anybody have some code for opening a helpform by clicking F1 in
a field on an access form?
thank you.
Orjan


I presume you mean pressing F1 rather than clicking on a control.
Once I've created my help files I use this code in the load event;

Private Sub Form_Load()
Dim strHelpPath As String
strHelpPath = CurrentProject.Path & "\applicationhelp.hlp"
Me.HelpFile = strHelpPath
End Sub

Then I enter the id of the help topic I want to appear for the form in the
form's Help Context ID property. When the user hits F1 the topic appears.

For this to work the help files should be in the same location as the
database.
Nov 12 '05 #2
TC
Or you could just put the helpfile name in the approprate form property &
omit the code, no?

TC
"Deano" <de*********@hotmail.com> wrote in message
news:BJ******************@wards.force9.net...
Orjan wrote:
Does anybody have some code for opening a helpform by clicking F1 in
a field on an access form?
thank you.
Orjan


I presume you mean pressing F1 rather than clicking on a control.
Once I've created my help files I use this code in the load event;

Private Sub Form_Load()
Dim strHelpPath As String
strHelpPath = CurrentProject.Path & "\applicationhelp.hlp"
Me.HelpFile = strHelpPath
End Sub

Then I enter the id of the help topic I want to appear for the form in the
form's Help Context ID property. When the user hits F1 the topic appears.

For this to work the help files should be in the same location as the
database.

Nov 12 '05 #3
TC wrote:
Or you could just put the helpfile name in the approprate form
property & omit the code, no?

TC
Er, yes.
I think the reason I used the code was that it allowed a relative path. At
least it seemed to make sense at the time but I can't quite recall my
thought process. Whatever it works well regardless of where the app is
installed.



"Deano" <de*********@hotmail.com> wrote in message
news:BJ******************@wards.force9.net...
Orjan wrote:
Does anybody have some code for opening a helpform by clicking F1 in
a field on an access form?
thank you.
Orjan


I presume you mean pressing F1 rather than clicking on a control.
Once I've created my help files I use this code in the load event;

Private Sub Form_Load()
Dim strHelpPath As String
strHelpPath = CurrentProject.Path & "\applicationhelp.hlp"
Me.HelpFile = strHelpPath
End Sub

Then I enter the id of the help topic I want to appear for the form
in the form's Help Context ID property. When the user hits F1 the
topic appears.

For this to work the help files should be in the same location as the
database.


Nov 12 '05 #4
TC

"Deano" <de*********@hotmail.com> wrote in message
news:Fg******************@wards.force9.net...
TC wrote:
Or you could just put the helpfile name in the approprate form
property & omit the code, no?

TC
Er, yes.
I think the reason I used the code was that it allowed a relative path.

At least it seemed to make sense at the time but I can't quite recall my
thought process. Whatever it works well regardless of where the app is
installed.

I've had a few cases where it did not find the file. Almost always it does,
but sometimes it doesn't. I've been unable to track down any cause for this.
I always use the standard properties, & put the help file in the same
directory as the code db.

TC


"Deano" <de*********@hotmail.com> wrote in message
news:BJ******************@wards.force9.net...
Orjan wrote:
Does anybody have some code for opening a helpform by clicking F1 in
a field on an access form?
thank you.
Orjan

I presume you mean pressing F1 rather than clicking on a control.
Once I've created my help files I use this code in the load event;

Private Sub Form_Load()
Dim strHelpPath As String
strHelpPath = CurrentProject.Path & "\applicationhelp.hlp"
Me.HelpFile = strHelpPath
End Sub

Then I enter the id of the help topic I want to appear for the form
in the form's Help Context ID property. When the user hits F1 the
topic appears.

For this to work the help files should be in the same location as the
database.


Nov 12 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

65
by: Pmb | last post by:
I'm confused as to what the compiler error message I'm getting is refering to. Can someone take a gander and let me know what I did wrong? The program is below. When I compile it I get the...
1
by: Colin Green | last post by:
OK here's is what I wish to do. I have an XML file that I want to read into an XmlDocument. I then want to be able to interrogate the XmlNodes to find both their start AND end character positions...
7
by: Dennis C. Drumm | last post by:
I would like to be able to update an xml file located on my hosted server from my local computer. The server requires a user name and password to access the web site for writing or updating...
3
by: Brett | last post by:
We have an application completely written in C++ under visual studio v6. One of our customers wants to use some of our existing components in his project but doesn't know C++ and isn't interested...
3
by: Brett | last post by:
Many VB.NET subs will provide hints when you start with the open parentheses for parameters. Also, there are hints on methods. For example, Console. will provide additional information for...
2
by: swsdam | last post by:
First I'm a newbie to XML. My admin is passing product info to me as XML. I was able to format my xml using a XSLT and make it look nice online. Now, I'm trying to print catalog pages from the...
4
by: meo | last post by:
Does .NET provide the way to deploy library to internal developer? I am trying to find the way to deploy a library file to developer for having integration to their application BUT the customer...
1
by: Peter Duniho | last post by:
On Fri, 11 Apr 2008 01:43:52 -0700, Weeble <clockworksaint@gmail.com> wrote: That's not a difference. The code example you compared to has the implication that A will use the IB instance...
10
by: James Harris | last post by:
If distributing a piece of code in C how is it best to provide it? Options seem to be 1. Precompile the module.c file(s) to module.o and provide a header. The using code then has #include...
1
by: shwethatj | last post by:
My problem is lik this , I am trying to create a registration form using javascript for a HR website , but i dont know how to provide password validation i.e the password and confirmation password...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.