By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,960 Members | 990 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,960 IT Pros & Developers. It's quick & easy.

How to check check which control is active

P: n/a
Access 2000

I want to run some code on the Form_BeforeInsert event. But if the user is
entering data into one particular text box I do not want the code to run.
Something like...

If user not in control 'txtDate' then
run some code here
end if

How can I check which control the user is entering data before running the
code?

Thanks for any help.

Adrian
Nov 13 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Adrian wrote:
Access 2000

I want to run some code on the Form_BeforeInsert event. But if the user is
entering data into one particular text box I do not want the code to run.
Something like...

If user not in control 'txtDate' then
run some code here
end if

How can I check which control the user is entering data before running the
code?

Thanks for any help.

Adrian


See if ActiveControl will help.
Nov 13 '05 #2

P: n/a
Salad,

Thanks very much

Adrian

"Salad" <oi*@vinegar.com> wrote in message
news:0H*****************@newsread3.news.pas.earthl ink.net...
Adrian wrote:
Access 2000

I want to run some code on the Form_BeforeInsert event. But if the user is entering data into one particular text box I do not want the code to run. Something like...

If user not in control 'txtDate' then
run some code here
end if

How can I check which control the user is entering data before running the code?

Thanks for any help.

Adrian


See if ActiveControl will help.

Nov 13 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.