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

    UPDATE: sorted

  2. #17
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    You aren't handling the Null field.

    StrName = IIf(IsNull(Me.txtSchoolS), "", " and Nz([SchoolName],'') Like ""*" & Me.txtSchoolS & "*""")
    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.

  3. #18
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496
    Quote Originally Posted by June7 View Post
    You aren't handling the Null field.

    StrName = IIf(IsNull(Me.txtSchoolS), "", " and Nz([SchoolName],'') Like ""*" & Me.txtSchoolS & "*""")
    Clearing everything and using Allan's method - see if that will work for this particular form

    other form using his method works great.

  4. #19
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496
    Sorted - Allan's method works great (and a smidge faster too)

    Thanks June for your help (and everyone else)

    ...now to build in error traps... sigh

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 01-21-2014, 11:35 AM
  2. Replies: 3
    Last Post: 05-10-2013, 10:49 PM
  3. Replies: 7
    Last Post: 05-23-2012, 02:19 PM
  4. saving records without null or empty fields
    By amber mara in forum Access
    Replies: 1
    Last Post: 05-05-2010, 02:34 PM
  5. Query including Null relationship?
    By David Criniti in forum Database Design
    Replies: 0
    Last Post: 08-14-2009, 09:10 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