Results 1 to 3 of 3
  1. #1
    Remster is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Sep 2010
    Posts
    317

    Formatting of disabled fields

    This is a relatively minor issue, but a niggling one nonetheless. I've set some of the fields on my form to be disabled through conditional formatting. Some of my other fields are checkboxes, option groups and subforms, which can't be disabled through conditional formatting, so I've used VBA. However, the appearances of the labels for these fields differ depending on which method is used – see the attached sample. Is there any way of simulating one or the other method so that the labels look the same? (I realise I have the option of using only VBA, but that would mean undoing a decent amount of work!)

  2. #2
    Remster is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Sep 2010
    Posts
    317
    Right, I've been told the sunken text is hard to read, so I need the code for flattening sunken text (the second lable in my attached example). Surely someone has the answer!

  3. #3
    Remster is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Sep 2010
    Posts
    317
    I've hit upon the solution to this one, completely by chance. I shan't go into how, but here it is:

    1. Change the Back Style of the label for the control that you've disabled using VBA from 'Transparent' to 'Normal'.
    2. Create a duplicate of that label, position it in the same place as the original, and send it to the back.

    If you've used the conditional formatting method and want to create the sunken text effect for the otherwise flat text, skip straight to step 2. I don't know why it works, but it does!

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

Similar Threads

  1. Replies: 1
    Last Post: 10-21-2010, 12:02 PM
  2. Formatting formulas
    By katrinanyc926 in forum Queries
    Replies: 2
    Last Post: 08-16-2010, 07:52 AM
  3. Replies: 1
    Last Post: 02-04-2010, 11:17 AM
  4. Formatting Fields and Fixed Width Exporting
    By Panman01 in forum Access
    Replies: 1
    Last Post: 05-22-2009, 09:32 AM
  5. SWITCHBOARD MANAGER DISABLED ALL THE MENU AND EDIT OPTION
    By ranjit_dutt in forum Programming
    Replies: 0
    Last Post: 04-13-2007, 08:39 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