Results 1 to 5 of 5
  1. #1
    Bruzer is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2009
    Posts
    10

    Inactive or active

    how do I make a record active or inactive? so it does not get reported from a query?

  2. #2
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Generally, a status field of some sort. It could be a Boolean Yes/No field, a text field containing "A", "T", etc. Then you simply apply the appropriate criteria in your query:

    WHERE FieldName = True

    WHERE FieldName = "A"
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Bruzer is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2009
    Posts
    10
    I have a yes no text combo box but do not know how to apply the criteria, what should the criteria statment should read?

  4. #4
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I already gave two examples of what it might look like. Adjust them to match your actual data.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    I think theres a misunderstanding here. This isn't something that is located on your form. It is a column that should be in your table. We call it ActiveInd. If a record has a 1 for ActiveInd, it is active. If it has a 0, it is inactive. Then to find active accounts only, you "WHERE tblName.ActiveInd = 1". This should be something taken into consideration when the table is being initially created. I dont see how you would go back and add this feature later on.

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

Similar Threads

  1. Use form List Box to query Active Directory
    By grafiksinc in forum Forms
    Replies: 4
    Last Post: 12-02-2009, 11:56 PM
  2. Active/Inactive Option
    By mikel in forum Database Design
    Replies: 6
    Last Post: 10-09-2009, 07:47 AM
  3. help with queries active (yes/no)
    By islandboy in forum Access
    Replies: 4
    Last Post: 09-04-2009, 12:55 PM
  4. Replies: 1
    Last Post: 12-06-2006, 05:32 PM
  5. sql server active x - HELP!!!!!!!!!!!!!!
    By Valeda in forum Access
    Replies: 0
    Last Post: 06-27-2006, 01:02 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