Hello
my tables have a column type varchar(5)
value = 10100
on a form I created five checkbox control
corresponding to the value in column
if the value =1 checkbox= true
and vice versa, the value = 0 checkbox = false
how I can upload the data forms correctly
by any code to help.
thanks a lot
fugio
0
Newbie Poster
Recommended Answers
Jump to PostMake a loop form 1 to length of the text and create a dynamic checkBox and show on your form checked/unchecked.
Dim x as integer for i as integer= 1 to x.length 'do your codes here loop
hope it can give you a way.
Jump to Post@Sanu - note that
Me.Controls("CheckBox" & i)
will directly reference the control (but it has to be cast to CheckBox first).@fugio - you have two examples here that do what you seeem to be asking. If you don't understand something specific please ask instead of just posting code.
All 5 Replies
Santanu.Das
125
Santanu Das
Reverend Jim
4,561
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
fugio
0
Newbie Poster
Santanu.Das
125
Santanu Das
Reverend Jim
4,561
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
Santanu.Das
commented:
Thanks for pointing out an unnecessary loop of controls.
+6
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.