11
If rs.State = 1 Then rs.Close rs.Open "select * from Patient where Pat_name='" & cbotpname.Text & "'", con, adOpenDynamic, adLockOptimistic If rs.BOF = False Then txttage.Text = rs(2) txttgen.Text = rs(3) End If If rs.State = 1 Then rs.Close rs.Open "select * from Inpatient where IPname='" & cbotpname.Text & "'", con, adOpenDynamic, adLockOptimistic If rs.BOF = False Then txttage.Text = rs(2) txttgen.Text = rs(3) End If If rs.State = 1 Then rs.Close rs.Open "select * from Patient where Pat_name='" & cbotpname.Text & "'", con, adOpenDynamic, adLockOptimistic If rs.BOF = False Then txttage.Text = rs(2) txttgen.Text = rs(3) End If If rs.State = 1 Then rs.Close rs.Open "select * from Inpatient where IPname='" & cbotpname.Text & "'", con, adOpenDynamic, adLockOptimistic If rs.BOF = False Then

Qwerty

  • Upload
    ronaldo

  • View
    212

  • Download
    0

Embed Size (px)

DESCRIPTION

tanku

Citation preview

Page 1: Qwerty

If rs.State = 1 Then rs.Close

rs.Open "select * from Patient where Pat_name='" & cbotpname.Text & "'", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then

txttage.Text = rs(2)

txttgen.Text = rs(3)

End If

If rs.State = 1 Then rs.Close

rs.Open "select * from Inpatient where IPname='" & cbotpname.Text & "'", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then

txttage.Text = rs(2)

txttgen.Text = rs(3)

End If

If rs.State = 1 Then rs.Close

rs.Open "select * from Patient where Pat_name='" & cbotpname.Text & "'", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then

txttage.Text = rs(2)

txttgen.Text = rs(3)

End If

If rs.State = 1 Then rs.Close

rs.Open "select * from Inpatient where IPname='" & cbotpname.Text & "'", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then

txttage.Text = rs(2)

txttgen.Text = rs(3)

Page 2: Qwerty

End If

If rs.State = 1 Then rs.Close

rs.Open "select * from Patient where Pat_name='" & cbotpname.Text & "'", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then

txttage.Text = rs(2)

txttgen.Text = rs(3)

End If

If rs.State = 1 Then rs.Close

rs.Open "select * from Inpatient where IPname='" & cbotpname.Text & "'", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then

txttage.Text = rs(2)

txttgen.Text = rs(3)

End If

If rs.State = 1 Then rs.Close

rs.Open "select * from Patient where Pat_name='" & cbotpname.Text & "'", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then

txttage.Text = rs(2)

txttgen.Text = rs(3)

End If

If rs.State = 1 Then rs.Close

rs.Open "select * from Inpatient where IPname='" & cbotpname.Text & "'", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then

txttage.Text = rs(2)

Page 3: Qwerty

txttgen.Text = rs(3)

End If

If rs.State = 1 Then rs.Close

rs.Open "select * from Patient where Pat_name='" & cbotpname.Text & "'", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then

txttage.Text = rs(2)

txttgen.Text = rs(3)

End If

If rs.State = 1 Then rs.Close

rs.Open "select * from Inpatient where IPname='" & cbotpname.Text & "'", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then

txttage.Text = rs(2)

txttgen.Text = rs(3)

End If

If rs.State = 1 Then rs.Close

rs.Open "select * from Patient where Pat_name='" & cbotpname.Text & "'", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then

txttage.Text = rs(2)

txttgen.Text = rs(3)

End If

If rs.State = 1 Then rs.Close

rs.Open "select * from Inpatient where IPname='" & cbotpname.Text & "'", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then

Page 4: Qwerty

txttage.Text = rs(2)

txttgen.Text = rs(3)

End If

If rs.State = 1 Then rs.Close

rs.Open "select * from Patient where Pat_name='" & cbotpname.Text & "'", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then

txttage.Text = rs(2)

txttgen.Text = rs(3)

End If

If rs.State = 1 Then rs.Close

rs.Open "select * from Inpatient where IPname='" & cbotpname.Text & "'", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then

txttage.Text = rs(2)

txttgen.Text = rs(3)

End If

If rs.State = 1 Then rs.Close

rs.Open "select * from Patient where Pat_name='" & cbotpname.Text & "'", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then

