Results 1 to 6 of 6
  1. #1
    3 Star Lounger
    Join Date
    Mar 2006
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    289
    Thanks
    0
    Thanked 1 Time in 1 Post

    apply format to a control (2003 sp2)

    How can I apply a BOLD format to a control on a form?
    Thanks
    chuck

  2. #2
    Bronze Lounger
    Join Date
    Jan 2001
    Location
    Alzano Lombardo, Italy
    Posts
    1,483
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: apply format to a control (2003 sp2)

    Select the control in design view and click the Bold command on the Formatting toolbar.

  3. #3
    Gold Lounger
    Join Date
    Jun 2001
    Location
    Crystal Beach, FL, Florida, USA
    Posts
    3,436
    Thanks
    1
    Thanked 34 Times in 34 Posts

    Re: apply format to a control (2003 sp2)

    You could open the form in design mode and click the "Bold" icon on the toolbar.

    Or, through code you could set the FontBold property of the control to True.
    Mark Liquorman
    See my website for Tips & Downloads and for my Liquorman Utilities.

  4. #4
    3 Star Lounger
    Join Date
    Mar 2006
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    289
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: apply format to a control (2003 sp2)

    I always leave something out or my post, but your reply Mark, is what I was looking for. In this case the control is referred to in a string expression within a text box.

    The text box value is like this: ="Expenses are currently being paid from" & [PAY_EXPENSES] & " of the Account."

    The value of [PAY_EXPENSES] would be Income or Principal. Since the value is embedded, you might say, in the sentence I thought I would bold it when the form opened. No success yet.
    Thanks
    chuck

  5. #5
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: apply format to a control (2003 sp2)

    If you mean that you want to display only the value of PAY_EXPENSES in bold while the rest of the text remains normal, that is not possible. You can only apply formatting such as font size, color and style to the control as a whole, not to part of it.

  6. #6
    Super Moderator
    Join Date
    Jun 2002
    Location
    Mt Macedon, Victoria, Australia
    Posts
    3,993
    Thanks
    1
    Thanked 45 Times in 44 Posts

    Re: apply format to a control (2003 sp2)

    To achieve that you need to use multiple controls, because you can't apply formatting to part of a control.

    In the example below, there are two labels either side of a textbox. The textbox is bold, the labels are not.
    Attached Images Attached Images
    Regards
    John



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •