Results 1 to 5 of 5
  1. #1
    workuser is offline Novice
    Windows XP Access 2003
    Join Date
    Jan 2013
    Posts
    5

    Form filter not working

    I tried to create a customer filter for my form like the one pbadly suggested on the data pig site but it will not display all the results correctly.



    I have two different form filters - frmOne (sorted by Employee Name) and fromTwo (sorted by the EmployeeID)

    I believe I exectued it just as instructed and frmOne works accordingly. FrmTwo sorted by the ID, however, acts weird. I have two employees with the same name but different IDs. Apple, A and Bell, B. Both of the names appear in FrmOne which is sorted by name. But when I search for the IDs in FrmTwo access automatically defautls to one of the IDs and does not show both.

    For instance - the first Apple, A has Employee ID 00000000 and the second Apple, A has Employee ID 63559590. Likewise the first Bell, B has Employee ID 22222222 and the second Bell, B has Employee ID 58766934.

    When I enter 63559590 it automatically defaults to 00000000 the Employee ID of the other Apple, A and when I enter 58766934 it automatically defaults to 22222222 the Employee ID of the other Bell, B.
    Attached Files Attached Files

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    What is it you want to happen? The form is currently displaying both records, as you've requested with the criteria. The ID field is unbound, so it does not change when you change records.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    workuser is offline Novice
    Windows XP Access 2003
    Join Date
    Jan 2013
    Posts
    5
    In FrmOne both Apple, As and Bell, Bs appear. I can select either and the other fields will update correctly. In FrmTwo when I select the higher ID of Apple, A or Bell B it automatically changes to the Employee ID that is the smallest in value with the person that has their name.

    I set up both of forms the exact same way just switching around the bound columns. I believe both of the combo boxes are unbound. Is there a way to make it bound to switch to the proper result?

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    You didn't address what you want to happen; do you want the specific record displayed or any with matching names? In any case, the combo should be unbound, but the bound column should be the ID field.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    qa12dx is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Nov 2012
    Location
    india
    Posts
    112
    don't referrence the name. refference the employee id.

    in form 2, move ur criteria to under empl ID in form property query. and ur combo properties change "bound column"= 2. (instead of 1)

    if u r gonna enter the employee id, may be use a text box instead of a combo box...

    ps - cool use of refferencing control in form query. learnt something new

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

Similar Threads

  1. Filter not working the first time
    By NISMOJim in forum Programming
    Replies: 4
    Last Post: 07-07-2012, 06:38 PM
  2. Replies: 2
    Last Post: 08-18-2011, 10:20 PM
  3. Macro Filter not working....
    By avarusbrightfyre in forum Access
    Replies: 2
    Last Post: 06-18-2011, 04:09 PM
  4. Filter Not Working
    By BigCat in forum Reports
    Replies: 13
    Last Post: 06-06-2011, 12:48 PM
  5. Filter By Form not working!
    By Freybourne in forum Access
    Replies: 6
    Last Post: 06-22-2010, 09:41 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