Results 1 to 2 of 2
  1. #1
    Patience is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    May 2010
    Posts
    52

    Query result = 0 matches. I want this number in my form!

    Hi,



    I have a query wich sometimes returns zero results. However, I want the query to return the digit 0. Since it does not, my form turns blank because there were no matches. How can I fix this?

    I can get it to work with dates. Here the query returns the digit 0 and my form does not go blank.

    Thank you very much in advance!

  2. #2
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    shot in the dark but...

    have the textbox displaying the 0 be set to:
    SELECT Count (myTable.myField)
    FROM myTable
    WHERE myField = (insert your original SQL here)

    let me know if that works.

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

Similar Threads

  1. Replies: 2
    Last Post: 05-18-2010, 01:43 PM
  2. If Query result Is Null...MsgBox..Okl
    By Bruce in forum Forms
    Replies: 28
    Last Post: 03-10-2010, 10:57 AM
  3. How do I determine a SQL query result?
    By Trainman in forum Database Design
    Replies: 1
    Last Post: 10-15-2009, 04:49 AM
  4. Replies: 1
    Last Post: 07-12-2009, 05:09 PM
  5. Result of Count Query not known elsewhere
    By Carole in forum Access
    Replies: 1
    Last Post: 09-07-2008, 09:39 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