Re: Trigger event on change to unbound text in unbound form progra
From: AbeR (AbeR_at_discussions.microsoft.com)
Date: 01/06/05
- Next message: Sprinks: "RE: Combo Box"
- Previous message: Brook: "RE: Combo Box"
- In reply to: John Doe: "Re: Trigger event on change to unbound text in unbound form programmat"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 6 Jan 2005 11:33:03 -0800
Thanks!
"John Doe" wrote:
> Try using the OnChange event for the date field instead of the
> AfterUpdate event.
>
> That seems to work pretty well for me (I have a database app that I'm
> basically doing the same thing).
>
>
> On Thu, 6 Jan 2005 16:53:41 -0000, "Brendan Reynolds" <brenreyn at
> indigo dot ie> wrote:
>
> >The Before and After Update events of a control are not fired when you
> >change the value of that control programmatically, if that is what you mean.
> >The usual solution is to call any code that you would have called from the
> >Before or After Update event from the code that changed the value. If you
> >don't want to do that, a possible alternative might be to use the Timer
> >event of the form. Use a static variable in the Timer event to keep track of
> >the previous value of the control, and compare that to the current value.
>
>
>
>
> "AbeR" <AbeR@discussions.microsoft.com> wrote in message
> news:F08C9222-14EA-4D43-A9F3-42C146416814@microsoft.com...
> > I'm developing an adp (access project)
> >
> > I have an unbound field in an unbound form that I need to check for
> > changed
> > data from another form to trigger an action. I don't seem to generate an
> > even
> > when that happens.
> >
> > Let me explain:
> > I have built a dashboard form that collects information from many tables.
> > A
> > set of those text controls return date fields from different tables. If I
> > uses an after update on any of these controls I can write to the
> > appropriate
> > table (so far no problem).
> >
> > I have a form that is essentially a calendar in dialog box to improve the
> > user interface. Double click on any txtbox that should contain dates and
> > the
> > date is shown in the calendar. Change the calendar and the date appears in
> > the appropriate text box (so far no problem)
> >
> > If I change the date in any text box by physically overwriting the
> > contents
> > the after_update event works. If I change the date by using my calendar
> > control dialog form the text box renders the correct date, but I can't
> > seem
> > to trigger an event.
> >
> > Any suggestions (without having to write ugly, unmentionable code in the
> > calendar form since each textbox does something different?)
> >
> > Thank you for any recommendations.
> > -- Abe
> >
>
>
>
- Next message: Sprinks: "RE: Combo Box"
- Previous message: Brook: "RE: Combo Box"
- In reply to: John Doe: "Re: Trigger event on change to unbound text in unbound form programmat"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|