Results 1 to 4 of 4
  1. #1
    Euler271 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2017
    Posts
    63

    Calendar control doesn't trigger AfterUpdate event

    I have a calendar control that I use to fill an unbound text box. After the calendar control fills the text box I need the AfterUpdate event of the text box to trigger so a subform becomes visible. Filling the text box manually with a date triggers the AfterUpdate event but for some reason filling it with the calendar control does not. I read that the form's AfterUpdate event would trigger but that's not what I need in this case.



    Can someone help with this? Thank you very much for any assistance.

  2. #2
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,114
    When you programmatically populate a control its events won't fire, this is how Access controls work. How do you call the calendar control? You can make the AfterUpdate sub public and call it from somewhere else? Show us some code...

    Cheers,
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    i just use text box w embeded calendar, DATE PICKER.

  4. #4
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,788
    Agree with Ranman, or after you programmatically change the control value, save the record e.g.
    Me.Dirty = False
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 5
    Last Post: 01-29-2022, 07:56 PM
  2. Replies: 10
    Last Post: 03-24-2016, 03:11 PM
  3. Replies: 4
    Last Post: 10-29-2014, 03:49 PM
  4. Replies: 1
    Last Post: 10-15-2011, 01:12 PM
  5. User focus control in AfterUpdate event
    By nosliwmada@gmailcom in forum Programming
    Replies: 3
    Last Post: 12-20-2010, 12:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums