Results 1 to 5 of 5
  1. #1
    Agrilima is offline Novice
    Windows 10 Access 2016
    Join Date
    Feb 2021
    Posts
    4

    checkbox value

    hello,



    can someone help me,
    Check my attachment

    i want "OEE" check by itself without manuel check,

    Value of "stopstand mainline" = J or N
    if its J the checkbox has to be marked if N it has to be empty



    Does anyone can help me what code i have to use... i try-ed multiple things but wont work


    Greetz Nicky.
    Attached Thumbnails Attached Thumbnails Annotation 2021-11-30 141219.png  

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    put code in the AFTERUPDATE event

    Code:
    sub txtMainline_afterupdate()
      chkBox.value = ucase(txtMainline) = "J"
    end sub

  3. #3
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,115
    I don't think you need the field OEE in the table if it is as easy, you just calculate it in a query as needed:

    OEE:IIF([stopstand mainline]="J",True,False).

    This will leave it unchecked for everything other than J as you did not mention if there are any other options or what to to if [
    stopstand mainline] is empty.

    Cheers,
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  4. #4
    Agrilima is offline Novice
    Windows 10 Access 2016
    Join Date
    Feb 2021
    Posts
    4
    Quote Originally Posted by Gicu View Post
    I don't think you need the field OEE in the table if it is as easy, you just calculate it in a query as needed:

    OEE:IIF([stopstand mainline]="J",True,False).

    This will leave it unchecked for everything other than J as you did not mention if there are any other options or what to to if [
    stopstand mainline] is empty.

    Cheers
    oh damn ur good haha thank u worked

  5. #5
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,115
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

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

Similar Threads

  1. Replies: 1
    Last Post: 11-26-2014, 02:30 PM
  2. Need help with a Checkbox
    By bigtman07 in forum Access
    Replies: 38
    Last Post: 10-10-2013, 04:19 PM
  3. Checkbox
    By justauser in forum Forms
    Replies: 8
    Last Post: 02-06-2012, 03:24 PM
  4. QBF - Checkbox
    By radink in forum Queries
    Replies: 17
    Last Post: 04-19-2011, 03:47 PM
  5. Using a checkbox help
    By gbjc105 in forum Forms
    Replies: 1
    Last Post: 01-28-2010, 08:27 PM

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