Results 1 to 7 of 7
  1. #1
    mikel is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jun 2009
    Posts
    37

    Active/Inactive Option

    I have an Inventory database that I am creating and I would like to be able to make an item Active/Inactive instead of just deleting the record. But, in my forms and reports I don't want to see the inactive items.

    I add the field to my table, but how do I get the forms and reports to only show Active records?

  2. #2
    Join Date
    Oct 2009
    Location
    Bromsgrove, West Midlands, England
    Posts
    13
    If your reports and forms are based on queries then you would set this up in the criteria or the query.

  3. #3
    mikel is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jun 2009
    Posts
    37
    So the only way is to use a Query as the source for the form and report? Right now the forms and reports use tables as the source. I'll switch it and see how it works. Thanks.

  4. #4
    Join Date
    Oct 2009
    Location
    Bromsgrove, West Midlands, England
    Posts
    13
    Either creat a Query and use this as the record source or click on the ... next to the records source for the form and create the query there.

  5. #5
    mikel is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jun 2009
    Posts
    37
    Ok, that worked.

    Is there a way to have the form show all records and then click a button or a check box and then have the form show only active records? Or what if there was a combo box with the option to show all records, only active, and only inactive records. Is there a way to get the form to only show the records based on the combo box result?

  6. #6
    Join Date
    Oct 2009
    Location
    Bromsgrove, West Midlands, England
    Posts
    13
    You could set up an Options Group or Check Box and refrence this in the query. Then add VBA for the Check Box on change event to requery.
    me.requery
    This would only allow you to show active or inactive but not both.

  7. #7
    mikel is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jun 2009
    Posts
    37
    Sorry, still trying to learn Access. I'm not sure how to do that. Can you offer more specific steps?

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

Similar Threads

  1. Error using left join accessing 2 active connections
    By peterg2000 in forum Programming
    Replies: 0
    Last Post: 10-05-2009, 05:04 PM
  2. no option to import xls file or option all files
    By captgnvr in forum Import/Export Data
    Replies: 3
    Last Post: 09-22-2009, 10:19 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