Click here to Skip to main content
15,921,276 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralProblem with Listview format Pin
clabrett7-Aug-05 13:59
clabrett7-Aug-05 13:59 
GeneralRe: Problem with Listview format Pin
Rob Graham7-Aug-05 15:19
Rob Graham7-Aug-05 15:19 
GeneralRe: Problem with Listview format Pin
clabrett7-Aug-05 15:48
clabrett7-Aug-05 15:48 
QuestionHow to control printer queue from vb.net Pin
Mekong River7-Aug-05 4:47
Mekong River7-Aug-05 4:47 
AnswerRe: How to control printer queue from vb.net Pin
Rob Graham7-Aug-05 15:39
Rob Graham7-Aug-05 15:39 
GeneralRe: How to control printer queue from vb.net Pin
Mekong River8-Aug-05 7:07
Mekong River8-Aug-05 7:07 
Generali need dynamic query with different criteria Pin
MAGICIANMERLIN7-Aug-05 4:07
MAGICIANMERLIN7-Aug-05 4:07 
GeneralRe: i need dynamic query with different criteria Pin
Christian Graus7-Aug-05 13:56
protectorChristian Graus7-Aug-05 13:56 
MAGICIANMERLIN wrote:
Dim param As String = "ADI= txtad.Text & (param1) & SOYADI=txtsoyad.text & (param2)& BABAADI=txtbabaad.text & (param3)& ANAADI=txtanaad.text & (param4)& DYERI=txtdogumyer.text & (param5)& DTARIHI=txtdogumtar.text & (param6)& UYRUK=txtuyruk.text & (param7)& MESLEK=txtmeslek.text & (param8)& DIN=txtdin.text & (param9)& MEDENIHAL=txtmedenihal.text & (param10)& CINSIYET=txtcinsiyet.text & (param11)& TAHSIL=txttahsil.text"

What are you expecting this to do ?

MAGICIANMERLIN wrote:
Dim da As New OleDbDataAdapter("Select * from ANABILGI where (param)", baglan)

What are you expecting to happen here ?

The easiest way to do this is to write a stored proc ( because the best way to do all of this is with stored procs ), that takes all of these possible search values, and searches using LIKE, so that you end up with blah LIKE % when no search paramater was provided. If you must do it creating SQL on the fly like this, then just build the query as you go. Either way, you should be parsing any input strings for SQL injection attacks.


Christian Graus - Microsoft MVP - C++
GeneralRe: i need dynamic query with different criteria Pin
MAGICIANMERLIN8-Aug-05 10:55
MAGICIANMERLIN8-Aug-05 10:55 
GeneralRe: i need dynamic query with different criteria Pin
Christian Graus8-Aug-05 13:16
protectorChristian Graus8-Aug-05 13:16 
GeneralRichTextBox Pin
SeLoRBIS7-Aug-05 1:49
SeLoRBIS7-Aug-05 1:49 
QuestionHow can get Received value in LocalNetwork Connecttion Pin
Anonymous7-Aug-05 1:45
Anonymous7-Aug-05 1:45 
AnswerRe: How can get Received value in LocalNetwork Connecttion Pin
Dave Kreskowiak7-Aug-05 4:47
mveDave Kreskowiak7-Aug-05 4:47 
GeneralStuck on Getting a Changed Value in a DropDownList within a DataList Pin
asalyon6-Aug-05 15:08
asalyon6-Aug-05 15:08 
GeneralRe: Stuck on Getting a Changed Value in a DropDownList within a DataList Pin
Christian Graus8-Aug-05 19:05
protectorChristian Graus8-Aug-05 19:05 
GeneralDeclarative Security w/ custom principal Pin
Moonark6-Aug-05 11:43
Moonark6-Aug-05 11:43 
GeneralEXECUTENONQUERY Pin
MAGICIANMERLIN6-Aug-05 9:34
MAGICIANMERLIN6-Aug-05 9:34 
GeneralRe: EXECUTENONQUERY Pin
rwestgraham7-Aug-05 17:52
rwestgraham7-Aug-05 17:52 
GeneralRe: EXECUTENONQUERY Pin
MAGICIANMERLIN8-Aug-05 10:51
MAGICIANMERLIN8-Aug-05 10:51 
GeneralRemote system information Pin
Anonymous6-Aug-05 6:11
Anonymous6-Aug-05 6:11 
GeneralRe: Remote system information Pin
Rizwan Bashir8-Aug-05 11:34
Rizwan Bashir8-Aug-05 11:34 
GeneralDatagrid Images Pin
Anonymous6-Aug-05 0:54
Anonymous6-Aug-05 0:54 
GeneralRe: Reports Pin
Anonymous5-Aug-05 23:59
Anonymous5-Aug-05 23:59 
GeneralRe: Reports Pin
Christian Graus7-Aug-05 13:57
protectorChristian Graus7-Aug-05 13:57 
GeneralRe: Reports Pin
Anonymous7-Aug-05 19:38
Anonymous7-Aug-05 19:38 

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.