Library Information System
Library Information System
DOMINGO, PIAT, CAGAYAN ________________________________ A Thesis Presented to the Faculty of the College of Information And Computer Science Cagayan State University Carig Sur, Tuguegarao City _________________________________ In Partial Fulfillment of the Academic Requirement for the Degree of Bachelor of Science in Information Technology ____________________________________
By:
Library Information System of Piat Academy Chapter I The Problem and its Background Introduction
Information Systems are becoming ever more central to society, especially in business and industry. As society and technology develop, the most important skills for the futurelife in the development of individuals with the ability to both understand and manage these interrelated systems. Consequently, the things that were once seen in our country (people, organizations, information and technology) are now expected to operate a system that would help them to make their work easier and faster. At present, Piat Academy couldnt search for the files easily because as we observe, they do not have any computerized system. Thus, many problems are encountered. Common of which are the losing of files, consume a lot of time and prone to error. The researchers therefore, propose for the Piat Academy Library Information System so that the parish will have better and faster manipulation that would be efficient to the school.
Conceptual Frameworks
Students Name Borrow/Return Students record what or when the book has borrowed.
The system will allow admin to enter the students name (LastName, FirstName) Where in it can easily record the students data and what book was borrowed. It will also the remarks of the books which were lost, damaged and vandalized.
Research Objectives
1. To provide a library system that will secure the borrowed books. 2. To provide a system that will process the returning and borrowing of books. 3. To provide a system that will monitor the recording of the library holding. 4. To produce a system to solve library transaction. 5. Reports books that are frequently of used and borrowers particular.
Definition of Terms
To have a clear understanding of the study, the following terms are being defined. Access to call upto active for use a computer system may contains a variety of programs and date files, but not are active already for use until called up by the operator or a program routine. Library - a room, building, or institution where a collection of books or other research materials is kept. Book- a collection of printed or manuscript pages sewn or glued together along one side and bound between rigid boards or flexible covers. Computer is an electronic device capable of accepting data and processes this data to become meaningful information.
Library Information System of Piat Academy Chapter III Review of Related Literature and Studies Related Literature
Libraries are composed of wide selection of non-fiction (fact-based) books as well as fiction (novels and stories). Library is a collection of literary documents records kept or reference or borrowing. To determine whether or not a library has the book you need, you have to consult the card catalog. It is also collection of materials containing information ideas, and works of imagination organized and staff by people trained to make them available. (Eleanor Ahlers, 2005) Different groups of people use libraries- Teachers and students, youngsters and the elderly, police and plumbers and politicians. Each group, each person has different library needs. Because no one library can handle all needs, there are different kinds of libraries share materials with each other. (Ariz Tucson, 2004) No library, no matter how large, has every book or the answer to every question. So libraries, through borrowing and lending arrangements, share with each other as well as the people who use them. Should the book or magazine be needed where it is, a photographic copy or photocopy can be made of the pages wanted. (Lilian Bradshaw, 2004) To provide an accurate and consistent output as well as systematic accessing of data involved in borrowing, returning and inventory process a client- server library system was needed. The community talks many physical forms, ranging from large purpose built buildings and in this community there may be libraries fulfilling different purpose and serving different client groups or groups it serve. (John F. Anderson, 2003)
Locale of the Study The research entitled Library information System was conducted at Piat Academy, Piat, Cagayan particularly the Library.
Research Instrument: The researchers tend to know the dis/advantages with regard to the library set-up of the school and how the processing of borrowing and returning of books being done. Part of it is to know the importance of electronic Library set-up.
Library Information System of Piat Academy Chapter IV.The Proposed Library Information System of Peablanca National High School.
Present Flow Borrowing and Returning
No
The Student will just get the book from the shelves and use it.
If the students to borrow the book, the student must log-in in the logbook.
The student will return the book after he/she use it.
Last name
Section
Year
Gender
First name
Borrower
ID
Student ID
Password
User Information
Username
The diagram shows the relationship of two entities, the borrower entity, the books entity. It also shows the attributes of the user information entity.
1.0 LIBRARIAN
1.2 Enter/Creates a record for student /teacher who borrows book Release the book
2.1Returning of Books
2.2Returning of Books
2.0if penalized
Of lost book
2.1
2.2
Request Book/s
Book/s
Issued
Check/ verifies
Librarian
Borrowing
Book code
Books
Book Author
Book Title
Student ID
Borrower
Last Name
Year
Section First name
The diagram shows the relationship of three entities for borrowing transaction, the borrower entity and the entity of books.
Time Issued
Date Issued
Returning
Time Returned
Date Retuned
Last Name
Books Borrower
Book code
Title
Student ID First Name
Library Information System of Piat Academy The Proposed Library System A. Input- Process- Output Diagram
INPUT
Password Username Password Books Id Book Code Title Author Publisher Date Published Place of Publication Book Quantity Authors Id Last Name First Name Student Id Last Name First Name Year Section Gender Borrowing Id Last Name First Name Section Year Book Title Time Issued Date Issued Returning Id Borrower Last Name Borrower First Name Book Title Time Issued Date Issued Time Return Date Return
PROCESS
OK- this is to accept the particular information you input. Cancel- this is to cancel a particular transaction. Add- this is to add information. Edit- this is to edit information on a particular transaction. Reload- this is the other term for refresh. Close- this is to close particular form. Save- this is to save a particular information or data. save data and information Issue- saving transaction in issuing books. Return- saving and updating all transaction in the returning of books.
OUTPUT
Access to the system. List of the books with corresponding information.
Library Information System of Piat Academy B. Hierarchical Input- Process- Output Diagram
Log-in
Library
Reports
List of borrowed books
About
The Researcher
User Management
Exit
Library Information System of Piat Academy C. Data base Design - Entity Relationship Diagram User View 1: User Management a. Data Environment
Access Level
Password
LOGIN
Username
b. Data Entry
c. Data Description
This form shows how the books bring processed by the librarian. Whenever there are new published books, the only button that can be use is ADD. Fewer wrong information entered use EDIT. And search for searching something. And close button to close a particular form.
Library Information System of Piat Academy User View 2: Book Entry a. Data Environment
ID
Author
Books
Book Left
b. Data entry
C. Data Description
This form allows you to add new book entries as you can see in the sample form there is a Book ID this is were you will input different codes of new book title.Whenever there are new published books, the only button that can be use is ADD. Fewer wrong information entered use EDIT. And search for searching something. And close button to close a particular form.
MI
First Name
Last Name
ID Number
Student
Year Level
Age
Sectio n
Gende r
Address
b. Data Entry
c. Data Description
This form allows you to add new borrower that will need some transaction of the system as you can see there are textboxes in the form this were you will input all data and information of the particular borrower also as you can see there are buttons available this are the add button responsible in saving all information you input in the given textboxes and the close button is for you to exit the particular button.
Library Information System of Piat Academy User View 4: Teacher Entry a. Data Environment
ID
MI
ID Number
Teacher
First Name Last Name Address
b. Data Entry
c. Data Description
This form allows you to add new borrower that will need some transaction of the system as you can see there are textboxes in the form this were you will input all data and information of the particular borrower also as you can see there are buttons available this are the add button responsible in saving all information you input in the given textboxes and the close button is for you to exit the particular button.
Library Information System of Piat Academy User View 5: Borrowing Transaction a. Data Environment
Gender Name ID Number Section n Year Level BookID
Time Issued
BORROWING
Title
Time Issued
BORROWING
Title
c. Data Description
This form contains the return in which it will show who borrowed the book, what book was borrowed and when it was borrowed. There will be also remarks regarding the book condition if it is lost and damaged. There is also one button bellow the return, the update button, the update button is responsible for whatever data you input in the given textboxes.
Student
Primary Key
Books
Primary Key
Teacher
Primary Key
Borrowing
Primary Key
Returning
Primary Key
Students
Books
Returning
Teachers
Borrowing
Library Information System of Piat Academy D. Physical Design: User Interface, Input Screens, Output screens Design: User
Library Information System of Piat Academy Chapter V Summary of Findings, Conclusion, and Recommendation
Summary and Findings Through the proposed systems, the solution is to secure the book file, data or records through making security confidential information by implementing a password which means that access to the system would be denied unauthorized person. The solution on how you save time inventorying the books and this can be done through the use of library information system by classifying the books according to author, and titles. In easy sorting the books the users can find the book by searching with the keyword, for instance it can allow the users to do rapid words searches to find the needed resources like who is the author and what is the title of the book. The solution for the loss or damage records of the books is done through verifying the name of the borrowers and by searching the availability of the books. If the borrowers cannot return it they can be given a penalty. The study provided more efficient and effective processing of data. And it would also make faster and easier generation of outputs. Conclusion Based on the findings of this study, the researchers conclude that library system brings many advantage for efficient processes and procedures. The researchers implement the library system for the following benefits.
Recommendations After the development of the system the researchers had the following recommendation the system should be used to minimize time, effort and assure the accuracy in work. The security code should be kept secret. Each one who uses the system shall have his own work.
Library Information System of Piat Academy Chapter VI Appendices Appendix A: Flowcharting Symbol Symbol Symbol Name FLOW Meaning
-indicates the flow of the process.
DOCUMENT SYMBOL
-a symbol shaped that the data can be recorded or stored on a hard document. -rectangular shaped where the data can be recorded or stored on adocument. - this symbol represent input/output operation. -cylindrical shaped symbol specifies input/output operation being program on a magnetic drain storage device. -indicates that a process is being performed manually without the use of machine or computer
PROCESS SYMBOL
INPUT/OUTPUT PROCESS
STORAGE SYMBOL
MANUAL PROCESS
Library Information System of Piat Academy Appendix B: Entity Relationship Diagram Symbols Symbol Symbol Name ENTITY Meaning
-An object that exists in and distinguishable from other objects.
ATTRIBUTES
-A named property or characterized of an entity that is of interest to the organization. -An attribute of one entity that has been chosen as the primary key of the other entity. -A candidate key that has been identifies for an entity type.
FOREIGN KEY
PRIMARY KEY
Mrs. Analyn Romeo Officer in Charge Piat Academy Sto Domingo, Piat, Cagayan Maam: Greetings! Part of the requirements of the subject System Analysis and Design is to develop a computer- based system that could facilitate manual transactions. It is in this relation that we third year students of the College Of Information and Computer Science came out with a proposal entitled Library Information System, and we humbly have chosen your school as the main respondent. In this connection, may we be allowed to conduct an interview as our main source of data gathering at your most convenient time. Rest assured that all data gathered will be treated with utmost confidentiality. Thank you very much and more power. Respectfully yours,
Fernan Palattao Researcher Noted By: Arlen B. Calimag, MIT Subject Teacher Approved By: Mr. Generino B. Siddayao, MSIT Academic Dean
This form allows you to add new borrower that you will need in some transaction of the system. As you can see, there are textboxes in the form this is where you will input all data and information of the particular borrower. There are also two buttons available, these are the add button which responsible in saving all
Cagayan State University College of Information Technology and Computer Science 43
Library Information System of Piat Academy information you input in the given textboxes and the close button is for you to exit the particular button.
This form contains the borrowers book condition information in which it will show who borrowed the book, what book was borrowed and when it was borrowed. There will also be remarks regarding the book condition if it was lost, damaged and vandalized. There is also two buttons below the borrowers information, the save button and the exit button, the save button is responsible for saving on is the whatever data you input in the given textboxes and the last button is the close button. The function of this button is to close the particular form.
End If Adodc1.RecordSource = "SELECT * FROM tblUser WHERE USERNAME='" &Trim(txtUserName.Text) & "' AND PASSWORD='" & Trim(txtPassword.Text) & "'" Adodc1.Refresh Adodc3.RecordSource = "SELECT * FROM tblBlocker WHERE Username like '" &Trim(txtUserName.Text) & "'"
Adodc1.RecordSource = "SELECT * FROM tblUser WHERE Username='" &Trim(txtUserName.Text) & "' AND Password='" & Trim(txtPassword.Text) & "'" Adodc1.Refresh
Login.Adodc3.RecordSource = "SELECT * FROM tblBlocker" Login.Adodc3.Refresh If Left(Trim(Me.Caption), 3) = "Add" Then Login.Adodc3.Recordset.AddNew Login.Adodc3.Recordset.Fields(1).Value = Trim(txtUserName.Text) Login.Adodc3.Recordset.Fields(2).Value = Trim(txtPassword.Text)
' BarrowTeacher.INFO.Caption = Me.DataGrid1.Columns(1).Value ' frmreturn.INFO.Caption = Me.DataGrid1.Columns(1).Value ' Unload Me ' MDIMain.Show ' Else
'End If
'If X = 3 Then 'MsgBox "You have reach the maximum attemp!! The system will now terminated", vbExclamation 'Me.Visible = False 'FormLock.Show 1 'End If End Sub Private Sub txtUserName_LostFocus() If Len(Me.txtUserName.Text) < 6 Then MsgBox "Please input atlease 6 chracter", vbCritical Me.txtUserName.Text = "" Me.txtUserName.SetFocus End If End Sub Dim counter As Integer
Private Sub cmd_Click(Index As Integer) Select Case Index Case 0 ok Case 1 Unload Me
End If If Trim(Len(txtPassword.Text)) = 0 Then MsgBox "Password is empty. Please try again..", vbInformation + vbOKOnly, "Empty Textbox" txtPassword.SetFocus Exit Sub
End If Adodc1.RecordSource = "SELECT * FROM tblUser WHERE USERNAME='" &Trim(txtUserName.Text) & "' AND PASSWORD='" & Trim(txtPassword.Text) & "'" Adodc1.Refresh
Adodc3.RecordSource = "SELECT * FROM tblBlocker WHERE Username like '" &Trim(txtUserName.Text) & "'" Adodc3.Refresh If Adodc3.Recordset.RecordCount > 0 Then MsgBox "This Username has been Blocked. Please ask Assistance", vbCritical + vbOKOnly, App.Title 'Unload Me frmBlocker.Show 1
Adodc1.RecordSource = "SELECT * FROM tblUser WHERE Username='" &Trim(txtUserName.Text) & "' AND Password='" & Trim(txtPassword.Text) & "'" Adodc1.Refresh
If Adodc1.Recordset.Fields(4).Value = "USER" Then MDIMain.mnuLibrary.Enabled = False MDIMain.mnuUserManagement.Enabled = False End If MsgBox "Hello "& Trim(Me.DataGrid1.Columns(1).Value) & " Welcome to ALDEN ANNA SPORTS HOUSE.", vbInformation Unload Me
Login.Adodc3.RecordSource = "SELECT * FROM tblBlocker" Login.Adodc3.Refresh If Left(Trim(Me.Caption), 3) = "Add" Then Login.Adodc3.Recordset.AddNew Login.Adodc3.Recordset.Fields(1).Value = Trim(txtUserName.Text) Login.Adodc3.Recordset.Fields(2).Value = Trim(txtPassword.Text) 'Login.Adodc3.Recordset.Fields(2).Value = Val(blocker) Login.Adodc1.Recordset.Update Login.Adodc1.Refresh End Else
' BarrowTeacher.INFO.Caption = Me.DataGrid1.Columns(1).Value ' frmreturn.INFO.Caption = Me.DataGrid1.Columns(1).Value ' Unload Me ' MDIMain.Show ' Else
' MsgBox "Password Did'nt Match", vbInformation + vbOKOnly, "Empty Textbox" ' ' ' Me.txtPassword.Text = "" Me.txtUserName.Text = "" Me.txtUserName.SetFocus
'End If
Private Sub txtUserName_LostFocus() If Len(Me.txtUserName.Text) < 6 Then MsgBox "Please input atlease 6 chracter", vbCritical Me.txtUserName.Text = "" Me.txtUserName.SetFocus End If End Sub Private Sub cmdbookid_Click()
End Sub
Private Sub cmdcancel_Click() If MsgBox("Are You Sure You Want to Cancel?", vbYesNo + vbQuestion, "Cancel") = vbYes Then Adodc1.Recordset.CancelBatch Unload Me Me.Show
If Me.txtid.Text = "" Or Me.txttitle.Text = "" Then MsgBox "All Fields Are required!", vbInformation Else If MsgBox("Are you sure you want to issue this book?", vbYesNo + vbQuestion, " Issue") = vbYes Then With Adodc1.Recordset .AddNew .Fields("IDNUMBER").Value = txtid.Text .Fields("Name").Value = txtname.Text .Fields("type").Value = txttype.Text .Fields("title").Value = txttitle.Text .Fields("author").Value = txtauthor.Text .Fields("bookid").Value = txtbid.Text .Fields("subject").Value = txtsub.Text .Fields("dateissued").Value = txtdi.Text .Fields("timeissued").Value = txtti.Text .Fields("duedate").Value = txtdd.Text .Fields("duetime").Value = txtdi1.Text
Adodc2.Recordset.Update Adodc2.Refresh
MsgBox "Successfully issued book to "& Trim(txtname.Text) & " with IDnumber : " & Trim(txtid.Text) & " ", vbInformation, "Issued"
If MsgBox("Do you want to Issue another book?", vbYesNo + vbQuestion, "Issue") = vbYes Then
Private Sub Command1_Click() If MsgBox("Are You Sure You Want to Delete?", vbYesNo + vbQuestion, "Delete") = vbYes Then Adodc1.Recordset.Delete Unload Me Me.Show End If End Sub
Private Sub Form_Load() txtdi.Text = Trim(Date) txtti.Text = Trim(Time) Me.naun.Caption = Format(Now, ("mmmm") & " " & ("dd") & " " & ("yyyy")) hide1 End Sub Sub hide1()
Me.DataGrid1.Columns(0).Width = 0 Me.DataGrid1.Columns(1).Width = 0
End Sub
Private Sub txtname_Change() Adodc1.RecordSource = "SELECT * FROM TBLTRANSACTIONs WHERE idNumber like '%" &Trim(txtid.Text) & "%' and name like '%" & Trim(txtname.Text) & "%'" Adodc1.Refresh End Sub
Private Sub txtSearch_Change() Adodc1.RecordSource = "SELECT * FROM tbltransactions WHERE BookID & Title & Name& Author LIKE '%" & Trim(txtsearch.Text) & "%'" Adodc1.Refresh End Sub
End Sub
End Sub Private Sub cmdadd_Click() Adodc1.Recordset.AddNew Me.txttitle.Enabled = True Me.txtauthor.Enabled = True Me.txtsubject.Enabled = True Me.txtbookid.Enabled = True Me.txtbookis.Enabled = True Me.txtquantity.Enabled = True Me.txtbookleft.Enabled = True Me.txtdescription.Enabled = True Me.txtprice.Enabled = True Me.txtdp.Text = Trim(Date) txttitle.SetFocus cmdClose.Enabled = False cmdsave.Enabled = True cmdcancel.Enabled = True cmdadd.Enabled = False cmdEdit.Enabled = False
Private Sub cmdcancel_Click() If MsgBox("Are You Sure You Want to Cancel?", vbYesNo + vbQuestion, "Cancel") = vbYes Then Adodc1.Recordset.CancelBatch Unload Me Me.Show End If End Sub
Else If MsgBox("Are You Sure You Want to Delete?", vbYesNo + vbQuestion, "Delete") = vbYes Then Adodc1.Recordset.Delete MsgBox "Successfully deleted", vbInformation, "Books"
Private Sub cmdedit_Click() If Adodc1.Recordset.RecordCount = 0 Then MsgBox " No recordds to be updated.", vbExclamation, "Books"
Else Me.txttitle.Enabled = True Me.txtauthor.Enabled = True Me.txtsubject.Enabled = True Me.txtbookid.Enabled = True Me.txtbookis.Enabled = True Me.txtquantity.Enabled = True Me.txtbookleft.Enabled = True Me.txtdescription.Enabled = True Me.txtprice.Enabled = True txttitle.SetFocus
End Sub
Private Sub cmdnext_Click() If Adodc1.Recordset.EOF Then MsgBox "End of File" Adodc1.Recordset.MoveLast Else Adodc1.Recordset.MoveNext End If
Else
Adodc1.Recordset.MovePrevious
Private Sub cmdsave_Click() If Me.txttitle.Text = "" Or Me.txtauthor.Text = "" Or Me.txtbookleft.Text = "" Or Me.txtsubject.Text = "" Or Me.txtbookid.Text = "" Or Me.txtbookis.Text = "" Or Me.txtquantity.Text = "" Or Me.txtbookleft.Text = "" Or Me.txtdescription.Text = "" Or Me.txtprice.Text = "" Then MsgBox "All Fields are Required", vbInformation
Else
If MsgBox("Are You Sure You Want to Save?", vbYesNo + vbQuestion, "Save") = vbYes Then
Adodc1.Recordset.Update
Unload Me Me.Show
End If End If
End Sub
End Sub
Private Sub DataGrid1_Click() If Adodc1.Recordset.RecordCount = 0 Then MsgBox " No recordds to be updated.", vbExclamation, "Return" End If End Sub
End Sub
Private Sub txtbdamage_KeyPress(KeyAscii As Integer) If Not ((KeyAscii >= 48 And KeyAscii <= 57) Or KeyAscii = 8) Then KeyAscii = 0 MsgBox "Input Number only", vbInformation, "numeric" End If End Sub
Private Sub txtbookid_KeyPress(KeyAscii As Integer) If Not ((KeyAscii >= 48 And KeyAscii <= 57) Or KeyAscii = 8) Then KeyAscii = 0 MsgBox "Input Number only", vbInformation, "numeric" End If If KeyAscii = 13 Then txtbookis.SetFocus End If
End Sub
Private Sub txtbookis_KeyPress(KeyAscii As Integer) If Not ((KeyAscii >= 48 And KeyAscii <= 57) Or KeyAscii = 8 Or KeyAscii = 45) Then KeyAscii = 0 MsgBox "Input Number only", vbInformation, "numeric" End If
End Sub
End Sub
Private Sub txtlostbook_KeyPress(KeyAscii As Integer) If Not ((KeyAscii >= 48 And KeyAscii <= 57) Or KeyAscii = 8) Then KeyAscii = 0 MsgBox "Input Number only", vbInformation, "numeric" End If End Sub
Private Sub txtoverdue_KeyPress(KeyAscii As Integer) If Not ((KeyAscii >= 48 And KeyAscii <= 57) Or KeyAscii = 8) Then KeyAscii = 0
Private Sub txtprice_KeyPress(KeyAscii As Integer) If Not ((KeyAscii >= 48 And KeyAscii <= 57) Or KeyAscii = 8) Then KeyAscii = 0 MsgBox "Input Number only", vbInformation, "numeric" End If If KeyAscii = 13 Then DTPicker1.SetFocus End If
End Sub
If Not ((KeyAscii >= 48 And KeyAscii <= 57) Or KeyAscii = 8) Then KeyAscii = 0 MsgBox "Input Number only", vbInformation, "numeric" End If If KeyAscii = 13 Then txtbookleft.SetFocus
End Sub
Private Sub txtSearch_Change() Adodc1.RecordSource = "select * from tblbooks where Title like'%" &Trim(txtsearch.Text) & "%' or Author like'%" & Trim(txtsearch.Text) & "%'" Adodc1.Refresh
Adodc1.RecordSource = "SELECT * FROM tblbooks where IDNumber LIKE '%" & Trim(txtsearch.Text) & "%'" Adodc1.RecordSource = Adodc1.Recordset.RecordCount total.Caption = Adodc1.Recordset.RecordCount If Adodc1.Recordset.RecordCount = 0 Then
Exit Sub
Private Sub txttitle_KeyPress(KeyAscii As Integer) If KeyAscii = 13 Then txtauthor.SetFocus End If End Sub Sub ReloadRecords() Adodc1.RecordSource = "SELECT * FROM tblbooks ORDER BY Title" Adodc1.Refresh
Adodc1.RecordSource = "SELECT * FROM tblbooks where IDNumber LIKE '%" & Trim(txtsearch.Text) & "%'" Adodc1.RecordSource = Adodc1.Recordset.RecordCount total.Caption = Adodc1.Recordset.RecordCount
End Sub
Private Sub ccmdcancel_Click() If MsgBox("Are You Sure You Want to ?", vbYesNo + vbQuestion, "Cancel") = vbYes Then Adodc1.Recordset.CancelBatch
Private Sub cmdrefresh_Click() Adodc1.RecordSource = "SELECT * FROM TBLTRANSACTIONs" Adodc1.Refresh hide1 End Sub Private Sub cmdsave_Click() Dim quantity As Integer
Else If MsgBox("Are you sure you want to issue this book?", vbYesNo + vbQuestion, " Issue") = vbYes Then
With Adodc1.Recordset
.AddNew
.Fields("IDNUMBER").Value = txtstudid.Text .Fields("Name").Value = txtname.Text .Fields("section").Value = txtsection.Text .Fields("yearlevel").Value = txtyl.Text .Fields("gender").Value = txtgender.Text .Fields("type").Value = txttype.Text .Fields("title").Value = txttitle.Text .Fields("author").Value = txtauthor.Text .Fields("bookid").Value = txtbookid.Text .Fields("subject").Value = txtsubject.Text .Fields("timeissued").Value = txtti.Text .Fields("dateissued").Value = txtdi.Text .Fields("duedate").Value = txtod.Text .Fields("duetime").Value = txtdt.Text .Fields("price").Value = txtprice.Text
.Update Adodc2.RecordSource = "select * from tblbooks where title='" & txttitle.Text & "'" Adodc2.Refresh quantity = Val(Adodc2.Recordset.Fields(8)) - 1 txtbleft.Text = quantity Adodc2.Recordset.Fields(8) = txtbleft.Text
Adodc2.Recordset.Update Adodc2.Refresh
MsgBox "Successfully issued book to "& Trim(txtname.Text) & " with IDnumber : " & Trim(txtstudid.Text) & " ", vbInformation, "Issued" If MsgBox("Do you want to Issue another book?", vbYesNo + vbQuestion, "Issue") = vbYes Then
frmbookrecords.Show vbModal Else clear End If End With End If End If hide1 End Sub
Private Sub Cou_Change() If Int(cou) > 1 Then clear MsgBox "only two books are allowed to Borrow", vbInformation, "Error" End If End Sub Private Sub Form_Load() Me.naun.Caption = Format(Now, ("mmmm") & " " & ("dd") & " " & ("yyyy")) txtdi.Text = Trim(Date) txtti.Text = Trim(Time) txtod.Text = Trim(Date + 4) hide1 End Sub Sub hide1()
Me.DataGrid1.Columns(0).Width = 0 Me.DataGrid1.Columns(1).Width = 0 Me.DataGrid1.Columns(3).Width = 0 Me.DataGrid1.Columns(4).Width = 0 Me.DataGrid1.Columns(5).Width = 0 Me.DataGrid1.Columns(6).Width = 0 Me.DataGrid1.Columns(9).Width = 0 Me.DataGrid1.Columns(11).Width = 0 Me.DataGrid1.Columns(12).Width = 0 Me.DataGrid1.Columns(13).Width = 0 Me.DataGrid1.Columns(14).Width = 0 Me.DataGrid1.Columns(15).Width = 0 Me.DataGrid1.Columns(16).Width = 0 Me.DataGrid1.Columns(17).Width = 0 Me.DataGrid1.Columns(18).Width = 0 Me.DataGrid1.Columns(19).Width = 0 Me.DataGrid1.Columns(20).Width = 0 Me.DataGrid1.Columns(21).Width = 0 End Sub
Private Sub txtq_KeyPress(KeyAscii As Integer) If Not ((KeyAscii >= 48 And KeyAscii <= 57) Or KeyAscii = 8) Then KeyAscii = 0 MsgBox "Input Number only", vbInformation, "numeric" End If End Sub
End Sub
Public Sub clear() txtstudid.Text = "" txtname.Text = "" Me.txtsection.Text = "" Me.txtyl.Text = "" Me.txtgender.Text = "" txttitle.Text = "" txtauthor.Text = "" txtbookid.Text = "" txtsubject.Text = "" txtprice.Text = "" txtdi.Text = "" txtti.Text = "" txtod.Text = "" txtdt.Text = ""
End Sub
Private Sub txtname_Change() Adodc1.RecordSource = "SELECT * FROM TBLTRANSACTIONs WHERE idnumber like '%" &Trim(txtstudid.Text) & "%' and name like '%" & Trim(txtname.Text) & "%'" Adodc1.Refresh
Private Sub txtSearch_Change() Adodc1.RecordSource = "SELECT * FROM tbltransactions WHERE BookID & Title & Name& Author LIKE '%" & Trim(txtsearch.Text) & "%'" Adodc1.Refresh End Sub
cou.Text = Adodc1.Recordset.RecordCount End Sub Private Sub cmdclose_Click() Unload Me End Sub
If txtid.Text = vbnullstirng Then MsgBox " Record Selected", vbInformation, "Student record" ElseIf Val(Adodc1.Recordset.Fields(7)) <= 0 Then MsgBox " No Available Book.", vbInformation, "Borrow" Else Unload Me End If
If Me.Caption = "TEACHER" Then With BarrowTeacher .txttitle.Text = Adodc1.Recordset("title").Value .txtauthor.Text = Adodc1.Recordset("author").Value .txtbid.Text = Adodc1.Recordset("bookid").Value .txtsub.Text = Adodc1.Recordset("subject").Value .txtp.Text = Adodc1.Recordset("price").Value .txtdi.Text = Trim(Date) .txtti.Text = Trim(Time) .txtdd.Text = Trim(Date + 4) .txtdi1.Text = Trim(Time)
End With
Else
If Adodc1.Recordset.RecordCount = 0 Then MsgBox " No records to be updated.", vbExclamation, "Return" Else With borrowStudent .txttitle.Text = Adodc1.Recordset("title").Value .txtauthor.Text = Adodc1.Recordset("author").Value .txtbookid.Text = Adodc1.Recordset("bookid").Value .txtsubject.Text = Adodc1.Recordset("subject").Value .txtprice.Text = Adodc1.Recordset("price").Value .txtdi.Text = Trim(Date) .txtti.Text = Trim(Time) .txtod.Text = Trim(Date + 4) .txtdt.Text = Trim(Time)
End With
End If
If Adodc1.Recordset.RecordCount = 0 Then MsgBox " No records to be updated.", vbExclamation, "Return" Else With borrowStudent .txttitle.Text = Adodc1.Recordset("title").Value .txtauthor.Text = Adodc1.Recordset("author").Value .txtbookid.Text = Adodc1.Recordset("bookid").Value .txtsubject.Text = Adodc1.Recordset("subject").Value .txtprice.Text = Adodc1.Recordset("price").Value .txtdi.Text = Trim(Date) .txtti.Text = Trim(Time) .txtod.Text = Trim(Date + 4) .txtdt.Text = Trim(Time)
End Sub
Private Sub txtSearch_Change() Adodc1.RecordSource = "select * from tblbooks where Title like'" & txtsearch.Text & "%' and subject like'" & cmbcriteria.Text & "%'" Adodc1.Refresh If Adodc1.Recordset.RecordCount = 0 Then
End Sub
Private Sub cmbp_Change() If cmbp.Text = "None" Then txtpf.Text = cmbp.Text End If End Sub
Private Sub cmbrem_Click() If cmbrem.Text = "None" Then cmbp.Text = "None" cmbp.Enabled = False Else cmbp.Enabled = True End If End Sub
Private Sub cmdcalc_Click() On Error GoTo err Shell "calc.exe", vbNormalFocus err: 'MsgBox "You do not have calculator installed in your computer.", vbExclamation, "Return" End Sub
Private Sub cmdcancel_Click() If MsgBox("Are You Sure You Want to Cancel?", vbYesNo + vbQuestion, "Cancel") = vbYes Then
Unload Me Me.Show 1
Private Sub cmdupdate_Click() Dim quantity As Integer If txtid.Text = "" Then MsgBox " Select record.", vbExclamation, "Return"
Me.DataGrid1.Columns(0).Width = 0 Me.DataGrid1.Columns(1).Width = 0 Me.DataGrid1.Columns(3).Width = 0 Me.DataGrid1.Columns(4).Width = 0 Me.DataGrid1.Columns(5).Width = 0 Me.DataGrid1.Columns(6).Width = 0 Me.DataGrid1.Columns(9).Width = 0 Me.DataGrid1.Columns(11).Width = 0 Me.DataGrid1.Columns(12).Width = 0 Me.DataGrid1.Columns(13).Width = 0 Me.DataGrid1.Columns(14).Width = 0 Me.DataGrid1.Columns(15).Width = 0 Me.DataGrid1.Columns(16).Width = 0 Me.DataGrid1.Columns(17).Width = 0 Me.DataGrid1.Columns(18).Width = 0 Me.DataGrid1.Columns(19).Width = 0 Me.DataGrid1.Columns(20).Width = 0
txtid.Text = Adodc1.Recordset("IDNumber").Value txtname.Text = Adodc1.Recordset("name").Value txttitle.Text = Adodc1.Recordset("title").Value txtauthor.Text = Adodc1.Recordset("author").Value txtbi.Text = Adodc1.Recordset("bookid").Value txtsubject.Text = Adodc1.Recordset("subject").Value txtdt.Text = Adodc1.Recordset("duetime").Value txtdd.Text = Adodc1.Recordset("duedate").Value txtprice.Text = Adodc1.Recordset("price").Value txtdr.Text = Trim(Date) txtr2.Text = Trim(Time) cmbrem.Enabled = True
End Sub
Private Sub cmbcriteria_KeyPress(KeyAscii As Integer) KeyAscii = 0 End Sub Private Sub cmdclose_Click() Unload Me End Sub Private Sub cmdselect_Click() If txtid.Text = vbNullString Then MsgBox " Record Selected", vbInformation, "Student record"
Private Sub cmbcriteria_Click() txtsearch.Text = vbNullString txtsearch.Enabled = True txtsearch.SetFocus End Sub
Private Sub cmdcancel_Click() If MsgBox("Are You Sure You Want to Cancel?", vbYesNo + vbQuestion, "Cancel") = vbYes Then Adodc1.Recordset.CancelBatch Unload Me Me.Show End If
End Sub
Private Sub cmdselect_Click() If Adodc1.Recordset.RecordCount = 0 Then MsgBox " No recordds to be updated.", vbExclamation, "Return" Else With BarrowTeacher txtid.Text = Adodc1.Recordset("IDnumber").Value .txtid.Text = Adodc1.Recordset("IDnumber").Value .txtname.Text = Adodc1.Recordset("First_name").Value & Adodc1.Recordset("MI").Value & Adodc1.Recordset("Last_name").Value End With End If If txtid.Text = vbNullString Then MsgBox "Select Record.", vbExclamation, "Select" Else Unload Me End If
ElseIf cmbcriteria.Text = "First Name" Then Adodc1.RecordSource = "select * from tblteacher where First_Name like'" & txtsearch.Text & "%'" Adodc1.Refresh ElseIf cmbcriteria.Text = "Last Name" Then Adodc1.RecordSource = "select * from tblteacher where Last_Name like'" & txtsearch.Text & "%'" Adodc1.Refresh End If End Sub
Sub NewRecord() frmaddedituser.Show 1 Adodc1.RecordSource = "SELECT * FROM tblUser ORDER BY UserName" Adodc1.Refresh HideColumns End Sub
If access.Text = "Admin" Then MsgBox "Can't DELETED,Access Level is ADMIN", vbCritical + vbOKOnly, "Invalid input" Else If MsgBox("Do you really want to delete this record?", vbYesNo + vbQuestion, "Delete") = vbYes Then frmLock.Caption = "Enter Password to Delete" frmLock.logpass.Text = Me.DataGrid1.Columns(2).Value frmLock.Show 1 End If End If HideColumns End Sub Private Sub cmd_Click(Index As Integer) End Sub
Private Sub access_Change() If frmUserManagement.access.Text = "User" Then frmUserManagement.cmdEdit.Enabled = False End If End Sub
Private Sub Form_Activate() 'access.Text = DataGrid1.Columns(4).Value ReloadRecords 'DataGrid1.Columns(1).CellValue (Adodc1.Recordset.Fields(1)) End Sub Sub ReloadRecords() Adodc1.RecordSource = "SELECT * FROM tblUser"
Private Sub cmbcriteria_Click() Me.txtsearch.Text = vbNullString Me.txtsearch.Enabled = True Me.txtsearch.SetFocus End Sub
Private Sub cmbyear_KeyPress(KeyAscii As Integer) KeyAscii = 0 If KeyAscii = 13 Then txtsection.SetFocus End If End Sub
DataGrid1.Enabled = False
Me.txtid.Enabled = True Me.txtage.Enabled = True Me.txtsection.Enabled = True Me.txtfname.Enabled = True Me.txtlname.Enabled = True Me.txtmiddle.Enabled = True
cmbyear.Enabled = True
txtid.SetFocus cmdsave.Enabled = True cmdcancel.Enabled = True cmdadd.Enabled = False cmdEdit.Enabled = False cmdDelete.Enabled = False cmdnext.Enabled = False cmdprevious.Enabled = False cmdlast.Enabled = False cmdfirst.Enabled = False Me.txtid.Text = "" Me.txtage.Text = "" Me.txtsection.Text = "" Me.txtfname.Text = "" Me.txtlname.Text = "" Me.txtmiddle.Text = "" cmbgender.Text = "" Me.txtsection.Text = "" Me.txtaddress.Text = ""
cmbyear.Text = ""
Private Sub cmdcancel_Click() If MsgBox("Are You Sure You Want to Cancel?", vbYesNo + vbQuestion, "Cancel") = vbYes Then Adodc2.Recordset.CancelBatch Unload Me Me.Show 1 End If End Sub
End Sub
Private Sub cmddelete_Click() If Adodc2.Recordset.RecordCount = 0 Then MsgBox " No records to be deleted.", vbExclamation, "Student"
Else If MsgBox("Are You Sure You Want to Delete?", vbYesNo + vbQuestion, "Delete") = vbYes Then Adodc2.Recordset.Delete
Private Sub cmdedit_Click() DataGrid1.Enabled = False Me.Caption = "Edit" If Adodc2.Recordset.RecordCount = 0 Then MsgBox " No Records to be updated.", vbExclamation, "Student" cmdEdit.Enabled = False Else Me.txtaddress.Enabled = True
Me.txtfname.Enabled = True Me.txtid.Enabled = True Me.txtlname.Enabled = True Me.txtmiddle.Enabled = True Me.txtsection.Enabled = True Me.txtaddress.Enabled = True Me.txtage.Enabled = True Me.txtsection.Enabled = True cmbgender.Enabled = True cmbyear.Enabled = True txtid.SetFocus cmdsave.Enabled = True
Cagayan State University College of Information Technology and Computer Science 100
Private Sub cmdnext_Click() If Adodc2.Recordset.EOF Then MsgBox "End of File", vbInformation, "Student" Adodc2.Recordset.MoveLast Else Adodc2.Recordset.MoveNext End If
txtid.Text = Adodc2.Recordset("idNumber").Value txtlname.Text = Adodc2.Recordset("Last_name").Value txtfname.Text = Adodc2.Recordset("First_name").Value txtmiddle.Text = Adodc2.Recordset("MI").Value txtsection.Text = Adodc2.Recordset("Section").Value cmbyear.Text = Adodc2.Recordset("year_level").Value cmbgender.Text = Adodc2.Recordset("gender").Value txtage.Text = Adodc2.Recordset("Age").Value
Cagayan State University College of Information Technology and Computer Science 101
Private Sub cmdprev_Click() Adodc2.RecordSource = "select * from tblstud" Adodc2.Refresh RS_AllStudentsAccounts.Show vbModal End Sub
Private Sub cmdprevious_Click() On Error Resume Next If Adodc2.Recordset.BOF Then MsgBox "Beginning of File", vbInformation, "Student" Adodc2.Recordset.MoveFirst Else Adodc2.Recordset.MovePrevious End If txtid.Text = Adodc2.Recordset("idNumber").Value txtlname.Text = Adodc2.Recordset("Last_name").Value txtfname.Text = Adodc2.Recordset("First_name").Value txtmiddle.Text = Adodc2.Recordset("MI").Value txtsection.Text = Adodc2.Recordset("Section").Value cmbyear.Text = Adodc2.Recordset("year_level").Value cmbgender.Text = Adodc2.Recordset("gender").Value txtage.Text = Adodc2.Recordset("Age").Value txtaddress.Text = Adodc2.Recordset("Address").Value
Cagayan State University College of Information Technology and Computer Science 102
Private Sub cmdsave_Click() If Me.txtage.Text = "" Or Me.txtaddress.Text = "" Or Me.txtfname.Text = "" Or Me.txtid.Text = "" Or Me.txtlname.Text = "" Or Me.txtmiddle.Text = "" Or Me.txtfname.Text = "" Or Me.cmbgender.Text = "" Or Me.cmbyear.Text = "" Then MsgBox "All Fields are Required", vbInformation Exit Sub End If cmdadd.Enabled = True cmdsave.Enabled = False cmdEdit.Enabled = True cmdDelete.Enabled = True cmdadd.Enabled = True cmdcancel.Enabled = False
DataGrid1.Enabled = True Frame1.Enabled = False cmdnext.Enabled = True cmdprevious.Enabled = True cmdlast.Enabled = True cmdfirst.Enabled = True If Me.Caption = "Edit" Then Adodc2.RecordSource = "SELECT * FROM tblStud WHERE ID = " &Val(ID.Text) & "" With Adodc2.Recordset
Cagayan State University College of Information Technology and Computer Science 103
Cagayan State University College of Information Technology and Computer Science 104
End If
End Sub Private Sub Combo2_KeyPress(KeyAscii As Integer) KeyAscii = 0 End Sub Private Sub cmdsave_KeyPress(KeyAscii As Integer) If KeyAscii = 13 Then End If End Sub
Private Sub DataGrid1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) On Error Resume Next
Cagayan State University College of Information Technology and Computer Science 105
Private Sub ReloadRecords() Adodc2.RecordSource = "select * from tblstud ORDER BY Last_Name, First_Name" Adodc2.Refresh= Adodc2.RecordSource = Adodc2.RecordSource = "SELECT * FROM tblstud where IDNumber LIKE '%" &Trim(IdNumber) & "%'" Adodc2.RecordSource = Adodc2.Recordset.RecordCount total.Caption = Adodc2.Recordset.RecordCount Me.txtsearch.Text = "" Me.cmbcriteria.Text = "" HideColumns End Sub
Cagayan State University College of Information Technology and Computer Science 106
Private Sub txtaddress_KeyPress(KeyAscii As Integer) If KeyAscii = 13 Then cmdsave.SetFocus End If End Sub
Private Sub txtbday_KeyPress(KeyAscii As Integer) If KeyAscii = 13 Then txtcp.SetFocus End If End Sub
Private Sub txtcp_KeyPress(KeyAscii As Integer) If KeyAscii = 13 Then txtaddress.SetFocus End If End Sub
Private Sub txtage_KeyPress(KeyAscii As Integer) If Not ((KeyAscii >= 48 And KeyAscii <= 57) Or KeyAscii = 8) Then KeyAscii = 0 MsgBox "Input Number only", vbInformation, "numeric" End If If KeyAscii = 13 Then txtaddress.SetFocus End If
Cagayan State University College of Information Technology and Computer Science 107
Private Sub txtmname_KeyPress(KeyAscii As Integer) If KeyAscii = 13 Then txtaddress.SetFocus End If End Sub
Cagayan State University College of Information Technology and Computer Science 108
Private Sub txtmiddle_KeyPress(KeyAscii As Integer) If KeyAscii = 13 Then cmbgender.SetFocus End If End Sub
Private Sub txtSearch_Change() Adodc2.RecordSource = "select * from tblstud where IDNumber like'" & txtsearch.Text & "%' or last_name like'" & txtsearch.Text & "%'" Adodc2.Refresh Adodc2.RecordSource = "SELECT * FROM tblstud where IDNumber LIKE '%" &Trim(IdNumber) & "%'" Adodc2.RecordSource = Adodc2.Recordset.RecordCount total.Caption = Adodc2.Recordset.RecordCount If Adodc2.Recordset.RecordCount = 0 Then MsgBox "No Record Match.", vbExclamation, "Student" txtsearch.Text = "" Exit Sub End If If cmbcriteria.Text = "Student ID" Then Adodc2.RecordSource = "select * from tblstud where IDNumber like'" & txtsearch.Text & "%'" Adodc2.Refresh If Adodc2.Recordset.RecordCount = 0 Then MsgBox "No Record Match.", vbExclamation, "Student" txtsearch.Text = ""
Cagayan State University College of Information Technology and Computer Science 109
ElseIf cmbcriteria.Text = "First Name" Then Adodc2.RecordSource = "select * from tblstud where First_Name like'" & txtsearch.Text & "%'" Adodc2.Refresh If Adodc2.Recordset.RecordCount = 0 Then MsgBox "No Record Match.", vbExclamation, "Student" Exit Sub End If ElseIf cmbcriteria.Text = "Last Name" Then Adodc2.RecordSource = "select * from tblstud where Last_Name like'" & txtsearch.Text & "%'" Adodc2.Refresh If Adodc2.Recordset.RecordCount = 0 Then MsgBox "No Record Match.", vbExclamation, "Student" Exit Sub End If ElseIf cmbcriteria.Text = "Year Level" Then Adodc2.RecordSource = "select * from tblstud where Year_Level like'" & txtsearch.Text & "%'" Adodc2.Refresh If Adodc2.Recordset.RecordCount = 0 Then MsgBox "No Record Match.", vbExclamation, "Student" Exit Sub End If
Cagayan State University College of Information Technology and Computer Science 110
Private Sub txtsection_KeyPress(KeyAscii As Integer) If KeyAscii = 13 Then txtage.SetFocus End If End Sub
Private Sub txtsid_Change() Adodc1.RecordSource = "select * from tblStud where IDNumber like'" & txtid.Text & "%'" Adodc1.Refresh End Sub
Private Sub cmbcriteria_Click() txtsearch.Text = vbNullString txtsearch.SetFocus End Sub Private Sub cmdadd_Click() DataGrid1.Enabled = False Me.txtid.Enabled = True
Cagayan State University College of Information Technology and Computer Science 111
Private Sub cmdcancel_Click() If MsgBox("Are You Sure You Want to Cancel?", vbYesNo + vbQuestion, "Cancel") = vbYes Then Adodc1.Recordset.CancelBatch
Cagayan State University College of Information Technology and Computer Science 112
Private Sub cmddelete_Click() If Adodc1.Recordset.RecordCount = 0 Then MsgBox " No recordds to be deleted.", vbExclamation, "Teacher" Else If MsgBox("Are You Sure You Want to Delete?", vbYesNo + vbQuestion, "Delete") = vbYes Then Adodc1.Recordset.Delete MsgBox "Record Successfully Deleted", vbInformation, "Teacher"
Cagayan State University College of Information Technology and Computer Science 113
Cagayan State University College of Information Technology and Computer Science 114
Private Sub cmdfirst_Click() Adodc1.Recordset.MoveFirst txtid.Text = Adodc1.Recordset("IDNumber").Value ID.Text = Adodc1.Recordset("ID").Value txtfname.Text = Adodc1.Recordset("First_Name").Value txtlname.Text = Adodc1.Recordset("Last_Name").Value txtmi.Text = Adodc1.Recordset("MI").Value txtaddress.Text = Adodc1.Recordset("Address").Value End Sub
Private Sub cmdlast_Click() Adodc1.Recordset.MoveLast txtid.Text = Adodc1.Recordset("IDNumber").Value ID.Text = Adodc1.Recordset("ID").Value txtfname.Text = Adodc1.Recordset("First_Name").Value txtlname.Text = Adodc1.Recordset("Last_Name").Value txtmi.Text = Adodc1.Recordset("MI").Value txtaddress.Text = Adodc1.Recordset("Address").Value End Sub
Private Sub cmdnext_Click() On Error Resume Next If Adodc1.Recordset.EOF Then MsgBox " End of File " Adodc1.Recordset.MoveLast Else
Cagayan State University College of Information Technology and Computer Science 115
Private Sub cmdprev_Click() Adodc1.RecordSource = "select * from tblteacher" Adodc1.Refresh RS_AllTeachersAccounts.Show vbModal End Sub
Private Sub cmdprevious_Click() If Adodc1.Recordset.BOF Then MsgBox " Beginning of File " Adodc1.Recordset.MoveFirst Else Adodc1.Recordset.MovePrevious End If txtid.Text = Adodc1.Recordset("IDNumber").Value ID.Text = Adodc1.Recordset("ID").Value txtfname.Text = Adodc1.Recordset("First_Name").Value txtlname.Text = Adodc1.Recordset("Last_Name").Value
Cagayan State University College of Information Technology and Computer Science 116
Private Sub cmdsave_Click() If Me.txtid.Text = "" Or Me.txtaddress.Text = "" Or Me.txtfname.Text = "" Or Me.txtlname.Text = "" Or Me.txtmi.Text = "" Then MsgBox "All Fields are Required", vbInformation Exit Sub End If If Me.Caption = "edit" Then Adodc1.RecordSource = "SELECT * FROM tblteacher WHERE ID = " &Val(ID.Text) & "" With Adodc1.Recordset .Fields("IDnumber").Value = txtid.Text .Fields("First_name").Value = txtfname.Text .Fields("Last_Name").Value = txtlname.Text .Fields("MI").Value = txtmi.Text .Fields("Address").Value = txtaddress.Text Adodc1.Recordset.Update MsgBox "Record successfully Updated.", vbInformation, "Teacher" End With Else Adodc1.Recordset.AddNew With Adodc1.Recordset .Fields("IDnumber").Value = txtid.Text .Fields("First_name").Value = txtfname.Text .Fields("Last_Name").Value = txtlname.Text
Cagayan State University College of Information Technology and Computer Science 117
Private Sub DataGrid1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) txtid.Text = Adodc1.Recordset("IDNumber").Value ID.Text = Adodc1.Recordset("ID").Value txtfname.Text = Adodc1.Recordset("First_Name").Value txtlname.Text = Adodc1.Recordset("Last_Name").Value txtmi.Text = Adodc1.Recordset("MI").Value txtaddress.Text = Adodc1.Recordset("Address").Value End Sub
Cagayan State University College of Information Technology and Computer Science 118
Private Sub txtaddress_KeyPress(KeyAscii As Integer) If KeyAscii = 13 Then cmdsave.SetFocus End If End Sub
Private Sub txtfname_KeyPress(KeyAscii As Integer) If KeyAscii = 13 Then txtlname.SetFocus End If End Sub
Private Sub txtid_KeyPress(KeyAscii As Integer) If Not ((KeyAscii >= 48 And KeyAscii <= 57) Or KeyAscii = 8 Or KeyAscii = 45) Then KeyAscii = 0 MsgBox "Only Numeric is allowed", vbInformation, "Number" End If If KeyAscii = 13 Then txtfname.SetFocus End If End Sub
Cagayan State University College of Information Technology and Computer Science 119
Private Sub txtlname_KeyPress(KeyAscii As Integer) If KeyAscii = 13 Then txtmi.SetFocus End If End Sub
Private Sub txtmi_KeyPress(KeyAscii As Integer) If KeyAscii = 13 Then txtaddress.SetFocus End If End Sub
Private Sub txtSearch_Change() Adodc1.RecordSource = "select * from tblteacher where IDNumber like'" & txtsearch.Text & "%' & First_Name like'" & txtsearch.Text & "%'" Adodc1.Refresh
Adodc1.RecordSource = "SELECT * FROM tblteacher where IDNumber LIKE '%" &Trim(IdNumber) & "%'" Adodc1.RecordSource = Adodc1.Recordset.RecordCount total.Caption = Adodc1.Recordset.RecordCount If Adodc1.Recordset.RecordCount = 0 Then MsgBox "No Record Match.", vbExclamation, "Techer" txtsearch.Text = "" ReloadRecords Exit Sub End If
Cagayan State University College of Information Technology and Computer Science 120
Cagayan State University College of Information Technology and Computer Science 121
Cagayan State University College of Information Technology and Computer Science 122
1. Eleanor Ahlrers, 2005 2. Ariz Tucson, 2004 3. John F. Anderson, 2003 4. Academic PR Newswire, 2000 5. Information Today, Inc., 2001 6. Jonathan savage, 2007 7. Karllheinz and khofoed, 2009 8. Amsden, 2000 9. WikiPedia
Cagayan State University College of Information Technology and Computer Science 123
Library Information System of Piat Academy Appendixes G: Curriculum Vitae Personal Data Name: Fernan A. Palattao Date of Birth: September 29, 1990 Place of Birth: Sto. Domingo, Piat, Cagayan Home Address: arsumco, Sto. Domingo, Piat, Cagayan Civil Status: Single Father: Felomeno N. Palattao Mother: Elena A. Palattao Educational Background Elementary: Piat Central Elementary School Year Graduated:2002 Secondary: Our Lady Of Piat High School Year Graduated: 2006 College: Cagayan State University
Cagayan State University College of Information Technology and Computer Science 124