dbTalk Databases Forums  

Can you get text box name by double clicking on it?

comp.databases.ms-access comp.databases.ms-access


Discuss Can you get text box name by double clicking on it? in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Karl
 
Posts: n/a

Default Can you get text box name by double clicking on it? - 03-28-2009 , 12:08 PM






I'm tyring to get a Text Boxes name by double clicking on it (don't ask why)

The following always gives me Null

Debug.Print Me.Form.ActiveControl





Reply With Quote
  #2  
Old   
Marshall Barton
 
Posts: n/a

Default Re: Can you get text box name by double clicking on it? - 03-28-2009 , 12:38 PM






Karl wrote:

Quote:
I'm tyring to get a Text Boxes name by double clicking on it (don't ask why)

The following always gives me Null

Debug.Print Me.Form.ActiveControl


That should print the text box's Value.

Try using:
Debug.Print Me.ActiveControl.Name

--
Marsh


Reply With Quote
  #3  
Old   
Marshall Barton
 
Posts: n/a

Default Re: Can you get text box name by double clicking on it? - 03-30-2009 , 10:30 AM



Karl wrote:

Quote:
I'm tyring to get a Text Boxes name by double clicking on it (don't ask why)

The following always gives me Null

Debug.Print Me.Form.ActiveControl

Please keep the correspondence in the newsgroup.

I never used A2K so I am unaware if it had any problems
using Me.ActiveControl.Name

I tested it using A2003 and had no problems.

--
Marsh


Reply With Quote
Reply




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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.