"Dorian" <Dorian[ at ]discussions.microsoft.com> wrote in message news:DF4DBCCF-0256-4417-B00E-39A78BC3F982[ at ]microsoft.com...
[Quoted Text] > Which is the best event to use to detect changes in a combo box selection? > I need to detect the date/time of every change to a combo box selection > even > if it changes multiple times before the BeforeUpdate event.
I assume by "BeforeUpdate event", you mean the BeforeUpdate event of the form, not the combo box. But you want to know every time the user changes selections in the combo box, even if they do it multiple times before saving the record.
I'd use the control's AfterUpdate event for this. You certainly *don't* want to use the Change event, because if the user types into the control instead of using the mouse, the Change event will fire with every keystroke. I believe you *could* use the Click event, because that event has been jiggered to behave similarly to the AfterUpdate event; however, it seems to me "AfterUpdate" explains itself much better.
-- Dirk Goldgar, MS Access MVP www.datagnostics.com
(please reply to the newsgroup)
|