Click here to Skip to main content
16,006,001 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Mail Option in vb.net??? Pin
Md. Marufuzzaman23-Dec-09 0:10
professionalMd. Marufuzzaman23-Dec-09 0:10 
GeneralRe: Mail Option in vb.net??? Pin
JC.KaNNaN23-Dec-09 1:38
JC.KaNNaN23-Dec-09 1:38 
GeneralRe: Mail Option in vb.net??? Pin
Jay Royall23-Dec-09 2:02
Jay Royall23-Dec-09 2:02 
GeneralRe: Mail Option in vb.net??? Pin
Md. Marufuzzaman23-Dec-09 2:08
professionalMd. Marufuzzaman23-Dec-09 2:08 
QuestionCallbacks on same page causing a problem [modified] Pin
plecco22-Dec-09 8:33
plecco22-Dec-09 8:33 
AnswerRe: Callbacks on same page causing a problem Pin
Md. Marufuzzaman22-Dec-09 11:25
professionalMd. Marufuzzaman22-Dec-09 11:25 
QuestionDatabase search in vb6 Pin
offroaderdan22-Dec-09 8:08
offroaderdan22-Dec-09 8:08 
AnswerRe: Database search in vb6 Pin
Luc Pattyn22-Dec-09 8:20
sitebuilderLuc Pattyn22-Dec-09 8:20 
You need string operations for this, try something along this line:
Adodc1.RecordSource = "SELECT * From datagrid1 WHERE [First_Name] = '" & txtSearch.text & "'"

Of course your app now becomes vulnerable to "SQL injection" where a malignant user enters special stuff in the textbox in order to alter what your SQL statement does; say he enters some data, a closing quote, a semi-colon and a DELETE statement...

So you should test the variable text and filter all abnormal stuff; or use parameterized SQL (not sure that exists in VB6).

BTW: I also suggest you take the first exit from the VB6 highway as it is leading nowhere, VB being obsolete.
VB.NET is the more recent Basic-like language.

Smile | :)

Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages


GeneralRe: Database search in vb6 Pin
offroaderdan22-Dec-09 8:29
offroaderdan22-Dec-09 8:29 
GeneralRe: Database search in vb6 Pin
offroaderdan22-Dec-09 8:32
offroaderdan22-Dec-09 8:32 
GeneralRe: Database search in vb6 Pin
Luc Pattyn22-Dec-09 8:36
sitebuilderLuc Pattyn22-Dec-09 8:36 
GeneralRe: Database search in vb6 Pin
offroaderdan22-Dec-09 8:40
offroaderdan22-Dec-09 8:40 
GeneralRe: Database search in vb6 Pin
Eddy Vluggen22-Dec-09 9:39
professionalEddy Vluggen22-Dec-09 9:39 
GeneralRe: Database search in vb6 Pin
offroaderdan22-Dec-09 10:59
offroaderdan22-Dec-09 10:59 
GeneralRe: Database search in vb6 Pin
offroaderdan22-Dec-09 11:09
offroaderdan22-Dec-09 11:09 
GeneralRe: Database search in vb6 Pin
Md. Marufuzzaman22-Dec-09 11:22
professionalMd. Marufuzzaman22-Dec-09 11:22 
GeneralRe: Database search in vb6 Pin
Eddy Vluggen22-Dec-09 11:57
professionalEddy Vluggen22-Dec-09 11:57 
GeneralRe: Database search in vb6 Pin
offroaderdan22-Dec-09 23:24
offroaderdan22-Dec-09 23:24 
GeneralRe: Database search in vb6 Pin
Eddy Vluggen23-Dec-09 0:39
professionalEddy Vluggen23-Dec-09 0:39 
GeneralRe: Database search in vb6 Pin
offroaderdan23-Dec-09 7:20
offroaderdan23-Dec-09 7:20 
Question[Message Deleted] Pin
manisghouri22-Dec-09 5:06
manisghouri22-Dec-09 5:06 
AnswerRe: Technical documentation of a software [modified] Pin
Dr.Walt Fair, PE22-Dec-09 5:48
professionalDr.Walt Fair, PE22-Dec-09 5:48 
QuestionWriting the content of a text file Pin
hvgyufg28fh38tyr78hf22-Dec-09 2:38
hvgyufg28fh38tyr78hf22-Dec-09 2:38 
AnswerRe: Writing the content of a text file Pin
Ashfield22-Dec-09 2:42
Ashfield22-Dec-09 2:42 
AnswerRe: Writing the content of a text file Pin
Luc Pattyn22-Dec-09 2:42
sitebuilderLuc Pattyn22-Dec-09 2:42 

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.