Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 2005 > Visual Basic 2005 Basics
|
Visual Basic 2005 Basics If you are new to Visual Basic programming with version 2005, this is the place to start your questions. For questions about the book: Beginning Visual Basic 2005 by Thearon Willis and Bryan Newsome, ISBN: 0-7645-7401-9 please, use this forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Basic 2005 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 30th, 2007, 04:10 PM
Registered User
 
Join Date: Dec 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to manage multiple checkbox result

hy , how to insert in db multiple checkbox result. i have 11 checkboxes, so how to do it , in one query ? please :P

 
Old December 31st, 2007, 10:19 AM
Registered User
 
Join Date: Dec 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i have one table with 2 text field, 11 checboxes and 1 datetime field. all of that i should fill with one button click, in text box i enter the name, i select the date and check specific checkbox so i enter the name, date and value for some of the 11 check box like true


 
Old December 31st, 2007, 11:09 AM
Registered User
 
Join Date: Dec 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i decide to insert values of all checkboxes at once into table with yes/no field. the questione is how code looks for checkbox control:
"checbox.________???"
 
Old January 2nd, 2008, 03:24 AM
Authorized User
 
Join Date: Nov 2004
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to bharatsaboo Send a message via Yahoo to bharatsaboo
Default

if you want to check the state of the checkbox you can do so with the following code :

checkbox.checked <return True or False depending on the checked state>
 
Old January 2nd, 2008, 10:46 AM
Registered User
 
Join Date: Dec 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i want to insert that value : true or false into access table field(yes/no properties)

something like this:

Dim sql As String = "insert into dnEvidencija (elektroth) values"
& "("+cbElektro.Checked + ")"





Similar Threads
Thread Thread Starter Forum Replies Last Post
Urgent :Multiple checkbox value ivanlaw Classic ASP Databases 0 August 11th, 2008 03:54 AM
multiple checkbox columns mariag BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 0 June 4th, 2007 03:06 PM
multiple checkbox store one field mateenmohd Classic ASP Basics 0 June 11th, 2006 01:39 AM
Chapter 12 - Multiple Active Result Sets mdrake BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 9 May 13th, 2006 06:33 AM
how to search on multiple sites and showing result cyberviral Classic ASP Basics 0 March 23rd, 2004 09:08 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.