Group:  Microsoft Access ยป microsoft.public.access.modulescoding
Thread: helpfile in msgbox

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

helpfile in msgbox
"kon" <iliadisk[ at ]panafonet.gr> 12.09.2006 14:20:29
I have a code
where I define where exactly the help file is (by default in current
directory where the database is). In the forms in the help file field there
is no problem Event when I change the location of the database. On the
contrary on msgboxs the help file can't be located. Once I redefine the
location then it's Ok.

MsgBox("Show message", vbCritical + vbYesNo + vbDefaultButton2 +
vbMsgBoxHelpButton, helpfilename,90)

the helpfilename how can I define where it is in order to avoide the message
cannot find the "filename".hlp file.Do you want to try to find this file
yourself?

Thank in advance


Re: helpfile in msgbox
"Douglas J. Steele" <NOSPAM_djsteele[ at ]NOSPAM_canada.com> 12.09.2006 15:19:10
AFAIK, there's no way to define it.

Consider having a function that determines the location of the MDB file, and
creates the path to the help file using that information, and then use the
function rather than a constant.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"kon" <iliadisk[ at ]panafonet.gr> wrote in message
news:u2I9fan1GHA.3908[ at ]TK2MSFTNGP05.phx.gbl...
[Quoted Text]
>I have a code
> where I define where exactly the help file is (by default in current
> directory where the database is). In the forms in the help file field
> there is no problem Event when I change the location of the database. On
> the contrary on msgboxs the help file can't be located. Once I redefine
> the location then it's Ok.
>
> MsgBox("Show message", vbCritical + vbYesNo + vbDefaultButton2 +
> vbMsgBoxHelpButton, helpfilename,90)
>
> the helpfilename how can I define where it is in order to avoide the
> message cannot find the "filename".hlp file.Do you want to try to find
> this file yourself?
>
> Thank in advance
>
>


Re: helpfile in msgbox
"kon" <iliadisk[ at ]panafonet.gr> 12.09.2006 21:38:37
Can you give me an example ?

Why the folowing doesn't work
MsgBox("My message;", vbCritical + vbYesNo + vbDefaultButton2 +
vbMsgBoxHelpButton, "My title of message", helpfile:=currentproject.path
&"\"& "myfile.hlp", Context:=95)
Can't find the myfile.hlp and prompts for help location ?
Of course if once you spesify the location it keeps it till you change again
the location.

I would appreciate any help.
Thanks in advace.
"Douglas J. Steele" <NOSPAM_djsteele[ at ]NOSPAM_canada.com> wrote in message
news:%23%23rPP7n1GHA.4632[ at ]TK2MSFTNGP03.phx.gbl...
[Quoted Text]
> AFAIK, there's no way to define it.
>
> Consider having a function that determines the location of the MDB file,
> and creates the path to the help file using that information, and then use
> the function rather than a constant.
>
> --
> Doug Steele, Microsoft Access MVP
> http://I.Am/DougSteele
> (no e-mails, please!)
>
>
> "kon" <iliadisk[ at ]panafonet.gr> wrote in message
> news:u2I9fan1GHA.3908[ at ]TK2MSFTNGP05.phx.gbl...
>>I have a code
>> where I define where exactly the help file is (by default in current
>> directory where the database is). In the forms in the help file field
>> there is no problem Event when I change the location of the database. On
>> the contrary on msgboxs the help file can't be located. Once I redefine
>> the location then it's Ok.
>>
>> MsgBox("Show message", vbCritical + vbYesNo + vbDefaultButton2 +
>> vbMsgBoxHelpButton, helpfilename,90)
>>
>> the helpfilename how can I define where it is in order to avoide the
>> message cannot find the "filename".hlp file.Do you want to try to find
>> this file yourself?
>>
>> Thank in advance
>>
>>
>
>


Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net