Set All Checkbox field to True

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • anvidc
    New Member
    • Sep 2007
    • 28

    Set All Checkbox field to True

    Hi All,
    how to write a script for a button to select all my checkbox fields




    I'm Using MS Access 2000
    thank you
  • Jim Doherty
    Recognized Expert Contributor
    • Aug 2007
    • 897

    #2
    Originally posted by anvidc
    Hi All,
    how to write a script for a button to select all my checkbox fields




    I'm Using MS Access 2000
    thank you
    Command Button called 'select all' or something and code behind that as

    Code:
    dim myupdate As String
    myupdate="UPDATE tblCustomers SET nameofmycheckboxfield=TRUE;"
    DoCmd.SetWarnings False
    DoCmd.RunSQL myupdate
    DoCmd.SetWarnings True
    Me!ListBoxName.Requery

    Comment

    • anvidc
      New Member
      • Sep 2007
      • 28

      #3
      Originally posted by Jim Doherty
      Command Button called 'select all' or something and code behind that as

      Code:
      dim myupdate As String
      myupdate="UPDATE tblCustomers SET nameofmycheckboxfield=TRUE;"
      DoCmd.SetWarnings False
      DoCmd.RunSQL myupdate
      DoCmd.SetWarnings True
      Me!ListBoxName.Requery
      Thank a lot is working...

      Comment

      Working...