A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

IsHyperlink not working for Unbound Textbox



 
 
Thread Tools Display Modes
  #1  
Old May 8th, 2010, 06:56 AM posted to microsoft.public.access.forms
DRedDog
external usenet poster
 
Posts: 10
Default IsHyperlink not working for Unbound Textbox

My Access 2003 form contains unbound text boxes with the IsHyperlink
property set to True but the pointer does not change to a hand as the mouse
passes over. The mouse pointer does change to a hand if the text box is
bound to a data source.
Please tell me how to make the mouse pointer change to a hand as it passes
over an unbound text box.

  #2  
Old May 8th, 2010, 11:19 PM posted to microsoft.public.access.forms
Tom van Stiphout[_2_]
external usenet poster
 
Posts: 1,653
Default IsHyperlink not working for Unbound Textbox

On Sat, 8 May 2010 01:56:46 -0400, "DRedDog"
wrote:

When unbound, the change of the mouse pointer happens when you hover
over the text in the textbox, not over the empty space in the textbox
(unless you go out of your way and fill it with Space characters).

-Tom.
Microsoft Access MVP


My Access 2003 form contains unbound text boxes with the IsHyperlink
property set to True but the pointer does not change to a hand as the mouse
passes over. The mouse pointer does change to a hand if the text box is
bound to a data source.
Please tell me how to make the mouse pointer change to a hand as it passes
over an unbound text box.

  #3  
Old May 9th, 2010, 01:58 AM posted to microsoft.public.access.forms
DRedDog
external usenet poster
 
Posts: 10
Default IsHyperlink not working for Unbound Textbox

Thanks for your response but my mouse pointer remains an I beam when it
passes over the text in the text box control.

DT

"Tom van Stiphout" wrote in message
...
On Sat, 8 May 2010 01:56:46 -0400, "DRedDog"
wrote:

When unbound, the change of the mouse pointer happens when you hover
over the text in the textbox, not over the empty space in the textbox
(unless you go out of your way and fill it with Space characters).

-Tom.
Microsoft Access MVP


My Access 2003 form contains unbound text boxes with the IsHyperlink
property set to True but the pointer does not change to a hand as the
mouse
passes over. The mouse pointer does change to a hand if the text box is
bound to a data source.
Please tell me how to make the mouse pointer change to a hand as it
passes
over an unbound text box.


  #4  
Old May 9th, 2010, 02:21 PM posted to microsoft.public.access.forms
Dirk Goldgar
external usenet poster
 
Posts: 2,529
Default IsHyperlink not working for Unbound Textbox

"DRedDog" wrote in message
...
My Access 2003 form contains unbound text boxes with the IsHyperlink
property set to True but the pointer does not change to a hand as the
mouse passes over. The mouse pointer does change to a hand if the text box
is bound to a data source.
Please tell me how to make the mouse pointer change to a hand as it
passes over an unbound text box.



So far as I can tell, setting IsHyperlink to Yes/True for an unbound text
box doesn't make it behave as a hyperlink; it just causes it to be
formatted as hyperlinks are formatted. You can use code to make it behave
as a hyperlink, and even (with a little difficulty in Access 2003) make a
hand cursor appear when mousing over it.

It's not hard to do, but maybe there's an easier way to accomplish your
goal. Why exactly are you using an unbound text box as a hyperlink, rather
than a label with a hyperlink address, or a control bound to a hyperlink
field? What are you really trying to do?

--
Dirk Goldgar, MS Access MVP
Access tips: www.datagnostics.com/tips.html

(please reply to the newsgroup)

  #5  
Old May 9th, 2010, 02:30 PM posted to microsoft.public.access.forms
Dirk Goldgar
external usenet poster
 
Posts: 2,529
Default IsHyperlink not working for Unbound Textbox

"Dirk Goldgar" wrote in message
...

So far as I can tell, setting IsHyperlink to Yes/True for an unbound text
box doesn't make it behave as a hyperlink; it just causes it to be
formatted as hyperlinks are formatted.


Note: I believe ADPs are different from MDBs in this regard. Although I
haven't used hyperlinks in ADPs, I gather from various side comments in help
topics that in ADPs, setting a control's IsHyperlink property to True makes
it behave as a hyperlink, while in MDBs the underlying field must have the
Hyperlink data type.

