Results 1 to 2 of 2
  1. #1
    abodi is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2011
    Posts
    31

    Form not refreshing when changing combo box.

    I've got 2 forms that don't update. Theres some complex code in the text boxes but essentially they display and filter information based on the dropdown boxes.



    On the CSR view leave availabilty forms the boxes update but only when clicking on the date. So i can change site and nothing happens until i click on the date then it updates. I can't figure out why? (only the left most column is enabled to update from the site dropdown.)

    On the other leave availability form it has a similar issue. site quota and site available update but changing the site combo box does not update the site approved box. unless you then click the date and then click on the form after updating the date.

    I've attached the DB as that is going to be better than any explanation I could provide. your assistance and direction would be so appreciated.
    Attached Thumbnails Attached Thumbnails exm1.png   exm2.png  
    Attached Files Attached Files

  2. #2
    JeffChr is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Feb 2014
    Posts
    82
    so for the forViewLeaveAvailability this seems to work:

    Private Sub cboSite_AfterUpdate()
    Me.Refresh
    End Sub

    and for the CSR form (same thing):

    Private Sub cboSite_AfterUpdate()
    Me.Refresh
    End Sub

    It would be best not to type this code directly into the VBA module. Open your forms in design mode and use event properties to add this via the after-update event for the combo boxes. Sometimes when you enter control code directly into vba the form does not recognize it so it is best to click your way through the control's property dialogs.

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

Similar Threads

  1. Changing Form's displayed Sub-Form by Combo-Box selection.
    By IncidentalProgrammer in forum Forms
    Replies: 4
    Last Post: 09-16-2014, 01:53 PM
  2. Refreshing the form vs. requerying
    By Access_Novice in forum Forms
    Replies: 9
    Last Post: 01-01-2014, 07:24 PM
  3. Refreshing a combo box
    By tcheck in forum Access
    Replies: 3
    Last Post: 02-21-2012, 12:29 PM
  4. Replies: 0
    Last Post: 11-23-2011, 04:06 PM
  5. Access form combo box value changing
    By justrizlee in forum Forms
    Replies: 1
    Last Post: 12-22-2010, 08:56 AM

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