Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

button in textbox

Status
Not open for further replies.

matrixindicator

IS-IT--Management
Sep 6, 2007
418
BE
I have a number of buttons on my form. If I click one, the name (a number) should apear in a textbox in the same form.
 
I found this, but you neet a event and procedure for this.

Code:
Me.txtGRPNR = Ctl1.Name
 
What "name". The name of the button or some other name? Do you understand that Name is not a good name to name anything in Access?

A command button has an On Click event that can be used to set a property of a control.

Duane
Hook'D on Access
MS Access MVP
 


Duane said:
Do you understand that Name is not a good name to name anything in Access?
It's like the problem that George Forman's children have, only worse!

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 

Its as close as I could come. After all, every George is a Child, although not every Child is a George. ;-)

I wonder what happens when they say, "Let George do it?" ;-)

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top