Results 1 to 3 of 3
  1. #1
    hnhpak is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Jan 2015
    Location
    Karachi Pakistan
    Posts
    28

    Smile Replace value of Yes/No field in a query for all records at once

    I have a form(Datasheet view) record list through a query "PTM List" for selected criteria.



    In the said Table/Query i have a Yes/No type field [Print_Select], that field appears in the form as check button for each record.

    Through this check button i am manually selecting the records for printing Notice/Circular for selected records only.

    I have a control button in form header through which i am printing report (Notice/Circular) for the selected records only.

    To print print other records I have to deselect all check buttons manually and then select other records manually to print report next time for another selected records.

    Up to this level program work properly.

    Now I want to add a check button in the form header "Unbounded" or "Bounded with another table yes/No type field [Control].[SelectAll]". Through this check button on After Update I want to replace all values of the field [Print_Select] in the above mentioned query .

    I also want to deselect all records by replace value to 0 or False for all records when form open next time by Event on Load or at the time of Closing the from by Event On Close.

    I will be grateful if any one can help in this regards.

    Regards

    Syed Haseeb ul Hasan

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    You can use an Update Query to set/reset all the values for a certain field to a specified value.
    So, just set up those Update Queries, and add a Command Button which calls on those queries to run them.

  3. #3
    hnhpak is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Jan 2015
    Location
    Karachi Pakistan
    Posts
    28
    Thanks JoeM for the help, it works.


    Regards
    Haseeb ul Hasan

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

Similar Threads

  1. Replies: 2
    Last Post: 02-26-2015, 09:33 AM
  2. Replies: 11
    Last Post: 08-10-2014, 06:13 PM
  3. Replies: 1
    Last Post: 11-30-2012, 05:57 AM
  4. Replies: 6
    Last Post: 07-25-2012, 06:42 AM
  5. Replies: 3
    Last Post: 06-07-2012, 07:05 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