Results 1 to 4 of 4
  1. #1
    mhummel is offline Novice
    Windows 10 Access 2016
    Join Date
    Apr 2016
    Posts
    2

    keeping deactivated items in previous records. Checkbox question..

    Hi



    In a table (tblItem) I have these fields. ItemID, ItemName, ItemCategory, Checkboxfield: ItemInactivated

    I want to create a form where I want to enter records from the tblItem via a combobox from where I can choose only active items.

    Should an item be inactive I don't want it to show in the combobox. Still they have to remain in the previous records I made.

    I have tried, but...

    Can anyone help me on this subject?

    I am a novice on this field (Access) however I have basic knowledge

    I appreciate any help thank you.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Try a row source of:

    SELECT * FROM tblItem WHERE ItemInactivated = False
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    mhummel is offline Novice
    Windows 10 Access 2016
    Join Date
    Apr 2016
    Posts
    2
    Hi Paul
    Thanks for your reply.

    I have tried your row source - It leaves me where I was before though...

    Lets say I have entered Item1 in record1 in form and Item2 in record2 etc. When I check Item1 inactive in tblItem it vanish from the record1. I would like to be able to make Item1 inactive for the coming records, but still keep record1 intact.. How do I keep Item1 in record1 even when it's checked inactive?

    Thanks a lot for your help

  4. #4
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Your Combobox needs to be Unbound (i.e. have no Control Source) with the selection made assigned, using the AfterUpdate event of the Combobox, to a Textbox, which is Bound to the Field in the underlying Table.

    By doing this the previously selected, but now inactive element, will still be displayed in old Records, while the cbo will only display active elements.

    Linq ;0)>

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

Similar Threads

  1. Replies: 2
    Last Post: 11-08-2017, 09:04 AM
  2. Only print items that have a checked checkbox?
    By dmon2010 in forum Reports
    Replies: 3
    Last Post: 02-29-2016, 09:26 AM
  3. Replies: 3
    Last Post: 03-06-2014, 10:26 AM
  4. Replies: 1
    Last Post: 07-07-2013, 10:29 PM
  5. Replies: 1
    Last Post: 09-07-2011, 09:22 AM

Tags for this Thread

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