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

Visual Basic

 
QuestionSearch Page Pin
macca2410-Nov-05 0:25
macca2410-Nov-05 0:25 
AnswerRe: Search Page Pin
Mandar Patankar10-Nov-05 4:01
Mandar Patankar10-Nov-05 4:01 
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 
Could someone helpe me,please.
I want to make two buttons in my form ,one search the DB by the patient_no and the other by the patient_name.
I did one button search by the patient_No and it worked, but the other didn't What should I do?
this is part from my code:

Private Sub Button10_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button10.Click<br />
        DataSet11.Clear()<br />
<br />
        OleDbDataAdapter1.Fill(DataSet11, "PatientsTable")<br />
    End Sub<br />
<br />
Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click<br />
        Dim delc As New OleDbCommand()<br />
        Dim message As String<br />
        Try<br />
            delc.CommandText = " Delete from PatientsTable where Patient_No =" & TextBox1.Text<br />
            delc.Connection = OleDbConnection1<br />
            OleDbConnection1.Open()<br />
            delc.ExecuteNonQuery()<br />
<br />
            MsgBox("The deletion procees done successfully .")<br />
<br />
        Catch<br />
            message = "choose a record first"<br />
            MsgBox(message)<br />
        Finally<br />
            OleDbConnection1.Close()<br />
            clear()<br />
        End Try<br />
    End Sub<br />
<br />
    Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button8.Click<br />
        Dim selcom As New OleDbCommand()<br />
        Dim drobj As OleDbDataReader<br />
        Dim message As String<br />
<br />
        Try<br />
            selcom.Connection = OleDbConnection1<br />
            selcom.CommandText = "select* from PatientsTable where(Patient_No= " & TextBox1.Text & ")"<br />
            OleDbConnection1.Open()<br />
            drobj = selcom.ExecuteReader<br />
            If drobj.Read Then<br />
                TextBox1.Text = drobj.GetValue(0)<br />
                TextBox2.Text = drobj.GetValue(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 />
<br />
            drobj.Close()<br />
<br />
        Catch<br />
            message = "You must write just a patient number in it's field "<br />
            MsgBox(message)<br />
        Finally<br />
<br />
            OleDbConnection1.Close()<br />
<br />
        End Try<br />
<br />
    End Sub<br />
<br />
<br />
    Private Sub Button12_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button12.Click<br />
        Close()<br />
    End Sub 

with thanks
deema

-- modified at 23:28 Thursday 10th November, 2005
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 
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 

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.