Click here to Skip to main content
15,889,900 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionProblem with check box Pin
nazimghori21-Mar-09 2:57
nazimghori21-Mar-09 2:57 
AnswerRe: Problem with check box Pin
DaveAuld21-Mar-09 3:38
professionalDaveAuld21-Mar-09 3:38 
GeneralRe: Problem with check box Pin
nazimghori21-Mar-09 4:05
nazimghori21-Mar-09 4:05 
AnswerRe: Problem with check box Pin
tech60321-Mar-09 5:52
tech60321-Mar-09 5:52 
GeneralRe: Problem with check box Pin
DaveAuld21-Mar-09 6:25
professionalDaveAuld21-Mar-09 6:25 
GeneralRe: Problem with check box Pin
nazimghori21-Mar-09 7:50
nazimghori21-Mar-09 7:50 
QuestionRe: Problem with check box Pin
nazimghori21-Mar-09 7:59
nazimghori21-Mar-09 7:59 
AnswerRe: Problem with check box Pin
DaveAuld21-Mar-09 11:05
professionalDaveAuld21-Mar-09 11:05 
Ok,

The code is doing what you are asking to do, but i think i now know what you are trying to do.

You want to insert 'Yes' or 'No' into the SQL string based on whether the checkbox is checked or not.

If that is the case then;
<br />
Dim tempString as String = ""<br />
If Me.chbox1.Checked Then tempString = "Yes" else tempString = "No"<br />
<br />
Dim str As String = "insert into spoke_mast(area_numb,area_code,area_name,area_alias,area_select,area_tpemct) values ('" + Me.txt3.Text + "','" + Me.txt4.Text + "','" + Me.txt1.Text.ToUpper + "','" + Me.txt2.Text.ToUpper + "','" + tempString + "','" + Me.cmbbox1.Text + "')"<br />
<br />
obj.strexecutesql(str) <br />



QuestionRe: Problem with check box Pin
nazimghori21-Mar-09 18:23
nazimghori21-Mar-09 18:23 
AnswerRe: Problem with check box [modified] Pin
DaveAuld21-Mar-09 21:54
professionalDaveAuld21-Mar-09 21:54 
QuestionRe: Problem with check box Pin
nazimghori21-Mar-09 22:58
nazimghori21-Mar-09 22:58 
QuestionRe: Problem with check box Pin
nazimghori21-Mar-09 23:11
nazimghori21-Mar-09 23:11 
AnswerRe: Problem with check box Pin
DaveAuld21-Mar-09 23:52
professionalDaveAuld21-Mar-09 23:52 
AnswerRe: Problem with check box Pin
Henry Minute23-Mar-09 10:57
Henry Minute23-Mar-09 10:57 
QuestionRe: Problem with check box Pin
Leinad_3021-Dec-10 12:08
Leinad_3021-Dec-10 12:08 
Questionvb.net pass paraqmeters to crystal reports Pin
jazzgirl20-Mar-09 19:57
jazzgirl20-Mar-09 19:57 
QuestionHow do i handle Group Hierarchy? Pin
r_mohd20-Mar-09 18:18
r_mohd20-Mar-09 18:18 
AnswerRe: How do i handle Group Hierarchy? Pin
Henry Minute21-Mar-09 9:57
Henry Minute21-Mar-09 9:57 
QuestionUsing functions in Access Modules using OLEDb ExecuteNonQuery Pin
Rob Beckinsale20-Mar-09 6:23
Rob Beckinsale20-Mar-09 6:23 
AnswerRe: Using functions in Access Modules using OLEDb ExecuteNonQuery Pin
Eddy Vluggen21-Mar-09 0:22
professionalEddy Vluggen21-Mar-09 0:22 
GeneralRe: Using functions in Access Modules using OLEDb ExecuteNonQuery Pin
Rob Beckinsale21-Mar-09 1:13
Rob Beckinsale21-Mar-09 1:13 
QuestionVB??????? Pin
jackjames1548620-Mar-09 6:18
jackjames1548620-Mar-09 6:18 
AnswerRe: VB??????? Pin
Jon_Boy20-Mar-09 7:24
Jon_Boy20-Mar-09 7:24 
AnswerRe: VB??????? Pin
Dave Kreskowiak20-Mar-09 10:21
mveDave Kreskowiak20-Mar-09 10:21 
AnswerRe: VB??????? Pin
Christian Graus20-Mar-09 11:08
protectorChristian Graus20-Mar-09 11:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.