Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 2005 > Visual Basic 2005 Basics
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 30th, 2007, 04:10 PM
Registered User
 
Join Date: Dec 2007
Location: , , .
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

Reply With Quote
  #2 (permalink)  
Old December 31st, 2007, 10:19 AM
Registered User
 
Join Date: Dec 2007
Location: , , .
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


Reply With Quote
  #3 (permalink)  
Old December 31st, 2007, 11:09 AM
Registered User
 
Join Date: Dec 2007
Location: , , .
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.________???"
Reply With Quote
  #4 (permalink)  
Old January 2nd, 2008, 03:24 AM
Authorized User
 
Join Date: Nov 2004
Location: Pune, Maharashtra, India.
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>
Reply With Quote
  #5 (permalink)  
Old January 2nd, 2008, 10:46 AM
Registered User
 
Join Date: Dec 2007
Location: , , .
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 + ")"
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 07:30 PM.


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