Click here to Skip to main content
15,917,005 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: vb.net-To save a file Pin
Guffa13-Jul-07 7:34
Guffa13-Jul-07 7:34 
Question[Message Deleted] Pin
Cory Kimble13-Jul-07 6:03
Cory Kimble13-Jul-07 6:03 
AnswerRe: Changing color of text of one cell in DataGrid Pin
Rupesh Kumar Swami13-Jul-07 6:49
Rupesh Kumar Swami13-Jul-07 6:49 
AnswerRe: Changing color of text of one cell in DataGrid [modified] Pin
DanB198313-Jul-07 21:52
DanB198313-Jul-07 21:52 
QuestionAccess vb program via another program Pin
billiardpro1813-Jul-07 5:04
billiardpro1813-Jul-07 5:04 
AnswerRe: Access vb program via another program Pin
Dave Kreskowiak13-Jul-07 6:03
mveDave Kreskowiak13-Jul-07 6:03 
AnswerRe: Access vb program via another program Pin
swallow4eva16-Jul-07 2:42
swallow4eva16-Jul-07 2:42 
AnswerRe: Passing parameter to hardcoded SQL statement (non Stored Procedure) Pin
Christian Graus13-Jul-07 3:59
protectorChristian Graus13-Jul-07 3:59 
Well, the main way would be stored procs, if you can't do that, then you can use parameterised querys. Last resort is to do some string mashing to pass in your parameter, but that opens you to SQL injection attacks.

uneasyrider wrote:
Dim strSearch As String
txtSearch.Text = strSearch


This sets your search string to an empty string, of course. It also means your db code is in your presentation layer, which means your app is poorly designed ( well, not designed at all, really ).

I suspect your main problem is that you're not putting '' around your search string.


Christian Graus - Microsoft MVP - C++

"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

GeneralRe: Passing parameter to hardcoded SQL statement (non Stored Procedure) Pin
Dave Kreskowiak13-Jul-07 4:50
mveDave Kreskowiak13-Jul-07 4:50 
JokeRe: Passing parameter to hardcoded SQL statement (non Stored Procedure) Pin
Paul Conrad15-Jul-07 5:45
professionalPaul Conrad15-Jul-07 5:45 
GeneralRe: Passing parameter to hardcoded SQL statement (non Stored Procedure) Pin
Rupesh Kumar Swami13-Jul-07 6:53
Rupesh Kumar Swami13-Jul-07 6:53 
GeneralRe: Passing parameter to hardcoded SQL statement (non Stored Procedure) Pin
Dave Kreskowiak13-Jul-07 7:00
mveDave Kreskowiak13-Jul-07 7:00 
GeneralRe: Passing parameter to hardcoded SQL statement (non Stored Procedure) Pin
Paul Conrad15-Jul-07 5:47
professionalPaul Conrad15-Jul-07 5:47 
GeneralRe: Passing parameter to hardcoded SQL statement (non Stored Procedure) [modified] Pin
Rupesh Kumar Swami13-Jul-07 6:54
Rupesh Kumar Swami13-Jul-07 6:54 
QuestionHelp! Read Unicode Text File to VB program Pin
jackie83sg200513-Jul-07 2:58
jackie83sg200513-Jul-07 2:58 
AnswerRe: Help! Read Unicode Text File to VB program Pin
Christian Graus13-Jul-07 3:29
protectorChristian Graus13-Jul-07 3:29 
GeneralRe: Help! Read Unicode Text File to VB program Pin
Paul Conrad13-Jul-07 4:29
professionalPaul Conrad13-Jul-07 4:29 
GeneralRe: Help! Read Unicode Text File to VB program Pin
jackie83sg200513-Jul-07 4:50
jackie83sg200513-Jul-07 4:50 
GeneralRe: Help! Read Unicode Text File to VB program Pin
Dave Kreskowiak13-Jul-07 4:54
mveDave Kreskowiak13-Jul-07 4:54 
GeneralRe: Help! Read Unicode Text File to VB program Pin
jackie83sg200513-Jul-07 15:16
jackie83sg200513-Jul-07 15:16 
QuestionArray -> listview1.groups.addrange Pin
svh198513-Jul-07 2:45
svh198513-Jul-07 2:45 
AnswerRe: Array -> listview1.groups.addrange Pin
Dave Kreskowiak13-Jul-07 4:19
mveDave Kreskowiak13-Jul-07 4:19 
GeneralRe: Array -> listview1.groups.addrange Pin
svh198513-Jul-07 4:39
svh198513-Jul-07 4:39 
GeneralRe: Array -> listview1.groups.addrange Pin
Dave Kreskowiak13-Jul-07 4:47
mveDave Kreskowiak13-Jul-07 4:47 
GeneralRe: Array -> listview1.groups.addrange Pin
svh198513-Jul-07 4:55
svh198513-Jul-07 4:55 

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.