Results 1 to 6 of 6
  1. #1
    2 Star Lounger
    Join Date
    Jan 2001
    Posts
    113
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Read Only Fields

    I have some read only fields on my forms. Is there a way to remove the "greyed out" look of these fields?

  2. #2
    Mike B
    Guest

    Re: Read Only Fields

    when you say read only....do you mean to say that you have the control disabled, therefore greyed out. If so, you can enable the control and then set the locked property to true HTH

  3. #3
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Read Only Fields

    And if you don't want your users to be able to "land" on those controls, put some code in the OnEnter event of the control to set the focus to another control.
    Charlotte

  4. #4
    2 Star Lounger
    Join Date
    Jan 2001
    Posts
    113
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Read Only Fields

    Can you suggest the code please (yes I'm being lazy)

  5. #5
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Read Only Fields

    <pre>Private Sub MyControl_Enter()
    Me!MyNextControl.SetFocus
    End Sub</pre>


    Where MyControl is the locked control and MyNextControl is the one you want it to go to instead.
    Charlotte

  6. #6
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Edmonton, Alberta, Canada
    Posts
    326
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Read Only Fields

    If you set disabled to true and locked to true, then the field is not grayed out and the users will not be able to land on those controls.

Posting Permissions

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