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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

onClick(?) help please 3

Status
Not open for further replies.

BullHalseyUSN

Technical User
Aug 28, 2003
72
US
Hello, Experts!

I have a form with several sections. In each section, there are required fields that need to be filled out or my code will choke.

Adding "* Required" to each section of the form would be misleading and confusing since the fields only need to be completed if a person starts working on a particular section.

My thought is, I would like to have text appear only if a person clicks on a combobox in a section (for instance cmbAtDescription). So I thought onClick() would be a good event.

So basically, I have no idea how to craft this.

In plain English, what I would like to achieve is

Private Sub AtDescription_Click()
"When this thing is clicked, I'd like Label75 to appear

Is this possible? Thanks for any help and sorry to parade my ignorance.

Thanks!
 
I don't know if this will help but look into the OnGotFocus, and the OnLostFocus events. From your desscription I think these might be what you need.
 
try:

me.[yourobjectname].visible = true



Randall Vollen
National City Bank Corp.

Just because you have an answer - doesn't mean it's the best answer.
 
Yes, set those lables visible property to False ahead of time and when the object is clicked, make it the lables visible propert True, like this:

Private Sub AtDescription_Click()
me.Label75.visible = True
end sub
 
Wow...I've never seen so many fast responses. Thanks guys.

As we say "Bravo Zulu!"

I will investigate these and let you know.
 
NP. Everyone gets stars today! I actually wound up using onFocus so this was a group effort. hehe.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top