After Update not working

A

Alan Fisher

I have a form with a calendar in the header and I have a
date text field in the detail section. I have put code in
the double click of the date field which brings the
calendar date in and that works just fine. The problem is
I have code in the After Update event of the date field
that doesn't run when I use the double click method. If I
manually enter the date the code works just fine. If I put
the same code after the code in the double click event it
also works but the user may not always double click to
bring the date in. That leaves me with putting the same
code in both the double click and after update events. It
seems like there should be a less redundant way to do
this. Any ideas?
 
S

Steve Schapel

Alan,

One way to handle this sort of situation is, for example, put the code
in the After Update event, and then, at the end of the DoubleClick
event, you can put the equivalent of...
Call MyDateField_AfterUpdate
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top