Results 1 to 2 of 2

Thread: radiobuttonlist readonly ?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2002
    Location
    Belgium
    Posts
    99

    Question radiobuttonlist readonly ?

    Hello everybody,


    I have a form which needs to be editable or readonly to review.

    Right now I need to make my radiobuttonlist readonly but this property doesn't exist

    I also could enable/disable it but then it's just an ugly grey look.

    Has anyone any idea how I could achieve this ? Maybe I can enable/disable the control but then without making it grey or something (dunno how)

    TIA,

    Bjorn

  2. #2
    Lively Member
    Join Date
    Sep 2002
    Posts
    66
    Is there a lock property for a radio list object? I would do this in access forms to control edit access.
    'Read Only
    object.enabled = false
    object.locked = true
    'Read/Write
    object.enabled=true
    object.locked=false

    If you do not have code within the radio button list you could lock the control that has code to control the radio list. Like if they selected a choice in the radio list and then clicked a button/link to run the code.

    Another idea would be to add code to the radio list that would check their username/role to see if they have rights to edit the options. example

    if username = [users name] then
    'execute code
    else
    'display nothing, java script message box saying that can't edit, or redirect to another page, saying you can't edit
    end if
    Jason Meckley
    Database Analyst
    WITF

Posting Permissions

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



Click Here to Expand Forum to Full Width