Results 1 to 5 of 5
  1. #1
    bronson_mech is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2013
    Posts
    94

    Yes or No Checkbox Help

    Hello frndz,



    I need a help, I have created two separate form & Table for Issued material & Return Materials, I have created a yes/no checkbox for each line item in Issued Material… if that line item is a returnable tool then I’ll check that yes or no box, so if the box is checked then it is returnable tools. Ok now come to return material form…. If I enter the issue slip No (autonumber created in Issue Form) it should only the returnable tools which I Checked in issue form…. I can’t able to figure it out.. can anyone help me in this pls………

  2. #2
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    The Return Material Form should have a combobox in the header set to look up a record in the table (this is an option to choose with the wizard when putting the combobox into the form).

    First check that this works - i.e. select a slip number and the data in the form changes to it.....

    Once that works then you need to modify the query that drives the combobox so it only displays Yes checks - - to do that you have to go to the Properties of the combobox and modify it's record source query - - add the Yes/No field and criteria that it must be -1.

  3. #3
    bronson_mech is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2013
    Posts
    94

    Yes or no Checkbox Help

    Thanks a lot NTC for your suggestion,

    the thing i want is i have a form with subform, in the main for i have a yes/no checkbox named as return, if i click this yes/no box all yes/no box should be checked in subform.... Like Select All Option.....


    Click image for larger version. 

Name:	checkbox issue.jpg 
Views:	6 
Size:	134.2 KB 
ID:	14572

  4. #4
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    You require an UpdateQuery applied to the subform's table's field. You then need to fire that UpdateQuery based upon the check of the field in the mainform. You actually need 2 ; one for checked and one for unchecked with logic as to which is to fire....

    just fyi.....This is not normalized structure and you shouldn't have to do this - with the main form's check as the parent field - - one can always join to it to know the status of a child record and thus do not need the check field in the child table.

  5. #5
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    Can you show us a jpg of your tables and relationships? As NTC said you do not have a normalized structure, and that may be causing you more grief than you know.
    Proper table structure to support your requirements is critical.
    You may wish to research Normalization.

    Good luck with your project.

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

Similar Threads

  1. Checkbox
    By huongdl1987 in forum Forms
    Replies: 1
    Last Post: 06-23-2011, 05:29 PM
  2. Checkbox help
    By NateHaze in forum Programming
    Replies: 3
    Last Post: 05-26-2011, 02:50 PM
  3. QBF - Checkbox
    By radink in forum Queries
    Replies: 17
    Last Post: 04-19-2011, 03:47 PM
  4. Using a checkbox help
    By gbjc105 in forum Forms
    Replies: 1
    Last Post: 01-28-2010, 08:27 PM
  5. Checkbox
    By Rbtsmith in forum Access
    Replies: 2
    Last Post: 02-17-2009, 04:19 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