Click here to Skip to main content
15,906,645 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionPoint Function Pin
varun_7899-Nov-05 22:40
varun_7899-Nov-05 22:40 
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 
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:
Dim selcom As New OleDbCommand()<br />
        Dim drobj As OleDbDataReader<br />
        Dim message As String<br />
        Try<br />
            selcom.Connection = OleDbConnection1<br />
            selcom.CommandText = "select* from PatientsTable where(Patient_Name= " & TextBox2.Text & ")"<br />
            OleDbConnection1.Open()<br />
            drobj = selcom.ExecuteReader<br />
<br />
            If drobj.Read Then<br />
                TextBox1.Text = drobj.GetValue(0)<br />
                TextBox2.Text = drobj.GetString(1)<br />
                TextBox3.Text = drobj.GetValue(2)<br />
                TextBox4.Text = drobj.GetValue(3)<br />
                TextBox5.Text = drobj.GetValue(4)<br />
                TextBox6.Text = drobj.GetValue(5)<br />
                TextBox7.Text = drobj.GetValue(6)<br />
<br />
            Else<br />
                MsgBox("The record not found")<br />
            End If<br />
            drobj.Close()<br />
        Catch<br />
            message = "You must write just a patient name in it's field "<br />
            MsgBox(message)<br />
        Finally<br />
<br />
            OleDbConnection1.Close()<br />
        End Try<br />
<br />
    End Sub
So what is the write code to make the search by name work?
deema.


-- modified at 23:29 Thursday 10th November, 2005
GeneralRe: Please,pleazzzzz help me... Pin
Steve Pullan10-Nov-05 17:01
Steve Pullan10-Nov-05 17:01 
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 

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.