Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB Components
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
VB Components Issues specific to components in VB.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Components 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 Display Modes
  #1 (permalink)  
Old December 6th, 2005, 06:21 AM
Registered User
 
Join Date: Dec 2005
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to i save checkbox value to database ADO

How to i save checkbox value to database ADO??



Reply With Quote
  #2 (permalink)  
Old December 13th, 2005, 05:19 PM
Friend of Wrox
 
Join Date: Nov 2004
Location: Port Orchard, WA, USA.
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Code:
    If ctrl.checked = True Then
        cmd.CommandText = "UPDATE table     " & _
                          "SET field = TRUE " & _
                          "WHERE ID =  whatever "
    Else
        cmd.CommandText = "UPDATE table     " & _
                          "SET field = TRUE " & _
                          "WHERE ID =  whatever "
    End If
    cmd.Execute
Reply With Quote
Reply


Thread Tools
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
Save checkbox settings to cookie clockwork Beginning PHP 1 November 20th, 2007 04:45 AM
i cannot save to my database knightneo Beginning PHP 3 January 29th, 2007 07:06 AM
Save Checkbox with boolean 0/1 value rdove84 ASP.NET 1.0 and 1.1 Basics 5 October 24th, 2006 09:12 AM
save database kim Visual Basic 2005 Basics 0 March 20th, 2006 03:34 PM
checkbox from database ? please help me. majidnakit JSP Basics 0 September 14th, 2005 03:53 PM



All times are GMT -4. The time now is 06:50 PM.


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