Click here to Skip to main content
15,899,825 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
Questiondll function and arguments Pin
Member 300016220-Mar-09 4:42
Member 300016220-Mar-09 4:42 
AnswerRe: dll function and arguments Pin
Dave Kreskowiak20-Mar-09 4:58
mveDave Kreskowiak20-Mar-09 4:58 
GeneralRe: dll function and arguments Pin
Jon_Boy20-Mar-09 5:07
Jon_Boy20-Mar-09 5:07 
GeneralRe: dll function and arguments Pin
Member 300016220-Mar-09 10:53
Member 300016220-Mar-09 10:53 
QuestionCOM Exception in VB6 to VB.NET conversion [modified] Pin
BREdwards20-Mar-09 2:37
BREdwards20-Mar-09 2:37 
QuestionHow do i capture httprequest or header? Pin
milansolanki19-Mar-09 23:53
milansolanki19-Mar-09 23:53 

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.