Click here to Skip to main content
15,914,905 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Combobox Pin
Nouvand4-Aug-06 0:04
Nouvand4-Aug-06 0:04 
QuestionHow to write html in vb?? and post that html in the asp panel?? [modified] Pin
mimimimilaw24-Jul-06 16:20
mimimimilaw24-Jul-06 16:20 
AnswerRe: How to write html in vb?? and post that html in the asp panel?? Pin
Dave Sexton25-Jul-06 0:53
Dave Sexton25-Jul-06 0:53 
QuestionGlobal change to a standard toolstrip [modified] Pin
Gilles Plante24-Jul-06 9:30
Gilles Plante24-Jul-06 9:30 
AnswerRe: Global change to a standard toolstrip Pin
Dave Sexton25-Jul-06 0:45
Dave Sexton25-Jul-06 0:45 
GeneralRe: Global change to a standard toolstrip [modified] Pin
Gilles Plante25-Jul-06 5:53
Gilles Plante25-Jul-06 5:53 
QuestionProblems with SQL to an Access Database Pin
Joshua Boyle24-Jul-06 9:27
Joshua Boyle24-Jul-06 9:27 
AnswerRe: Problems with SQL to an Access Database Pin
Colin Angus Mackay24-Jul-06 20:26
Colin Angus Mackay24-Jul-06 20:26 
Joshua Boyle wrote:
I took that string directly from a tutorial on the web


Then who ever posted it should be shot! Apart from anything else it suffers from a severe susceptability from a SQL Injection Attack. Here's an article that provides a description of what a SQL Injection Attack is, how to spot code that is susceptable and what you can do to make the code safer[^]

You should use a parameterised query instead
Your string becomes:
"INSERT INFO Guestbook (Planner, Location, Time, Date) VALUES(?,?,?,?)"

And you can add the parameters like this:
myCommand.Parameters.Add("", txtHistoryPlanner.Text) ' etc.


Probably what is giving you an error is if one of the text boxes contains something that the SQL parser is misinterpreting. For example, if some piece of text contains an apostrophe the SQL parser will interpret that as the end of string and then get confused when the string continues.


GeneralRe: Problems with SQL to an Access Database [modified] Pin
Joshua Boyle25-Jul-06 3:56
Joshua Boyle25-Jul-06 3:56 
GeneralRe: Problems with SQL to an Access Database Pin
Joshua Boyle25-Jul-06 4:16
Joshua Boyle25-Jul-06 4:16 
GeneralRe: Problems with SQL to an Access Database Pin
Colin Angus Mackay25-Jul-06 4:52
Colin Angus Mackay25-Jul-06 4:52 
GeneralRe: Problems with SQL to an Access Database Pin
ChandraRam25-Jul-06 19:04
ChandraRam25-Jul-06 19:04 
Questionusing a data reader to add items to an arraylist Pin
ssbelfast24-Jul-06 7:59
ssbelfast24-Jul-06 7:59 
AnswerRe: using a data reader to add items to an arraylist Pin
Dave Sexton25-Jul-06 0:40
Dave Sexton25-Jul-06 0:40 
GeneralRe: using a data reader to add items to an arraylist Pin
ssbelfast25-Jul-06 1:33
ssbelfast25-Jul-06 1:33 
QuestionUser Defined Type workaround using classes Pin
teepeetoo24-Jul-06 7:50
teepeetoo24-Jul-06 7:50 
QuestionLosing Global Variables Pin
ken11024-Jul-06 7:17
ken11024-Jul-06 7:17 
AnswerRe: Losing Global Variables Pin
Mandar Patankar24-Jul-06 11:25
Mandar Patankar24-Jul-06 11:25 
GeneralRe: Losing Global Variables Pin
ken11024-Jul-06 11:49
ken11024-Jul-06 11:49 
QuestionExcel macro Help Pin
awalle24-Jul-06 7:06
awalle24-Jul-06 7:06 
QuestionTableAdapter, Database Tutorial Pin
cstrader23224-Jul-06 6:38
cstrader23224-Jul-06 6:38 
AnswerRe: TableAdapter, Database Tutorial Pin
Dave Sexton25-Jul-06 0:36
Dave Sexton25-Jul-06 0:36 
AnswerRe: TableAdapter, Database Tutorial Pin
Nouvand4-Aug-06 0:19
Nouvand4-Aug-06 0:19 
QuestionDeclare Global variables in crystal reports Pin
ImranIBM24-Jul-06 6:19
ImranIBM24-Jul-06 6:19 
AnswerRe: Declare Global variables in crystal reports Pin
cs_senthil25-Jul-06 0:00
cs_senthil25-Jul-06 0:00 

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.