Results 1 to 2 of 2
  1. #1
    3 Star Lounger
    Join Date
    Dec 2006
    Thanked 0 Times in 0 Posts

    Query value to run if blank (2003)


    I am running a query where a user will be require to input a company name or press cancel. I also want the query to run if the user does not put any value. For example, if a user inputs a company, I want the query to return information on that company. But if a user puts in nothing, then I want the user to get all companies. What do I need to put in the criteria to accomplish this. I thought about an IIF statement, but I don't know if it will work. =IIF([Enter company:],???,???). Any help would be great.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Thanked 31 Times in 31 Posts

    Re: Query value to run if blank (2003)

    Place this in the criteria line:

    [Enter Company] Or [Enter Company] Is Null

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts