On Got Focus and On Click

cedtech23

Registered User.
Local time
Today, 15:21
Joined
Jan 28, 2006
Messages
25
I am trying to perform a Function when ever someone clicks_on or tabs to a text box
So I set the following on the event Tab

On Got Focus = Calendarfor([txtDOB])
on Click = Calendarfor([txtDOB])

The tab part works great but if the user click on the text box first then it calls the function twice

I know the reason is that if the user clicks the text box first access it saying that
Got Focus and Click events are triggered thus it runs the function twice.

How can I prevent the function from executing twice when a user clicks on the text box first??
 
Unless I misunderstand, you've answered your own question. You've demonstrated that the focus event will run either way, so take the code out of the click event.
 

Users who are viewing this thread

Back
Top Bottom