Results 1 to 2 of 2
  1. #1
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496

    Search form getting wrong results

    I have a table of states related to a table of schools,

    each school has a state



    on a search form I have the query Nz([Forms]![frmSchoolSearch]![cmbState],[tblSchools]![StateID]) under the StateID

    This is so that if nothing in the combobox shows all the schools show, if they select a state from the combo box on the form then it filters the states.

    so if school is state 7 only schools with state 7 should show

    only instead state 6 is showing the state 7 results....

    where did I go wrong?Click image for larger version. 

Name:	capture.JPG 
Views:	11 
Size:	32.5 KB 
ID:	13545

  2. #2
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496
    I have also tried Forms]![frmSchoolSearch]![cmbState]![tblSchools]![StateID]
    with OR is null

    same problem

    Update - Wrong table in combo row source... ignore.

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

Similar Threads

  1. Sum Query Delivers wrong results
    By rbf in forum Queries
    Replies: 5
    Last Post: 03-30-2013, 03:18 PM
  2. Replies: 5
    Last Post: 01-03-2013, 01:38 PM
  3. how to highlight search keywords in results form?
    By Absolute_Beginner in forum Forms
    Replies: 2
    Last Post: 08-22-2011, 04:52 AM
  4. Expression gives wrong results
    By newtoAccess in forum Queries
    Replies: 22
    Last Post: 12-03-2010, 12:21 AM
  5. Search Form Results Displayed In Report
    By warrenjburns in forum Forms
    Replies: 1
    Last Post: 03-18-2009, 02:08 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