txttage.Text = rs(2)

txttgen.Text = rs(3)

End If

If rs.State = 1 Then rs.Close

rs.Open "select * from Inpatient where IPname='" & cbotpname.Text & "'", con, adOpenDynamic, adLockOptimistic

Page 5: Qwerty

If rs.BOF = False Then

txttage.Text = rs(2)

txttgen.Text = rs(3)

End If

If rs.State = 1 Then rs.Close

rs.Open "select * from Patient where Pat_name='" & cbotpname.Text & "'", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then

txttage.Text = rs(2)

txttgen.Text = rs(3)

End If

If rs.State = 1 Then rs.Close

rs.Open "select * from Inpatient where IPname='" & cbotpname.Text & "'", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then

txttage.Text = rs(2)

txttgen.Text = rs(3)

End If

If rs.State = 1 Then rs.Close

rs.Open "select * from Patient where Pat_name='" & cbotpname.Text & "'", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then

txttage.Text = rs(2)

txttgen.Text = rs(3)

End If

If rs.State = 1 Then rs.Close

Page 6: Qwerty

rs.Open "select * from Inpatient where IPname='" & cbotpname.Text & "'", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then

txttage.Text = rs(2)

txttgen.Text = rs(3)

End If

If rs.State = 1 Then rs.Close

rs.Open "select * from Patient where Pat_name='" & cbotpname.Text & "'", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then

txttage.Text = rs(2)

txttgen.Text = rs(3)

End If

If rs.State = 1 Then rs.Close

rs.Open "select * from Inpatient where IPname='" & cbotpname.Text & "'", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then

txttage.Text = rs(2)

txttgen.Text = rs(3)

End If

If rs.State = 1 Then rs.Close

rs.Open "select * from Patient where Pat_name='" & cbotpname.Text & "'", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then

txttage.Text = rs(2)

txttgen.Text = rs(3)

End If

Page 7: Qwerty

If rs.State = 1 Then rs.Close

rs.Open "select * from Inpatient where IPname='" & cbotpname.Text & "'", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then

txttage.Text = rs(2)

txttgen.Text = rs(3)

End If

If rs.State = 1 Then rs.Close

rs.Open "select * from Patient where Pat_name='" & cbotpname.Text & "'", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then

txttage.Text = rs(2)

txttgen.Text = rs(3)

End If

If rs.State = 1 Then rs.Close

rs.Open "select * from Inpatient where IPname='" & cbotpname.Text & "'", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then

txttage.Text = rs(2)

txttgen.Text = rs(3)

End If

If rs.State = 1 Then rs.Close

rs.Open "select * from Patient where Pat_name='" & cbotpname.Text & "'", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then

txttage.Text = rs(2)

txttgen.Text = rs(3)

Page 8: Qwerty

End If

If rs.State = 1 Then rs.Close

rs.Open "select * from Inpatient where IPname='" & cbotpname.Text & "'", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then

txttage.Text = rs(2)

txttgen.Text = rs(3)

End If

If rs.State = 1 Then rs.Close

rs.Open "select * from Patient where Pat_name='" & cbotpname.Text & "'", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then

txttage.Text = rs(2)

txttgen.Text = rs(3)

End If

If rs.State = 1 Then rs.Close

rs.Open "select * from Inpatient where IPname='" & cbotpname.Text & "'", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then

txttage.Text = rs(2)

txttgen.Text = rs(3)

End If

If rs.State = 1 Then rs.Close

rs.Open "select * from Patient where Pat_name='" & cbotpname.Text & "'", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then

txttage.Text = rs(2)

Page 9: Qwerty

txttgen.Text = rs(3)

End If

If rs.State = 1 Then rs.Close

rs.Open "select * from Inpatient where IPname='" & cbotpname.Text & "'", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then

txttage.Text = rs(2)

txttgen.Text = rs(3)

End If

If rs.State = 1 Then rs.Close

rs.Open "select * from Patient where Pat_name='" & cbotpname.Text & "'", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then

txttage.Text = rs(2)

txttgen.Text = rs(3)

End If

If rs.State = 1 Then rs.Close

rs.Open "select * from Inpatient where IPname='" & cbotpname.Text & "'", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then

txttage.Text = rs(2)

txttgen.Text = rs(3)

End If

Page 10: Qwerty