//form1
Dim con As New ADODB.Connection
Dim rs As New ADODB.Recordset
Dim status As String
Dim str As String
Dim bno As Integer
End Function
Public Function lockvisible()
TxtAut.Visible = False
TxtEdi.Visible = False
TxtPub.Visible = False
TxtName.Visible = False
RadIss.Visible = False
RadAvi.Visible = False
End Function
Public Function unlockvisible()
TxtAut.Visible = True
TxtEdi.Visible = True
TxtPub.Visible = True
TxtName.Visible = True
RadIss.Visible = True
RadAvi.Visible = True
End Function
ButAll.Visible = False
ButStore.Visible = False
ButNext.Visible = True
ButDel.Visible = False
ButSearch.Visible = True
ButUpdate.Visible = False
End Sub
ButAll.Visible = False
ButStore.Visible = False
ButNext.Visible = True
ButDel.Visible = False
ButSearch.Visible = True
ButUpdate.Visible = False
End Sub
str = " select * from library where bno= " & TxtIdNo & ""
rs.Open str, con, adoopendynamic, adLockOptimistic
If Not rs.EOF Then
unlockvisible
TxtName.Text = rs.Fields(0)
TxtIdNo.Text = rs.Fields(1)
TxtAut.Text = rs.Fields(2)
TxtEdi.Text = rs.Fields(3)
TxtPub.Text = rs.Fields(4)
status = rs.Fields(5)
bno = rs.Fields(1)
If status = "Issued" Then
RadIss.Value = True
TxtIsTo.Text = rs.Fields(6)
TxtIsDa.Text = rs.Fields(7)
TxtReDa.Text = rs.Fields(8)
Else
RadAvi.Value = True
End If
If ButMdyTab.Visible = False Then
ButUpdate.Visible = True
End If
If ButDelTab.Visible = False Then
ButDel.Visible = True
End If
Else
MsgBox " No such data", vbInformation
End If
rs.Close
End If
con.Close
End Sub
ButAll.Visible = True
ButStore.Visible = False
ButNext.Visible = True
ButDel.Visible = False
ButSearch.Visible = True
ButUpdate.Visible = False
End Sub
//form2
End Sub
//form3