Results 1 to 2 of 2
  1. #1
    tylerg11 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Sep 2011
    Posts
    200

    Display message if filter returns no results

    Hello,



    I have a question regarding filtering on an access form. When users apply a filter on the form, if there are no results, the form appears "blank". I'd like to pop up a message that tells the users that no results were returned. Is there any VBA to account for a simple filter not returning results?

    Thanks.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    In the code that runs the search.

    If IsNull(some field or control name here) Then MsgBox "No records match the search criteria. Try again."
    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: 4
    Last Post: 02-22-2012, 12:43 PM
  2. Query returns ro results
    By MichealShinn in forum Queries
    Replies: 5
    Last Post: 02-21-2012, 01:24 PM
  3. How to display message
    By Trojnfn in forum Access
    Replies: 5
    Last Post: 10-20-2011, 12:13 PM
  4. Returned No Results Message Box
    By Swilliams987 in forum Queries
    Replies: 2
    Last Post: 02-04-2011, 12:07 PM
  5. Replies: 13
    Last Post: 01-13-2011, 10:15 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