Results 1 to 8 of 8
  1. #1
    Ant_Snell is offline Advanced Beginner
    Windows 10 Office 365
    Join Date
    Jul 2021
    Location
    UK
    Posts
    88

    after update on unbound date field

    I have an unbound date field that when updated via the date picker is the criteria used to filter a subform. The after-update code is ‘frm_Cal_Event.Requery’ all works fine however on changing the date the code does not run until tabbing out of the field or pressing F5 (witch users will probably not know to do) I can I get the code to run immediately after changing the date of the unbound date field? Thanks

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,199
    I know this isn't exactly what you're looking for but you could have a button control next to the unbound textbox control labelled something like: Refresh Subform
    It wouldn't even need any code
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    Ant_Snell is offline Advanced Beginner
    Windows 10 Office 365
    Join Date
    Jul 2021
    Location
    UK
    Posts
    88
    Thanks Bob, if all else fails that would be a solution but trying to prevent to many clicks.

  4. #4
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,199
    Have you tried using the On Change event of the textbox
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  5. #5
    Ant_Snell is offline Advanced Beginner
    Windows 10 Office 365
    Join Date
    Jul 2021
    Location
    UK
    Posts
    88
    Bob, as simple as that that did it! Thanks

  6. #6
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,199
    Quote Originally Posted by Ant_Snell View Post
    Bob, as simple as that that did it! Thanks
    You're welcome. Always glad to help if I can
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  7. #7
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    2,759
    I did not suggest that, as if you type in the date, it fires at every keystroke?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  8. #8
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,199
    Quote Originally Posted by Welshgasman View Post
    I did not suggest that, as if you type in the date, it fires at every keystroke?
    I agree. That's why I suggested a one click alternative first. Still, as long as the OP ihas a solution and is happy with it...
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

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

Similar Threads

  1. Replies: 3
    Last Post: 12-21-2021, 07:44 PM
  2. Replies: 4
    Last Post: 08-04-2020, 12:13 AM
  3. Replies: 2
    Last Post: 06-22-2019, 02:26 PM
  4. Immediate Update of Unbound Field
    By FormerJarHead in forum Forms
    Replies: 8
    Last Post: 10-08-2012, 04:39 PM
  5. Replies: 5
    Last Post: 06-23-2012, 10:30 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