| | |
|
|
|
Hyperlink |
| message from =?Utf-8?B?UmF5bW9uZA==?= on 16 May 2004 |
I have a label control defined as Hyperlink. It can link to another form. But I want to define the called form as acDailog so that user cannot escape from it. I know it is possible to do with codes. Appreciate in advance for help.
|
| Alex Dybenko replied to =?Utf-8?B?UmF5bW9uZA==?= on 17 May 2004 |
you can use label click event to open form using docmd.openform
|
| =?Utf-8?B?UmF5bW9uZA==?= replied to Alex Dybenko on 17 May 2004 |
Thanks and I understand what you meant. I am using hyperlink because actually the form is a "menu" which contains a lot of options for users to choose. Hyperlink will cause the cursor changing to fingerpoint that is much impressive than a label or a textbox or a command button.
|
| Alex Dybenko replied to =?Utf-8?B?UmF5bW9uZA==?= on 17 May 2004 |
but you still can use hyperlink label and use it click event to open form
|
| =?Utf-8?B?UmF5bW9uZA==?= replied to Alex Dybenko on 17 May 2004 |
Yes, Alex. I cannot do it and it is working prefectly. One draw back is I cannot set the called form to WindowMode=acDailog (I can't remember the exact syntax). I want to set this because I don't want my users go to other forms etc. I want them to fully complete the task. So far the form flow is controlled by codes. I like hyperlink because it has the fingerpoint cursor. Do you think I can control the WindowMode of the hyperlink? Appreciate your advise again.
|
| Alex Dybenko replied to =?Utf-8?B?UmF5bW9uZA==?= on 17 May 2004 |
1. add a label, caption Click, hyperlink address #
2. add click event for this lable, write there:
DoCmd.OpenForm "form1", , , , , acDialog
3. you see that label have hyperlink, cursor is finger
4. click on label - form is opene in dialog
tried on Access 97 now
HTH
|
| =?Utf-8?B?UmF5bW9uZA==?= replied to Alex Dybenko on 17 May 2004 |
Alex, I am not sure if I really understand you. I use the hyperlink subaddress property to link to the form and write codes on On_Click to open the form in acDailog mode. The result is when I click the label, the on click event occurs, the form displays in acDailog mode. After I close the form, the hyperlink subaddress property takes place. So the form displays again. Please correct me if I misunderstand you.
|
| Alex Dybenko replied to =?Utf-8?B?UmF5bW9uZA==?= on 18 May 2004 |
clear subaddress also, form is opened by CODE only
in hyperlink type # only
|
| =?Utf-8?B?UmF5bW9uZA==?= replied to Alex Dybenko on 17 May 2004 |
Alex, thanks a lot. Your suggestion is working perfectly.
Actually last night came out a stupid but workable solution. Since in my code I close the menu before the form is open, therefore in the hyperlink subaddress I put back the link of the menu there. So when I click the hyperlink, the OnClick event will take place and display the form in acDailog mode. After finished with the form, the hyperlink will occur and the original menu displays again.
|
|
Archived message: Hyperlink (MS Access)