Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object reference to the current control
Message
 
To
04/06/2002 19:17:41
Jason Dalio
Northern Interior Regional Health Board
Prince George, British Columbia, Canada
General information
Forum:
Microsoft Office
Category:
Access
Miscellaneous
Thread ID:
00664527
Message ID:
00664923
Views:
22
>You could put the following in your code then:
>
>
>Private Sub txtName_LostFocus()
>
>   Call CleanupText(txtName)
>
>End Sub
>
>Private Sub CleanupText(txtBox as TextBox)
>
>   txtBox.Text = Ucase(txtBox.Text)
>
>End Sub
>
>
>A little cumbersome but it reduces the code in each LostFocus event. If there is a better way to do this then I don't know how.

The amount of code doesn't concern me as much as having to type in every control's name. But since I have already had to open every control's event, I suppose it isn't much more trouble. I miss OOP.
Previous
Reply
Map
View

Click here to load this message in the networking platform