event and form

Mr.K

Registered User.
Local time
Yesterday, 20:22
Joined
Jan 18, 2006
Messages
104
I'm having troubles understanding and picking the right event for a particular action in forms. For example I want to set the background of a form to "15911239"; which event do I pick? I know that Oncurrent will work but I don't neccessary want to "set the color" whenever the record changes, because setting it once would be enough. However, onOpen gave me an error (i guess the form isn't open yet, while I'm trying to give it a color). OnActive?
Some light on this matter would be appreciated and an answer to the above example would help too.

Thanks.
 
Maybe on_focus? Or does that run every time too?

ps. I have a similar question in another topic, I'm also not sure which action to take, so this is also a subscription ;)
 
Put this line of code in the On Load event of your form:

Code:
Me.Detail.BackColor = 15911239

RV
 

Users who are viewing this thread

Back
Top Bottom