Click here to Skip to main content
15,910,118 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionUrgent Help Needed!!!(AxWebBrowser) Pin
Sufyan_shani9-Nov-05 21:51
Sufyan_shani9-Nov-05 21:51 
AnswerRe: Urgent Help Needed!!!(AxWebBrowser) Pin
Steve Pullan10-Nov-05 12:31
Steve Pullan10-Nov-05 12:31 
GeneralRe: Urgent Help Needed!!!(AxWebBrowser) Pin
Sufyan_shani10-Nov-05 20:02
Sufyan_shani10-Nov-05 20:02 
QuestionInstalling a DLL file Pin
mcwayne9-Nov-05 21:33
mcwayne9-Nov-05 21:33 
QuestionPlease,pleazzzzz help me... Pin
Deema Jack9-Nov-05 20:47
Deema Jack9-Nov-05 20:47 
AnswerRe: Please,pleazzzzz help me... Pin
Steve Pullan10-Nov-05 12:42
Steve Pullan10-Nov-05 12:42 
GeneralRe: Please,pleazzzzz help me... Pin
Deema Jack10-Nov-05 16:34
Deema Jack10-Nov-05 16:34 
GeneralRe: Please,pleazzzzz help me... Pin
Steve Pullan10-Nov-05 17:01
Steve Pullan10-Nov-05 17:01 
Deema Jack wrote:
There is no any error in the above code ,but I want to make a button search by the patient_name in a DB when I wrote the following code I got an error:


Ok, so you DID get an error! What was it? Provide more information and thou shall receive quality help...

Anyway I can see one obvious coding problem with this line:
Deema Jack wrote:
selcom.CommandText = "select* from PatientsTable where(Patient_Name= " & TextBox2.Text & ")"


It should read:
selcom.CommandText = "select * from PatientsTable where Patient_Name = '" & TextBox2.Text & "'"
Note the use of single quotes surrounding the TextBox2.Text value otherwise SQL Server will most likely throw out the query. All strings should be quoted in queries. Additionally there should be no parentheses where you have used them in the WHERE clause.


...Steve

-- modified at 23:02 Thursday 10th November, 2005
GeneralRe: Please,pleazzzzz help me... Pin
Deema Jack10-Nov-05 17:23
Deema Jack10-Nov-05 17:23 
GeneralRe: Please,pleazzzzz help me... Pin
Steve Pullan10-Nov-05 18:49
Steve Pullan10-Nov-05 18:49 
GeneralRe: Please,pleazzzzz help me... Pin
Deema Jack10-Nov-05 21:43
Deema Jack10-Nov-05 21:43 
Questionweb service function question Pin
maxiachun9-Nov-05 17:31
maxiachun9-Nov-05 17:31 
QuestionHELP!!!!!!!- How to decompile .DLL file to get source code back???? Pin
vicky4579-Nov-05 14:30
vicky4579-Nov-05 14:30 
AnswerRe: HELP!!!!!!!- How to decompile .DLL file to get source code back???? Pin
Steve Pullan9-Nov-05 18:17
Steve Pullan9-Nov-05 18:17 
AnswerRe: HELP!!!!!!!- How to decompile .DLL file to get source code back???? Pin
rwestgraham9-Nov-05 18:27
rwestgraham9-Nov-05 18:27 
QuestionOpening a file to show number of sentences Pin
los_coronado9-Nov-05 12:11
los_coronado9-Nov-05 12:11 
AnswerRe: Opening a file to show number of sentences Pin
Steve Pullan9-Nov-05 12:27
Steve Pullan9-Nov-05 12:27 
GeneralRe: Opening a file to show number of sentences Pin
los_coronado9-Nov-05 14:16
los_coronado9-Nov-05 14:16 
GeneralRe: Opening a file to show number of sentences Pin
Steve Pullan9-Nov-05 14:35
Steve Pullan9-Nov-05 14:35 
GeneralRe: Opening a file to show number of sentences Pin
los_coronado9-Nov-05 15:15
los_coronado9-Nov-05 15:15 
AnswerRe: Opening a file to show number of sentences Pin
Christian Graus9-Nov-05 12:53
protectorChristian Graus9-Nov-05 12:53 
Questionadding data to different rows in excel Pin
DCgamer9-Nov-05 9:23
DCgamer9-Nov-05 9:23 
AnswerRe: adding data to different rows in excel Pin
rudy.net9-Nov-05 17:49
rudy.net9-Nov-05 17:49 
QuestionEvents not firing in AXWebBrowser Control Pin
Zegoat9-Nov-05 4:23
Zegoat9-Nov-05 4:23 
Questionabout control screensaver Pin
maxiachun8-Nov-05 13:20
maxiachun8-Nov-05 13:20 

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.