You are on page 1of 10

Dim a As Database Dim b As Recordset Dim c As String Option Explicit '##ModelId=4E32AF2600EA Private ID As Variant '##ModelId=4E32AF510280 '##ModelId=4E32AF56008C Private address

As Variant '##ModelId=4E32AF5B00AB Private Sex As Variant '##ModelId=4E32AF5C03B9 Private Salary As Variant Private Sub Command2_Click() Patient.Show End Sub Private Sub exit_Click() End End Sub

'##ModelId=4E32AFEB000F 'Public NewProperty As Doctor_Staff '##ModelId=4E32B51A02CE 'Public NewProperty2 As Doctor_Staff '##ModelId=4E32AF670157 'Public Sub Register() Private Sub Form_Load() WindowState = 2 Set a = Workspaces(0).OpenDatabase("e:\Rapr\RECEP.mdb") c = "select * from recep1" Set b = a.OpenRecordset(c, dbOpenDynaset) End Sub Private Sub new_Click() b.addnew Text1.Text = "" Text2.Text = "" Text3.Text = "" Text4.Text = "" Text1.SetFocus End Sub Private Sub patientregistration_Click() Patient.Show End Sub Private Sub register_Click() b(0) = Text1.Text b(1) = Text2.Text b(2) = Text3.Text b(3) = Text4.Text b.Update MsgBox ("recored registred") End Sub

Dim a As Database Dim b As Recordset Dim c As String Option Explicit '##ModelId=4E32AFC9007D '##ModelId=4E32AE940167 Private ID As Variant '##ModelId=4E32AE9702CE '##ModelId=4E32AEA2034B '##ModelId=4E32AEA9003E '##ModelId=4E32AEAB029F '##ModelId=4E32B24601B5 '##ModelId=4E36C5C2034B 'Private mDoctor_StaffObject As New Doctor_Staff '##ModelId=4E32AFC20109 'Public NewProperty As Receptionist '##ModelId=4E32B5180109 'Public NewProperty2 As Receptionist '##ModelId=4E32AEB8003E 'Public Sub Register() '##ModelId=4E36C5C2036B

Private Sub Doctor_Staff_Salary() End Sub '##ModelId=4E36C5C2038A 'Private Property Set Doctor_Staff_NewProperty(ByVal RHS As Testoperation) End Property '##ModelId=4E36C5C203B9 'Private Property Get Doctor_Staff_NewProperty() As Testoperation End Property '##ModelId=4E36C5C203D9 'Private Property Set Doctor_Staff_NewProperty2(ByVal RHS As Appointment) End Property '##ModelId=4E36C5C3003E 'Private Property Get Doctor_Staff_NewProperty2() As Appointment End Property '##ModelId=4E36C5C3005D 'Private Property Set Doctor_Staff_NewProperty3(ByVal RHS As Testoperation) End Property '##ModelId=4E36C5C300AB 'Private Property Get Doctor_Staff_NewProperty3() As Testoperation End Property '##ModelId=4E36C5C300CC 'Private Property Set Doctor_Staff_NewProperty4(ByVal RHS As Appointment) End Property '##ModelId=4E36C5C30128 'Private Property Get Doctor_Staff_NewProperty4() As Appointment End Property Private Sub Command1_Click() Warddetails.Show End Sub Private Sub admit_Click() Warddetails.Show End Sub Private Sub clear_Click() DBCombo1.Text = "" Text1.Text = "" Text2.Text = "" Text3.Text = "" End Sub Private Sub DBCombo1_Click(Area As Integer) If DBCombo1.Text = b(0) Then Text1.Text = b(1)

Text2.Text = b(2) Text3.Text = b(3) End If End Sub Private Sub Form_Load() Set a = Workspaces(0).OpenDatabase("E:\rapr\recep.mdb") c = "select * from recep1" Set b = a.OpenRecordset(c, dbOpenDynaset) End Sub

Dim a1 As Database Dim b1 As Recordset Dim c1 As String Option Explicit '##ModelId=4E32B21C009C '##ModelId=4E32B2B60167 '##ModelId=4E32B2CA000F '##ModelId=4E32B2E30280 Public Sub admit()

End Sub '##ModelId=4E32B2E90203 Public Sub leave() End Sub Private Sub exit_Click() End End Sub Private Sub first_Click() b1.MoveFirst display End Sub Private Sub last_Click() b1.MoveLast display End Sub Private Sub next_Click() b1.MoveNext If b1.EOF Then b1.MoveLast display End Sub Private Sub previous_Click() b1.MovePrevious If b1.EOF Then b1.MoveFirst display End Sub Private Sub save_Click() b1(0) = Text1.Text b1(1) = Text2.Text b1(2) = Text3.Text b1.Update MsgBox ("updated successfully") End Sub Private Sub addnew_Click() b1.addnew Text1.Text = "" Text2.Text = "" Text3.Text = "" Text1.SetFocus End Sub Private Sub Form_Load() WindowState = 2

Set a1 = Workspaces(0).OpenDatabase("E:\rapr\ward.mdb") c1 = "select * from ward1" Set b1 = a1.OpenRecordset(c1, dbOpenDynaset) End Sub Private Sub display() Text1.Text = b1(0) Text2.Text = b1(1) Text3.Text = b1(2) End Sub Private Sub test_Click() Testoperation.Show End Sub

Dim a1 As Database Dim b1 As Recordset Dim c1 As String Option Explicit '##ModelId=4E32B01800CB 'Private Patientid As Variant '##ModelId=4E32B01F0232 'Private Patientname As Variant '##ModelId=4E32B02E01B5

'Private Diseasename As Variant '##ModelId=4E32B036001F 'Private testdescription As Variant '##ModelId=4E32B6BC00FA 'Public NewProperty As Report '##ModelId=4E32B09A0290 '##ModelId=4E32B0890167 Public Sub testreport() End Sub '##ModelId=4E32B095036B Public Sub Bill() End Sub Private Sub addnew_Click() b1.addnew Text1.Text = "" RichTextBox1.Text = "" RichTextBox2.Text = "" RichTextBox3.Text = "" RichTextBox4.Text = "" Text1.SetFocus End Sub Private Sub exit_Click() End End Sub Private Sub expend_Click() expenditure.Show End Sub Private Sub first_Click() b1.MoveFirst display End Sub Private Sub Form_Load() Set a1 = Workspaces(0).OpenDatabase("E:\rapr\test.mdb") c1 = "select * from test1" Set b1 = a1.OpenRecordset(c1, dbOpenDynaset) End Sub Private Sub display() Text1.Text = b1(0) RichTextBox1.Text = b1(1) RichTextBox2.Text = b1(2) RichTextBox3.Text = b1(3)

RichTextBox4.Text = b1(4) End Sub Private Sub last_Click() b1.MoveLast display End Sub Private Sub next_Click() b1.MoveNext If b1.EOF Then b1.MoveLast display End Sub Private Sub previous_Click() b1.MovePrevious If b1.EOF Then b1.MoveFirst display End Sub Private Sub save_Click() b1(0) = Text1.Text b1(1) = RichTextBox1.Text b1(2) = RichTextBox1.Text b1(3) = RichTextBox1.Text b1(4) = RichTextBox1.Text b1.Update MsgBox ("updated successfully") End Sub

You might also like