[AccessD] Current control

Charlotte Foust cfoust at infostatsystems.com
Mon Sep 24 10:41:24 CDT 2007


Trouble is, when is either PreviousControl or ActiveControl the right
one.  Clicking on buttons, option buttons, tab control tabs, etc., mess
up the logic.  I generally have created a property for the form
CurrentControl and set it in the enter event (or whatever's
appropriate).  Since I don't set it for buttons or tab controls, etc.,
it's more reliable than the built in methods.

Charlotte Foust 

-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart
McLachlan
Sent: Sunday, September 23, 2007 6:55 PM
To: Access Developers discussion and problem solving
Subject: Re: [AccessD] Current control

On 23 Sep 2007 at 12:16, Arthur Fuller wrote:

> In my experience, Susan and Shamil, I have found it useful to identify

> the previously active control -- because clicking on a button or other

> control repositions the ActiveControl. For example, if I have a button

> the user can click, and she does so, then I have lost track of the 
> control she was previously on. I use a static function for this
purpose.
> 

What's wrong with just using Me.PreviousControl ?



--
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com




More information about the AccessD mailing list