Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 125
  • Last Modified:

control with index!?

Hello experienced developer!

I have problem that makes me crazy.

If I have control (checkbox1) on form, I can read state by
me.controls("checkbox1").value

But how to do it if control has index - like checkbox1(0) ??
me.controls("checkbox1(0)").value
somehow does not work.

I can't use simply checkbox1(0).value, because all control names are in DB and i use next procedure to save state of controls:

me.controls(my_recordset!ctrl_name).value

where my_recordset!ctrl_name are names of controls on form (checkbox1, checkbox2, text1,text2)

It was all OK until number of controls didn't reach 255. Now I am forced to use indexes and now
me.controls(my_recordset!ctrl_name).value
become useless. Or not?

Can anyone help me?

Thank you!

Mitja
0
mitja040500
Asked:
mitja040500
1 Solution
 
JacamarCommented:
Me.Checkbox1(0).Value
0
 
AzraSoundCommented:
Me.Controls("Check1")(0).Value = vbChecked
0
 
mitja040500Author Commented:
Thank You!

You saved me at least one sleeples night!

Mitja
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now