Click here to Skip to main content
15,908,172 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralIcon question Pin
Binary011029-May-05 20:59
Binary011029-May-05 20:59 
GeneralRe: Icon question Pin
Rizwan Bashir29-May-05 21:31
Rizwan Bashir29-May-05 21:31 
GeneralSyntax error in INSERT INTO statement. Pin
Manik Nath29-May-05 20:09
Manik Nath29-May-05 20:09 
GeneralRe: Syntax error in INSERT INTO statement. Pin
Rizwan Bashir30-May-05 2:11
Rizwan Bashir30-May-05 2:11 
GeneralRe: Syntax error in INSERT INTO statement. Pin
Manik Nath30-May-05 23:22
Manik Nath30-May-05 23:22 
GeneralRe: Syntax error in INSERT INTO statement. Pin
Dave Kreskowiak31-May-05 4:29
mveDave Kreskowiak31-May-05 4:29 
GeneralRe: Syntax error in INSERT INTO statement. Pin
Manik Nath1-Jun-05 0:36
Manik Nath1-Jun-05 0:36 
GeneralRe: Syntax error in INSERT INTO statement. Pin
Dave Kreskowiak1-Jun-05 1:59
mveDave Kreskowiak1-Jun-05 1:59 
strinsert = "INSERT INTO Transmittal(ReferencedTo, Title, NumberofCopies, Username, ProjectName, KindAttn, RevisionNumber, Action, DrawingDocumentNumber)" + " VALUES ('" + TextBox3.Text + "', '" + TextBox5.Text + "', '" + TextBox9.Text + "', '" + TextBox1.Text + "', '" + TextBox2.Text + "', '" + TextBox4.Text + "', '" + TextBox10.Text + "', '" + TextBox11.Text + "', '" + TextBox7.Text + "' )"
All you had to do is add a space before your "VALUES" keyword.

This is one reason why you DO NOT USE string concatenation to build your SQL statements. How you're building your statement can be broken so easily, it's silly. All the user has to do is put a ' character in any one of those text boxes and your code breaks. Learn how to do it the correct way now, before this bad habit becomes your normal method.


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: Syntax error in INSERT INTO statement. Pin
Manik Nath1-Jun-05 3:07
Manik Nath1-Jun-05 3:07 
GeneralRe: Syntax error in INSERT INTO statement. Pin
Dave Kreskowiak1-Jun-05 11:07
mveDave Kreskowiak1-Jun-05 11:07 
GeneralRe: Syntax error in INSERT INTO statement. Pin
Manik Nath2-Jun-05 1:13
Manik Nath2-Jun-05 1:13 
GeneralRe: Syntax error in INSERT INTO statement. Pin
Dave Kreskowiak2-Jun-05 2:49
mveDave Kreskowiak2-Jun-05 2:49 
GeneralRe: Syntax error in INSERT INTO statement. Pin
Manik Nath2-Jun-05 20:24
Manik Nath2-Jun-05 20:24 
GeneralRe: Syntax error in INSERT INTO statement. Pin
Dave Kreskowiak3-Jun-05 5:23
mveDave Kreskowiak3-Jun-05 5:23 
GeneralVB.NET creating a drawing area for users Pin
zoethomas200529-May-05 20:09
zoethomas200529-May-05 20:09 
GeneralRe: VB.NET creating a drawing area for users Pin
Christian Graus30-May-05 12:22
protectorChristian Graus30-May-05 12:22 
Generalbarcode generation in VB6 Pin
RupeshSunkara29-May-05 19:07
RupeshSunkara29-May-05 19:07 
GeneralRe: barcode generation in VB6 Pin
toxcct29-May-05 23:38
toxcct29-May-05 23:38 
QuestionHow to add ToolStripDropDownItem by code? Pin
rushing29-May-05 17:51
rushing29-May-05 17:51 
Generalsearching personal folder in outlook Pin
dw192829-May-05 15:03
dw192829-May-05 15:03 
GeneralC# to VB.NET Solution converter Pin
Dr_Lomax29-May-05 4:15
Dr_Lomax29-May-05 4:15 
GeneralRe: C# to VB.NET Solution converter Pin
Christian Graus29-May-05 12:35
protectorChristian Graus29-May-05 12:35 
GeneralRe: C# to VB.NET Solution converter Pin
Dave Doknjas29-May-05 14:02
Dave Doknjas29-May-05 14:02 
GeneralRe: C# to VB.NET Solution converter Pin
Christian Graus29-May-05 14:33
protectorChristian Graus29-May-05 14:33 
GeneralRe: C# to VB.NET Solution converter Pin
albCode30-May-05 23:06
albCode30-May-05 23:06 

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.