
Check for controls on form during Runtime
use this code
dim c as control
for each c in me
if c.name = "personid" then
' my action
' ....
end if
next
OK ???
Flavio
www.flaviosoft.com
salsito ha scritto nel messaggio
Quote:
>I use 2 kind of forms
>1 for People (PersonId)
>1 for Companies (CompanieId)
>From VBA i would like to check which control (personId or
>CampanieId) is on the screen.activeform.(If it exists)
>Thx.
>* Sent from RemarQ http://www.remarq.com The Internet's Discussion Network
*
>The fastest and easiest way to search and participate in Usenet - Free!