Results 1 to 2 of 2
  1. #1
    ducecoop is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Oct 2010
    Posts
    41

    Problems with IIF in query

    Access 2003




    I am trying to solve a problem from another post I made that had no solution
    https://www.accessforums.net/access/...form-9241.html

    I have added a field to a query that opens a continuous form

    The new field is [PrivatePass]
    I want that field to display the contents of the field [ComputerPassword]
    unless the field [Privacy] (a yes/no field) is checked and then I want it to display *******

    this is what I am using in the criteria of [PrivatePass]
    Code:
    IIf([Privacy]=True,"******",[ComputerPassword])
    When I run the query I get 0 records

    Any ideas?

    tia

    Dave

  2. #2
    ducecoop is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Oct 2010
    Posts
    41
    OK - I am officially an idiot

    I put the IIF in the criteria instead of the field name.
    Got it working now

    thanks for reading

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

Similar Threads

  1. SQL Query Problems
    By slaterino in forum Queries
    Replies: 2
    Last Post: 08-26-2010, 09:06 AM
  2. Query problems
    By geoffishere in forum Forms
    Replies: 1
    Last Post: 02-09-2010, 12:43 PM
  3. Problems with run permissions on a query
    By admaldo in forum Queries
    Replies: 0
    Last Post: 05-09-2006, 09:04 AM
  4. Replies: 0
    Last Post: 04-21-2006, 06:55 AM
  5. Problems with a query in a list box
    By admaldo in forum Forms
    Replies: 1
    Last Post: 04-05-2006, 05:28 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