--
Dirk Goldgar, MS Access MVP
Access tips: www.datagnostics.com/tips.html

(please reply to the newsgroup)

  #6  
Old May 9th, 2010, 07:57 PM posted to microsoft.public.access.forms
David Taylor[_3_]
external usenet poster
 
Posts: 1
Default IsHyperlink Not Working for Unbound Text Boxes

The Click events of the text box controls on a splash screen open forms - not web pages or files. I want the mouse pointer to change to a hand as the mouse rolls over each control.
I thought that the text box IsHyperlink property would do this for me - so I chose text boxes.

I'm stuck with Access 2003 on this one and I don't mind a "little difficulty".

Thanks,

DT

Can clicking a label with a hyperlink address open a form?



Dirk Goldgar wrote:

So far as I can tell, setting IsHyperlink to Yes/True for an unbound textbox
09-May-10

So far as I can tell, setting IsHyperlink to Yes/True for an unbound text
box does not make it behave as a hyperlink; it just causes it to be
formatted as hyperlinks are formatted. You can use code to make it behave
as a hyperlink, and even (with a little difficulty in Access 2003) make a
hand cursor appear when mousing over it.

it is not hard to do, but maybe there is an easier way to accomplish your
goal. Why exactly are you using an unbound text box as a hyperlink, rather
than a label with a hyperlink address, or a control bound to a hyperlink
field? What are you really trying to do?

--
Dirk Goldgar, MS Access MVP
Access tips: www.datagnostics.com/tips.html

(please reply to the newsgroup)

Previous Posts In This Thread:


Submitted via EggHeadCafe - Software Developer Portal of Choice
BOOK REVIEW: Effective C#, Second Edition [Addison Wesley]
http://www.eggheadcafe.com/tutorials...fective-c.aspx
  #7  
Old May 9th, 2010, 09:46 PM posted to microsoft.public.access.forms
Peter Hibbs
external usenet poster
 
Posts: 871
Default IsHyperlink Not Working for Unbound Text Boxes

David,

Perhaps this might help :-

http://bytes.com/topic/access/answer...g-mouse-cursor

Peter Hibbs.

On Sun, 09 May 2010 11:57:25 -0700, David Taylor wrote:

The Click events of the text box controls on a splash screen open forms - not web pages or files. I want the mouse pointer to change to a hand as the mouse rolls over each control.
I thought that the text box IsHyperlink property would do this for me - so I chose text boxes.

I'm stuck with Access 2003 on this one and I don't mind a "little difficulty".

Thanks,

DT

Can clicking a label with a hyperlink address open a form?



Dirk Goldgar wrote:

So far as I can tell, setting IsHyperlink to Yes/True for an unbound textbox
09-May-10

So far as I can tell, setting IsHyperlink to Yes/True for an unbound text
box does not make it behave as a hyperlink; it just causes it to be
formatted as hyperlinks are formatted. You can use code to make it behave
as a hyperlink, and even (with a little difficulty in Access 2003) make a
hand cursor appear when mousing over it.

it is not hard to do, but maybe there is an easier way to accomplish your
goal. Why exactly are you using an unbound text box as a hyperlink, rather
than a label with a hyperlink address, or a control bound to a hyperlink
field? What are you really trying to do?

  #8  
Old May 10th, 2010, 12:59 PM posted to microsoft.public.access.forms
DRedDog
external usenet poster
 
Posts: 10
Default IsHyperlink Not Working for Unbound Text Boxes

Thanks, Peter Hibbs. Setting the value of myLabel.HyperlinkAddress to " "
(space character) does cause the mouse pointer to change to a hand as the
mouse passes over myLabel. But it also causes the space character to be
displayed in little box under the hand. If I could get rid of that little
box then my problem would be solved. Any ideas?

DT

"Peter Hibbs" wrote in message
...
David,

Perhaps this might help :-

http://bytes.com/topic/access/answer...g-mouse-cursor

Peter Hibbs.

On Sun, 09 May 2010 11:57:25 -0700, David Taylor wrote:

The Click events of the text box controls on a splash screen open forms -
not web pages or files. I want the mouse pointer to change to a hand as
the mouse rolls over each control.
I thought that the text box IsHyperlink property would do this for me - so
I chose text boxes.

I'm stuck with Access 2003 on this one and I don't mind a "little
difficulty".

Thanks,

DT

Can clicking a label with a hyperlink address open a form?



Dirk Goldgar wrote:

So far as I can tell, setting IsHyperlink to Yes/True for an unbound
textbox
09-May-10

So far as I can tell, setting IsHyperlink to Yes/True for an unbound text
box does not make it behave as a hyperlink; it just causes it to be
formatted as hyperlinks are formatted. You can use code to make it behave
as a hyperlink, and even (with a little difficulty in Access 2003) make a
hand cursor appear when mousing over it.

it is not hard to do, but maybe there is an easier way to accomplish your
goal. Why exactly are you using an unbound text box as a hyperlink,
rather
than a label with a hyperlink address, or a control bound to a hyperlink
field? What are you really trying to do?


  #9  
Old May 10th, 2010, 02:58 PM posted to microsoft.public.access.forms
Dirk Goldgar
external usenet poster
 
Posts: 2,529
Default IsHyperlink Not Working for Unbound Text Boxes

"David Taylor" wrote in message ...
The Click events of the text box controls on a splash screen open forms -
not web pages or files. I want the mouse pointer to change to a hand as
the mouse rolls over each control.
I thought that the text box IsHyperlink property would do this for me - so
I chose text boxes.

I'm stuck with Access 2003 on this one and I don't mind a "little
difficulty".



You can use Windows API calls to change the cursor in the control's
MouseMove event. With the code from this link:

http://www.mvps.org/access/api/api0044.htm

.... in a standard module, you can set your text box's OnMouseMove property
to this expression:

=MouseCursor(32649)

The cursor will change to a "hand" while the mouse is over the control, and
change back automatically when you move it off the control.

--
Dirk Goldgar, MS Access MVP
Access tips: www.datagnostics.com/tips.html

(please reply to the newsgroup)

  #10  
Old May 10th, 2010, 04:06 PM posted to microsoft.public.access.forms
Peter Hibbs
external usenet poster
 
Posts: 871
Default IsHyperlink Not Working for Unbound Text Boxes

David,

See Dirk Goldgar's reply which would be the easiest to use. Post back
if you have any problems implementing it.

Peter Hibbs.

On Mon, 10 May 2010 07:59:04 -0400, "DRedDog"
wrote:

Thanks, Peter Hibbs. Setting the value of myLabel.HyperlinkAddress to " "
(space character) does cause the mouse pointer to change to a hand as the
mouse passes over myLabel. But it also causes the space character to be
displayed in little box under the hand. If I could get rid of that little
box then my problem would be solved. Any ideas?

DT

"Peter Hibbs" wrote in message
.. .
David,

Perhaps this might help :-

http://bytes.com/topic/access/answer...g-mouse-cursor

Peter Hibbs.

On Sun, 09 May 2010 11:57:25 -0700, David Taylor wrote:

The Click events of the text box controls on a splash screen open forms -
not web pages or files. I want the mouse pointer to change to a hand as
the mouse rolls over each control.
I thought that the text box IsHyperlink property would do this for me - so
I chose text boxes.

I'm stuck with Access 2003 on this one and I don't mind a "little
difficulty".

Thanks,

DT

Can clicking a label with a hyperlink address open a form?



Dirk Goldgar wrote:

So far as I can tell, setting IsHyperlink to Yes/True for an unbound
textbox
09-May-10

So far as I can tell, setting IsHyperlink to Yes/True for an unbound text
box does not make it behave as a hyperlink; it just causes it to be
formatted as hyperlinks are formatted. You can use code to make it behave
as a hyperlink, and even (with a little difficulty in Access 2003) make a
hand cursor appear when mousing over it.

it is not hard to do, but maybe there is an easier way to accomplish your
goal. Why exactly are you using an unbound text box as a hyperlink,
rather
than a label with a hyperlink address, or a control bound to a hyperlink
field? What are you really trying to do?

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:11 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.