Results 1 to 3 of 3

Thread: confused in control array of option buttons

  1. #1

    Thread Starter
    Hyperactive Member shirishdawane's Avatar
    Join Date
    Dec 2004
    Location
    Mumbai,India
    Posts
    363

    Unhappy confused in control array of option buttons

    hi,
    i have 4 option buttons in 1 frame & option buttons are in control array. i want to store caption of option button in database. when i write dbfield=optionbutton(0).caption then it stores only opt. button's 0'th index field. so plz help me out to save either of captions amongs 4 opt. buttons.

  2. #2
    Addicted Member
    Join Date
    Aug 2004
    Posts
    176

    Re: confused in control array of option buttons

    I don't understand your problem but

    optionbutton(0).caption
    optionbutton(1).caption
    optionbutton(2).caption
    optionbutton(3).caption

    this will give all the four captions

  3. #3
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: confused in control array of option buttons

    you would need to concatenate the fields into one db field, or use 4 fields.

    use

    Code:
    optionbutton(0),optionbutton(1),optionbutton(2) And optionbutton(3)
    or for the first choice,

    Code:
    optionbutton(0) & " / " & optionbutton(1) & " / " & optionbutton(2) & " / " & optionbutton(3)

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