Results 1 to 11 of 11
  1. #1
    Middlemarch is offline Competent Performer
    Windows 10 Access 2019
    Join Date
    Mar 2015
    Posts
    479

    How to Add tick character to a label


    Google tells me you can't resize the checkbox control, but you can use a label control and place a Wingdings character in it. 0xFE gives you the tick icon
    How is 0xFE inputed to the label? I presume some keyboard combination?

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,941
    You use a text box and the format property
    https://www.access-programmers.co.uk...eckbox.305659/

  3. #3
    moke123's Avatar
    moke123 is offline Me.Dirty=True
    Windows 11 Office 365
    Join Date
    Oct 2012
    Location
    Ma.
    Posts
    1,880
    You can also use a command button formatted anyway you want and set the caption property.
    You can also use the tag property to assign a value.

    Code:
    If Me.Command1.Caption = "" Then
            Me.Command1.Caption = "P"   'Capital P is a checkmark in wingdings2
            Me.Command1.Tag = -1
        Else
            Me.Command1.Caption = ""
            Me.Command1.Tag = 0
        End If
    Click image for larger version. 

Name:	checkbox.jpg 
Views:	29 
Size:	2.1 KB 
ID:	52755
    If this helped, please click the star * at the bottom left and add to my reputation- Thanks

  4. #4
    Middlemarch is offline Competent Performer
    Windows 10 Access 2019
    Join Date
    Mar 2015
    Posts
    479
    Thanks you, Interesting from CJ.

  5. #5
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,941
    problem with a button or label is that will only work on a single form, not a datasheet or continuous form.

    You can use an image control on a continuous form since that has a controlsource

    Some further examples here
    https://www.access-programmers.co.uk...s-form.324505/

  6. #6
    jojowhite's Avatar
    jojowhite is offline Competent Performer
    Windows 11 Access 2021
    Join Date
    Jan 2025
    Posts
    437
    as adviced, you can use a Label control (using Wingding font) as your checkbox.
    see DemoForm form on the attached.
    also see the code behind the labels.
    Attached Files Attached Files

  7. #7
    moke123's Avatar
    moke123 is offline Me.Dirty=True
    Windows 11 Office 365
    Join Date
    Oct 2012
    Location
    Ma.
    Posts
    1,880
    You can use an image control on a continuous form since that has a controlsource
    I came across this a while back and was surprised. Not sure what it really means.

    Click image for larger version. 

Name:	Screenshot 2025-02-24 070420.jpg 
Views:	22 
Size:	41.0 KB 
ID:	52759
    If this helped, please click the star * at the bottom left and add to my reputation- Thanks

  8. #8
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,941
    Can you provide the link to that quote?

    To clarify my understanding, image controls (like labels) cannot receive the focus so using an event (click/mouse events) on an image in a continuous form to reference that record to be able to change the image won't work without a lot of extra work - it will effectively be referencing the current record which may not be the record you think you are on.

    However perfectly OK to use to display a value that is not to be changed in this form.

    So using a button (which can receive the focus and therefore sets the current record) to display the image is the solution - per the second link I provided

    OP has not made clear where the checkbox is to be used and whether or not it is 'updateable' by clicking on it. Merely to resize it.

  9. #9
    moke123's Avatar
    moke123 is offline Me.Dirty=True
    Windows 11 Office 365
    Join Date
    Oct 2012
    Location
    Ma.
    Posts
    1,880
    Can you provide the link to that quote?
    https://learn.microsoft.com/en-us/of...i/access.image
    If this helped, please click the star * at the bottom left and add to my reputation- Thanks

  10. #10
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,941
    in 365 they are still there and still work

    Click image for larger version. 

Name:	image_2025-02-25_104215480.png 
Views:	14 
Size:	21.5 KB 
ID:	52769

    Suspect the link is wrong - it is not mentioned for the mouse down/up events which can be used as a click event

  11. #11
    moke123's Avatar
    moke123 is offline Me.Dirty=True
    Windows 11 Office 365
    Join Date
    Oct 2012
    Location
    Ma.
    Posts
    1,880
    Quote Originally Posted by CJ_London View Post
    in 365 they are still there and still work


    Suspect the link is wrong - it is not mentioned for the mouse down/up events which can be used as a click event
    I came across it a few months back. Didn't make much sense back then either.
    If this helped, please click the star * at the bottom left and add to my reputation- Thanks

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

Similar Threads

  1. Replies: 11
    Last Post: 11-09-2022, 09:33 AM
  2. Replies: 2
    Last Post: 09-05-2018, 11:56 PM
  3. Replies: 18
    Last Post: 10-11-2017, 03:07 PM
  4. how to add tick boxs to filter
    By sspreyer in forum Programming
    Replies: 1
    Last Post: 11-05-2013, 09:13 AM
  5. Replies: 3
    Last Post: 07-21-2013, 08:05 AM

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