Click here to Skip to main content
15,890,897 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow to create a loop in visual basic which reads through a sensor through parallel port Pin
Fahimul722-Mar-10 10:42
Fahimul722-Mar-10 10:42 
AnswerRe: How to create a loop in visual basic which reads through a sensor through parallel port Pin
Dave Kreskowiak22-Mar-10 15:20
mveDave Kreskowiak22-Mar-10 15:20 
GeneralNot the LHC Pin
Luc Pattyn22-Mar-10 15:46
sitebuilderLuc Pattyn22-Mar-10 15:46 
GeneralRe: Not the LHC Pin
Dave Kreskowiak23-Mar-10 1:09
mveDave Kreskowiak23-Mar-10 1:09 
GeneralRe: Not the LHC Pin
Luc Pattyn23-Mar-10 4:41
sitebuilderLuc Pattyn23-Mar-10 4:41 
GeneralRe: Not the LHC Pin
Dave Kreskowiak23-Mar-10 6:09
mveDave Kreskowiak23-Mar-10 6:09 
GeneralRe: Not the LHC Pin
Luc Pattyn23-Mar-10 8:14
sitebuilderLuc Pattyn23-Mar-10 8:14 
QuestionInvalid column name error Pin
fresh120722-Mar-10 10:07
fresh120722-Mar-10 10:07 
I am getting the error "Invalid column name" when i try to insert data into SQL Server Express 2008. I only get the error for the fields I put letters in. I don't get the error for the numeric fields. When I enter numbers in all of the fields the data import works fine so I know the column names are correct. The data type is set to VARCHAR for all of the columns so the field should accept letters also. I don't know what the problem is. Here is my code:


Dim myConnection As New SqlClient.SqlConnection
myConnection.ConnectionString = "Data Source=S10615-10\SQLEXPRESS;Initial Catalog=Assessment;Integrated Security=SSPI;"

Dim myCommand As SqlClient.SqlCommand
Dim strSQL As String

myConnection.Open()


strSQL = "INSERT INTO AssessmentPage1 (ClientName, DOB, MedicalRecords, MedicaidNumber, ConsumersName, MedicaidNumber1, ConsumersID, Clinicians, ParentsName, Address, Clinicians1, PhoneNumbers, DateofReferral, DateofAssessment, SchoolName, IdentifyingInformation, PresentingProblems, ReferralInformation) VALUES(" & TextBox1.Text & "," & TextBox2.Text & "," & TextBox3.Text & "," & TextBox4.Text & "," & TextBox5.Text & "," & TextBox6.Text & "," & TextBox7.Text & "," & TextBox8.Text & "," & TextBox9.Text & "," & TextBox10.Text & "," & TextBox11.Text & "," & TextBox12.Text & "," & TextBox13.Text & "," & TextBox14.Text & "," & TextBox15.Text & "," & TextBox16.Text & "," & TextBox17.Text & "," & TextBox18.Text & ")"

myCommand = New SqlClient.SqlCommand(strSQL, myConnection)
myCommand.ExecuteNonQuery()

myConnection.Close()
myCommand.Dispose()
myConnection.Dispose()


Any ideas would help. Im stuck in the mud here.
AnswerRe: Invalid column name error PinPopular
Dave Kreskowiak22-Mar-10 10:36
mveDave Kreskowiak22-Mar-10 10:36 
AnswerRe: Invalid column name error Pin
David Skelly23-Mar-10 2:35
David Skelly23-Mar-10 2:35 
QuestionrichTextBox and lines with word wrap Pin
norrisMiou22-Mar-10 8:13
norrisMiou22-Mar-10 8:13 
AnswerRe: richTextBox and lines with word wrap Pin
Gregory Gadow22-Mar-10 9:28
Gregory Gadow22-Mar-10 9:28 
AnswerRe: richTextBox and lines with word wrap Pin
William Winner23-Mar-10 13:04
William Winner23-Mar-10 13:04 
GeneralRe: richTextBox and lines with word wrap Pin
norrisMiou25-Mar-10 3:43
norrisMiou25-Mar-10 3:43 
GeneralRe: richTextBox and lines with word wrap Pin
William Winner25-Mar-10 8:15
William Winner25-Mar-10 8:15 
QuestionVisual Basic 6.5 context sensitive/auto-complete wackyness Pin
john john mackey22-Mar-10 7:10
john john mackey22-Mar-10 7:10 
AnswerRe: Visual Basic 6.5 context sensitive/auto-complete wackyness Pin
J$22-Mar-10 9:32
J$22-Mar-10 9:32 
GeneralRe: Visual Basic 6.5 context sensitive/auto-complete wackyness Pin
john john mackey22-Mar-10 10:43
john john mackey22-Mar-10 10:43 
GeneralRe: Visual Basic 6.5 context sensitive/auto-complete wackyness Pin
J$22-Mar-10 11:39
J$22-Mar-10 11:39 
GeneralRe: Visual Basic 6.5 context sensitive/auto-complete wackyness Pin
john john mackey22-Mar-10 13:28
john john mackey22-Mar-10 13:28 
GeneralRe: Visual Basic 6.5 context sensitive/auto-complete wackyness Pin
J$22-Mar-10 13:50
J$22-Mar-10 13:50 
GeneralRe: Visual Basic 6.5 context sensitive/auto-complete wackyness Pin
Dave Kreskowiak22-Mar-10 15:16
mveDave Kreskowiak22-Mar-10 15:16 
GeneralRe: Visual Basic 6.5 context sensitive/auto-complete wackyness Pin
john john mackey23-Mar-10 10:07
john john mackey23-Mar-10 10:07 
GeneralRe: Visual Basic 6.5 context sensitive/auto-complete wackyness Pin
Luc Pattyn22-Mar-10 16:14
sitebuilderLuc Pattyn22-Mar-10 16:14 
GeneralRe: Visual Basic 6.5 context sensitive/auto-complete wackyness Pin
john john mackey23-Mar-10 5:53
john john mackey23-Mar-10 5: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.