Results 1 to 2 of 2
  1. #1
    toolongdidntread is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2019
    Posts
    1

    Microsoft Access Search button (vba combo box) issue

    So my co-worker created a form using VBA to search room details of the terminal, I find that the same result will pop up after I make another search even I am searching for another room. Below is the vba she wrote. Please help if she miss anything or should I do some settings on the database.


    Option Compare Database
    Private Sub ComboAccommodationType_AfterUpdate()
    Me.ComboArea.Requery
    End Sub


    Private Sub ComboTenantSubtype_Click()
    End Sub


    Private Sub ComboUnitNo_AfterUpdate()
    Me.ComboAccommodationType.Requery
    Me.ComboArea.Requery
    End Sub


    ​Many thanks!


  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    All that code does is requery comboboxes. There is no search code. We need to see properties of comboboxes and forms. If you want to provide db for analysis, follow instructions at bottom of my post.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 1
    Last Post: 06-28-2018, 10:08 AM
  2. Replies: 7
    Last Post: 02-25-2016, 05:54 AM
  3. Replies: 4
    Last Post: 05-11-2015, 09:14 AM
  4. Microsoft Access 2003 Import Issue- randomly cutting out first character
    By Bertimismaximus in forum Import/Export Data
    Replies: 9
    Last Post: 09-13-2011, 02:53 PM
  5. Replies: 1
    Last Post: 06-20-2010, 05:04 AM

Tags for this Thread

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