Charlotte Foust
cfoust at infostatsystems.com
Fri May 6 10:22:21 CDT 2005
Screen.ActiveControl.Name
Charlotte Foust
-----Original Message-----
From: Nicholson, Karen [mailto:cyx5 at cdc.gov]
Sent: Friday, May 06, 2005 8:00 AM
To: accessd at databaseadvisors.com
Subject: [AccessD] Current Control Name
I have several controls on a form. Each is named as Ctl1_IF. I want to
be able to capture the name of each control, pulling the text to the
right of the Ctl and use it in calculations. I am tired of typing it
over and over... and it is Friday so where is all the humor at? Here is
an example of one of the pieces of code
Private Sub Ctl1_IF_AfterUpdate()
If (me.[1-IF] > 99) Then
me.result = "FAIL"
End If
Question is, sucking out the name of the current control...
Thanks.
--
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com