form&code
form&code
Dim cn As ADODB.Connection
Dim rs As ADODB.Recordset
Dim cn As ADODB.Connection
Dim rs As ADODB.Recordset
cn.Open
End Sub
Adodc1.Recordset.MoveFirst
Form1.Hide
Form6.Show
a=1
Exit Do
Else
Adodc1.Recordset.MoveNext
End If
Loop
If a = 0 Then
End If
Text1.Text = ""
Text2.Text = ""
End Sub
End
End Sub
Private Sub Form_Load()
ProgressBar1.Value = ProgressBar1.Min
End Sub
ProgressBar1.Value = ProgressBar1.Value + 10
Timer1.Enabled = False
End If
Form6.Hide
Form2.Show
End If
End Sub
Private Sub Data1_Validate(Action As Integer, Save As Integer)
End Sub
Form2.Hide
Form3.Show
End Sub
Form2.Hide
Form4.Show
End Sub
Form2.Hide
Form5.Show
End Sub
Private Sub Command4_Click()
Form2.Hide
Form7.Show
End Sub
End
End Sub
Form2.Hide
Form8.Show
End Sub
End Sub
Private Sub Command2_Click()
End Sub
Form3.Hide
End Sub
Form3.Hide
Form2.Show
End Sub
Option Explicit
Dim cn As ADODB.Connection
Dim rs As ADODB.Recordset
Dim a As Integer
Dim b As Long
Text1.Text = ""
Text2.Text = ""
Combo1.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
End Sub
Form4.Hide
Form2.Show
End Sub
Adodc1.Refresh
Combo1.DataField = "gender"
Adodc1.Recordset.Update
Adodc1.Recordset.MoveFirst
End Sub
Adodc1.Recordset.Fields("Gender") = Combo1.Text
Adodc1.Recordset.Fields("Salary") = Text6.Text
End Sub
Dim cn As ADODB.Connection
Dim rs As ADODB.Recordset
cn.Open
End Sub
Private Sub display()
Combo1.Text = Adodc1.Recordset.Fields("Gender")
Text6.Text = Adodc1.Recordset.Fields("Salary")
End Sub
Adodc1.Refresh
Adodc1.Recordset.AddNew
add
Adodc1.Recordset.Update
End Sub
Adodc1.Recordset.MovePrevious
Adodc1.Recordset.MoveFirst
End If
display
End Sub
Adodc1.Refresh
Adodc1.Recordset.MoveFirst
display
End Sub
Adodc1.Recordset.MoveNext
Adodc1.Recordset.MoveLast
End If
display
End Sub
Adodc1.Refresh
Adodc1.Recordset.MoveLast
display
End Sub
a=0
Adodc1.Recordset.MoveFirst
If (b = (Adodc1.Recordset(0))) Then
a=1
Exit Do
Else
Adodc1.Recordset.MoveNext
End If
Loop
If a = 0 Then
Adodc1.Recordset.MoveFirst
End If
display
End Sub
Text1.Text = ""
Text2.Text = ""
Combo1.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
End Sub
Adodc1.Recordset.Delete
clear
End Sub
Option Explicit
Dim cn As ADODB.Connection
Dim rs As ADODB.Recordset
Dim a As Integer
Dim b As Long
Adodc1.Recordset.Fields("Name") = Text2.Text
Adodc1.Recordset.Fields("Gender") = Combo1.Text
Adodc1.Recordset.Fields("Department") = Text3.Text
Adodc1.Recordset.Fields("Address") = Text4.Text
End Sub
Private Sub cmd10_Click(Index As Integer)
Text1.Text = ""
Text2.Text = ""
Combo1.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
End Sub
Form5.Hide
Form2.Show
End Sub
Adodc1.Refresh
Adodc1.Recordset.MoveFirst
display
End Sub
Adodc1.Recordset.MoveNext
Adodc1.Recordset.MoveLast
End If
display
End Sub
Adodc1.Recordset.MoveLast
display
End Sub
Adodc1.Recordset.MovePrevious
Adodc1.Recordset.MoveFirst
End If
display
End Sub
a=0
Adodc1.Recordset.MoveFirst
If (b = (Adodc1.Recordset(0))) Then
a=1
Exit Do
Else
Adodc1.Recordset.MoveNext
End If
Loop
If a = 0 Then
Adodc1.Recordset.MoveFirst
End If
display
End Sub
Adodc1.Refresh
Adodc1.Recordset.AddNew
add
Adodc1.Recordset.Update
End Sub
End Sub
End Sub
End Sub
End Sub
End Sub
Private Sub Command6_Click()
End Sub
End Sub
Dim cn As ADODB.Connection
Dim rs As ADODB.Recordset
cn.Open
End Sub
Text2.Text = Adodc1.Recordset.Fields("Name")
Combo1.Text = Adodc1.Recordset.Fields("Gender")
Text3.Text = Adodc1.Recordset.Fields("Department")
Text4.Text = Adodc1.Recordset.Fields("Address")
End Sub
Option Explicit
Dim cn As ADODB.Connection
Dim rs As ADODB.Recordset
Dim a As Integer
Dim b As Long
Adodc1.Refresh
Combo2.DataField = "Gender"
Adodc1.Recordset.Update
Adodc1.Recordset.MoveFirst
End Sub
Text1.Text = ""
Text2.Text = ""
Combo1.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
text7.Text = ""
Text8.Text = ""
Combo2.Text = ""
End Sub
Adodc1.Recordset.Fields("Gender") = Combo1.Text
End Sub
Adodc1.Refresh
Adodc1.Recordset.AddNew
add
Adodc1.Recordset.Update
End Sub
Adodc1.Refresh
Adodc1.Recordset.MoveFirst
display
End Sub
Adodc1.Recordset.MoveNext
Adodc1.Recordset.MoveLast
End If
display
End Sub
Adodc1.Refresh
Adodc1.Recordset.MoveLast
display
MsgBox "This is Last record"
End Sub
Adodc1.Recordset.MovePrevious
Adodc1.Recordset.MoveFirst
End If
display
End Sub
a=0
Adodc1.Recordset.MoveFirst
If (b = (Adodc1.Recordset(0))) Then
a=1
Exit Do
Else
Adodc1.Recordset.MoveNext
End If
Loop
If a = 0 Then
Adodc1.Recordset.MoveFirst
End If
display
End Sub
Form7.Hide
Form2.Show
End Sub
Combo1.Text = Adodc1.Recordset.Fields("Gender")
End Sub
End Sub
Dim cn As ADODB.Connection
Dim rs As ADODB.Recordset
cn.Open
Set rs = cn.Execute("select * from Patient")
End Sub
Option Explicit
Dim cn As ADODB.Connection
Dim rs As ADODB.Recordset
Dim a As Integer
Dim b As Long
Text1.Text = ""
Text2.Text = ""
Combo1.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
End Sub
Combo1.Text = Adodc1.Recordset.Fields("Gender")
End Sub
Adodc1.Recordset.Fields("Gender") = Combo1.Text
End Sub
Adodc1.Refresh
Combo1.DataField = "Gender"
Adodc1.Recordset.Update
Adodc1.Recordset.MoveFirst
End Sub
Form8.Hide
Form2.Show
End Sub
Adodc1.Refresh
Adodc1.Recordset.MoveFirst
display
End Sub
Adodc1.Recordset.MoveNext
Adodc1.Recordset.MoveLast
End If
display
End Sub
Private Sub cmd5_Click(Index As Integer)
Adodc1.Refresh
Adodc1.Recordset.MoveLast
display
End Sub
Adodc1.Recordset.MovePrevious
Adodc1.Recordset.MoveFirst
End If
display
End Sub
a=0
Adodc1.Recordset.MoveFirst
If (b = (Adodc1.Recordset(0))) Then
a=1
Exit Do
Else
Adodc1.Recordset.MoveNext
End If
Loop
If a = 0 Then
End If
display
End Sub
Adodc1.Refresh
Adodc1.Recordset.AddNew
add
Adodc1.Recordset.Update
End Sub
Dim cn As ADODB.Connection
Dim rs As ADODB.Recordset
cn.Open
End Sub