Você está na página 1de 63

SYNOPSIS The Project is entitled Library Management System.

The main objective of Library Management application is to keep the book in the proper format with its complete details including Author and the person who is issuing this book. Everything is managed from the database. We need to maintain the book cost and to check whether the books are available on the library or not. If the book is not available in the library then it should be removed from the data base. Students are provided with the 2 or 3 cards for the book. They can issue the book for 14 days and after they have to pay the fine per day rupee one. If the student lost the book he has to purchase the same book and submit to the library. For the staff also they are given 3 cards and they also have same rule as per the students. This whole process in manually, we need to develop the fully automatic library that enables the user to search for the relevant book and they can also who have which book. We need to computers in the library so that user can access to online books. We need to bar code scanner, so the student just scans the code and the book will be issued. This Project is made using VB basic as front end and Microsoft Access as back end. MODULES DESCRIPTION: Login Staff Info Members Info Book Entry Info Book Issue Info Book Return Info Visitor Info

Login: This module used for security purpose .user give username and password .if user give correct username and password user will allow otherwise user is not enter to application. Staff Info: Staff Id, Staff Name, Gender, Phone Number, Address, Salary, Father Name, Date Of Birth, Date Of Joining, and Email Address are registered here. Using this module we can maintain the employee details. By using this Enquiry by, Service by fields are automatically fetched. Members Info: Members Information are maintaining in this modules. Members registered their personal information like Name, Gender, Phone Number, and Address by using this module. Members Information on obtaining a Library Card and a library account necessary for borrowing books and journals, consulting online databases and e-journals, and admission to Leiden University Libraries (UBL) Book Entry Info Details of Book Name, Author Name, version, number of available books in our library, are maintained here. Book Issue Info Only active registered members of the Library shall have the right of access to the Book Stacks for the purpose of borrowing books. Details of issued by, book name, card number are maintained by using this module. Book Return Info Details of Members who returned the issued book are maintained here. Issue date, Return date, Issued to, Book Name, and Amount are registered here.

Visitor Info Visitor Name, Phone No, Email ID, Purpose of Visit, Person to meet, Visitor Type, Visitors Count registered here. Update an existing contact or insert a new one. Update an existing company or insert a new one.

CONTENTS

Chapter No 1.

Title Introduction 1.1. 1.2. Organization Profile Problem Statement

Page No 1

2.

System Analysis 2.1. Approach 2.2. Existing System 2.3. Proposed System 2.4. Need For Computerization

3.

System Configuration 3.1. Hardware Configuration 3.2. Software Configuration

4.

System Development 4.1. Project Specification 4.2. Module Description 4.3. Form Validation

5.

System Design 5.1. Input Design 5.2. Code Design 5.3. Database Design 5.4. Output Design 5.5. Data Flow Diagram

6. 7. 8. 9. 10.

Testing and Implementation Future Enhancement Conclusion Bibliography Appendices A. Input Screen B. Sampling Code

Chapter1

INTRODUCTION
6

1.1 Organization Profile

1.2 Problem Statement This project Library Management System deals with computerizing the Library Management process. If we are maintaining the process in manual way it takes more time to maintain every detail in papers, security of information is lacked and confusion occur in the transactions. No effective communication between member and the librarian. Member spent lots of time for this process. To avoid all the above problems this project is made. Library Management System reduces the time. It introduces a new channel to interact with member. It adapts to all networks. This is the objective of the project.

Chapter 2

SYSTEM ANALYSIS
9

2. 2.1.APPROACH

SYSTEM ANALYSIS

The data which were manually collected and the same are analyzed for computerization. System Analysis means the set of requirement and the description for the new system. This aims to understand how an existing system operation there by project to proposed system. 2.2.EXISTING SYSTEM The existing system is the manual system. The manual system is prone to error. It is time consuming. It is very difficult for a person to produce the report. There are chances for changing the scheme report and do malpractice. This system involves a lot of manual entries with the applications to perform the desired task. Usage of papers in the payment process leads to less efficiency, less accuracy and less productivity. Less control of Amounts. Time delay between the payment and its receipt.

LIMITATTIONS OF EXISTING SYSTEM: Increasing expenditure for papers shuffling and storage. Increasing labors and hence errors.

2.3.Proposed System Proposed system is being developed using visual basic 6 as front end and Ms-Access as back end. The aim of proposed system is to develop a system of improved facilities. The proposed system can overcome all the limitations of the existing system. 1. The primary aim of the new system is to speedup transactions. The report is prepared for the schemes and implemented by the concerned officials. 2. Computerized management process.
10

3. It comes as no surprise to one that when everything is being converted to computerize. Already the business has to global with the coming of Internet. Now, no more the individual aims at the local market is also just a click of button away. Dozens of companies are in the race to convince auction and bidding that a pot of Policys awaits those who conduct their business on the Internet. In this fast race of business and moneymaking, no country, no company and no individual want to fall back. Everyone wants to lead the group. Hence, everyone is trying to make the best use of Internet.

ADVANTAGES OF THE PROPOSED SYSTEM:

The system is very simple in design and to implement. The system requires very low system resources and the system will work in almost all configurations.

1. Security of data. 2. Proper control of administrator 3. Minimum time for needed for the various processing. 4. Greater efficiency & Better service. 5. Book Details and counting are maintained by systematically. 6. Admin can control overall system. 2.4 NEED FOR COMPUTERIZATION The storage and the retrieval of the data were difficult and data entry was time consuming are some of the reasons for computerization are: Can be used to give operational characteristics. For the usage of 24 hours usage. For the users comfort ability. To get the information in worldwide level. To reach people who is abroad. To achieve secrecy and confidentiality Its user friendly and helps in obtaining knowledge.
11

12

Chapter 3

System Configuration
3.SYSTEM CONFIGURATION
13

3.1.Software requirements: Operating System Server: Windows XP or later Code Behind Database : Visual Basic 6 : MS- Access

3.2.Hardware Specification: Processor: Intel Pentium or More Ram: 512 MB Ram Hard Disk: PC with 20GB

14

Chapter 4

System Specifications
15

4.SYSTEM SPECIFICATIONS 4.1 PROJECT SPECIFICATION MICROSOFT WINDOWS XP Microsoft Windows XP is a series of operating systems produced by Microsoft. Microsoft introduced an operating environment named windows on November 20, 1985 as an add-on to MS-DOS in response to the growing interest in graphical user interfaces (GUIs). Microsoft Windows came to dominate the worlds personal computer market, overtaking Mac OS, which has been introduced in 1984. The most recent client version of Windows is Windows 7; the most recent server version is Windows server 2008 R2; the most recent mobile version is Windows Phone 7. Future of Windows XP The window XP service pack is the operating system which provides more security, flexibility and high performance in comparison with the previous version and offers full level compatibility with the windows updating and innovative support services creates the best desktop operating system for business. Architectural independence Less Crashing Faster Internet Performance Better Photo Handling and Printing Treats a CD-RW like a real drive System Restore Centralized Administration Large memory space Remote access server MICROSOFT VISUAL BASIC Visual Basic (VB) is the third-generation event-driven programming language and integrated development environment (IDE) from Microsoft for its COM programming model. Visual Basic is designed to be relatively easy to learn and use .Visual Basic was derived from
16

BASIC and enables the rapid application development (RED) of graphical user interface (GUI) applications, access to databases using Data Access Objects, Remote Data Objects, Or ActiveX Data Objects and creation ActiveX controls and objects. Programs written on Visual Basic can also use the Windows API, but doing so requires external function declarations.

Properties, Events and Methods: Properties define the characteristic of a size and color etc. sometimes it is the way in which it behaves the method is as action that can he performed on objects.VB forms and controls are object, which expose the own properties, methods and events.

Developing an Application: Visual programming Setup Code programming Setup

Visual basic involves designing an application with various tools. The code programming step involves writing the program using a text editor.

Programming Fundamentals: Visual basic uses building blocks such as variables, Data types Procedures, Functions and Controls structures in its programming environment. Using the Menu Editor: A Menu Editor can be used to add a new command to the existing menu which creates menu bar, change or delete an existing menu. Data Environment: The Data Environment Designer allows quick and building of hierarchical record set during the design time. Programming is the result in Data Environment Object however requires the knowledge of ADO programming Model combines with the characters of hierarchical record set. Element used in Visual basic: The Text Box:
17

The text box is the standard control for accepting input from the user as well as to display the output. It can handle string (text) and numeric data but not images or pictures. String in a text box can be converted to a numeric data by using the function Val (text).

The Label Box: The label is a very useful control for Visual Basic, as it is not only used to provide instructions and guides to the users, it can also be used to display outputs. One of its most important properties is caption. Using the syntax Label Caption, it can display text and numeric data. You can change caption in the properties window and also at runtime.

The Command Button: The command button is one of the most important controls as it is used to execute commands. It display an illusion that the button is pressed when the user click on it. The most common event associated with the command button is the click event.

The Image Box: The Image Box is another control that handles images and pictures. It functions almost identically to the picture box. However, there is one major difference, the image in an image box is stretchable, which means it can be resizes. This features is not available in the picture Box.

The Combo Box: The function of the combo Box is also to present a list of items where the user can click and select the items from the list. However, the user needs to click on the small arrowed head on the right of the combo box to see the items which are presented in a dropdown list. In order to add items to the list, you can also use the Add Item method. The Check Box: The Check Box control lets the user selects or unselects an option. When the Check Box is checked, its value is set to 1 and when it is unchecked, the value is set to 0. You can include the statements check1. Value=1 to mark the Check Box and Check1.Value=0 to unmark the Check Box, as well as use them to initiate certain actions.

18

4.2. MODULE DESCRIPTION Login Staff Info Members Info Book Entry Info Book Issue Info Book Return Info Visitor Info Login: This module used for security purpose .user give username and password .if user give correct username and password user will allow otherwise user is not enter to application. Staff Info: Staff Id, Staff Name, Gender, Phone Number, Address, Salary, Father Name, Date Of Birth, Date Of Joining, and Email Address are registered here. Using this module we can maintain the employee details. By using this Enquiry by, Service by fields are automatically fetched. Members Info: Members Information are maintaining in this modules. Members registered their personal information like Name, Gender, Phone Number, and Address by using this module. Members Information on obtaining a Library Card and a library account necessary for borrowing books and journals, consulting online databases and e-journals, and admission to Leiden University Libraries (UBL) Book Entry Info Details of Book Name, Author Name, version, number of available books in our library, are maintained here. Book Issue Info

19

Only active registered members of the Library shall have the right of access to the Book Stacks for the purpose of borrowing books. Details of issued by, book name, card number are maintained by using this module. Book Return Info Details of Members who returned the issued book are maintained here. Issue date, Return date, Issued to, Book Name, and Amount are registered here. Visitor Info Visitor Name, Phone No, Email ID, Purpose of Visit, Person to meet, Visitor Type, Visitors Count registered here. Update an existing contact or insert a new one. Update an existing company or insert a new one. 4.3 FORM VALIDATION Book Entry Form: Validation was done to ensure that the owner has entered numeric values in numeric fields and has entered the alphabets for text fields and has entered the correct date in the date/time field. Member Info Form: Validation was done to ensure that the member has entered numeric values in numeric fields and has entered the alphabets for text fields and has entered the correct date in the date/time field. Visitor Form: Each field was tested by the programmer. Validation was done to ensure the owner has enters a numeric value in the amount field.

20

Chapter 5

System Design
5.SYSTEM DESIGN
21

Design is a iterative process thought which requirements a translated into or blue print for constructing the software design must implement all the implicit all threw implicit requirements and explicit requirements. It must be a readable and understandable. It is not coding. The initial focus of the project will be on in-house league formats. However, the user interface is designed to organize the users' data efficiently and intuitively and can be easily extended to support almost any kind of athletic event. The scheduling system will be developed in Java, while web-based components will be developed in HTML. 5.1.Input Design Input design is the process of converting a user-oriented description of the input into a computerbased system. This design is important to avoid errors in the data input process and show the correct direction to the management for getting correct information from the computerized system. It is achieved by creating user-friendly screens for the data entry to handle large volume of data. The goal of designing input is to make data entry easier and to free from errors. The data entry screens is designed such a way that all the data manipulates can be performed. It also provides record viewing facilities. When the data is entered it will check for its validity. Data can be entered with the help of the screen. Appropriate message are provided as when needed so that the user will not be in maize of instant. The design of input focuses on controlling the amount of input required, controlling the errors, avoiding delay, avoiding extra steps and keeping the process simple. The input is designed in such a way so that it provides security.

5.2.CODE DESIGN A code is an ordered collection of symbols designed to prove unique identification to an entry or an attribute. Purpose of using code is: To achieve unique identification. Can be used instead of the name. To specify an objects physical or performance characteristics.
22

Can be used to give Operational characteristics. 5.3.DATA BASE DESIGN Table : Login Field Name LoginId UserId Password Usertype Data Type Text Text Text Text Size 50 50 50 50 Description Login Id User Id Password User Type

Table : Staff Info Field Name StaffId StaffName PhNo EMailId Address Qualification FName DOB DOJ Salary Data Type Number Text Text Text Text Text Text Date/Time Date/Time Text 50 Size 20 50 50 50 50 20 50 Description Staff Id Staff Name Phone Number Email Id Address Qualification Father Name Date Of Birth Date Of Joining Salary

23

Table : Members Info Field Name MemberId MemberName RFID PhNo Address Qualification DOJ DOB InitialAmount IntroduceBy Data Type Number Text Text Text Text Text Date/Time Date/Time Number Text 20 50 Size 20 50 50 50 50 50 Description Member Id Member Name RFID Card Phone Number Address Qualification Date Of Joining Date Of Birth Initial Amount Introduced By

Table :Book Entry Info Field Name BookId BookName AuthorsName DeptName NoOfBooks Amount DonatedBy PurchaseFrom BookType RackNo Data Type Number Text Text Text Number Number Text Text Text Number Size 20 50 50 50 20 20 50 50 50 20 Description Book Id Book Name Authors Name Department Name No Of Books Amount Donated By Purchased From Book Type Rack Number

24

Table : Book Issue Info Field Name BookIssueId IssueDate MemberRFID BookName DateOfReturn Data Type Number Date/Time Text Text Date/Time 50 50 Size 20 Description Book Issue Id Issue Date Member Card Book Name Date Of Return

Table : Book Return Info Field Name BookReturnId ReturnDate DateofIssue MemberRFID BookName Amount Data Type Number Date/Time Date/Time Text Text Number 50 50 20 Size 20 Description Book Return Id Return Date Date Of Issue Member Card Book Name Amount

Table : Visitor Info Field Name VisitorId VisitorName PhNo Address Date TimeIn TimeOut Data Type Number Text Text Text Date/Time Text Text 20 20 Size 10 50 50 100 Description Visitor Id Visitor Name Phone Number Address Date Time In Time Out

25

5.4.Output Design Designing computer output should processed in an organized, well thought out manner; the right output must be developed while ensuring that each output element is designed so that people will find the system can use easily and effectively. When analysis designs computer output should design: Identify the specific output that is needed to meet the requirements. Create document, report, or other formats that contain information produced by the system. Select the appropriate methods for presenting the information. A quality output is one, which meets the requirements of the end user and presents the information clearly. In output designs it is determined how the information is to be displaced for immediate need and also the hard copy output. It is the most important and direct source information to the user. Efficient and intelligent output design improves the systems relationship to help user decision making.

26

5.5Data Flow Diagram

Add new Book

Edit new Book Remove Book

Book

Update Book

Search Book

27

Add new Book

Editnew Book Remove Book

Memb er

Update Book

Search Book

28

Chapter 6

Testing and Implementation


29

6. SYSTEM IMPLEMENTATION AND TESTING 6.1.SYSTEM TESTING A strategy for software testing may also be viewed in the context of the spiral. Unit testing begins at the vertex of the spiral and concentrates on each unit of the software as implemented in source code. Testing progress by moving outward along the spiral to integration testing, where the focus is on the design and the construction of the software architecture. Talking another turn on outward on the spiral we encounter validation testing where requirements established as part of software requirements analysis are validated against the software that has been constructed. Finally we arrive at system testing, where the software and other system elements are tested as a whole. UNIT TESTING All modules were tested and individually as soon as they were completed and were checked for their correct functionality. Unit testing focuses verification effort on the smallest unit of software design, the module. The unit testing we have is white box oriented and some modules the steps are conducted in parallel. To follow the concept of white box testing we have tested each form .we have created independently to verify that Data flow is correct, All conditions are exercised to check their validity, All loops are executed on their boundaries. INTEGRATION TESTING The entire project was split into small program; each of this single programs gives a frame as an output. These programs were tested individually; at last all these programs where combined together by creating another program where all these constructors were used. It give a lot of problem by not functioning is an integrated manner. The user interface testing is important since the user has to declare that the arrangements made in frames are convenient and it is satisfied. when the frames where given for the test, the end user gave suggestion. Based on their suggestions the frames where modified and put into practice.

30

VALIDATION TESTING At the culmination of the black box testing software is completely assembled as a package. Interfacing errors have been uncovered and corrected and a final series of test i.e., Validation succeeds when the software function in a manner that can be reasonably Accepted by the customer. 6.2. SYSTEM IMPLEMENTATION System implementation is stage in the project where the theoretical design is turned into the working system. The most crucial stage is giving the users confidence that the new system will work effectively and efficiently. The performance of reliability of the system is tested and it gained acceptance. The system was implemented successfully. Implementation is a process that means converting a new system in to operation. Proper implementation is essential to provide a reliable system to meet organization requirements. During the implementation stage a live demon was undertaken and made in front of end-users. The various features provided in the system were discussed during implementation.

31

7.FUTURE ENHANCEMENT The current application developed is in accordance with the request that has been provided by the organization. On regarding the future enhancement, the application can further expanded in accordance with changing scenario. Since the change in testing and user needs arises frequently in certain short intervals of time, the application can be further upgraded to meet the requirements that may arise in the far or near future. With regarding to the needs that arises, more and more features can be included by adding it as separate modules and integrate it with the existing system.

32

Chapter 8

Conclusion

33

8.CONCLUSION Our project is only a humble venture to satisfy the needs in a library. Several user friendly coding have also adopted. This package shall prove to be a powerful package in satisfying all the requirements of the organization. The objective of software planning is to provide a frame work that enables the manger to

make reasonable estimates made within a limited time frame at the beginning of the software project and should be updated regularly as the project progresses. Last but not least it is no the work that played the ways to success but ALMIGHTY

34

Chapter 10

Appendices

35

APPENDICES A.INPUT SCREEN Login Page

36

Staff Info Page

37

Member Info Page

Book Entry Info

38

Book Issue Page

Book Return Page

39

Visitor Info Page

B.SAMPLE CODE Login page Form Private Sub cmdExit_Click() End End Sub Private Sub cmdLogin_Click() If txtUserId.Text = "" Then MsgBox "Please Enter the User Id" txtUserId.SetFocus ElseIf txtPassword.Text = "" Then
40

MsgBox "Please Enter the Password" txtPassword.SetFocus ElseIf cmbUserType.Text = "" Then MsgBox "Please Select the User type" cmbUserType.SetFocus Else Dim qry As String qry = "select * from Login where UserId='" + txtUserId.Text + "' and [Password]='" + txtPassword.Text + "' and UserType='" + cmbUserType.Text + "'" dataLogin.RecordSource = qry dataLogin.Refresh If Not dataLogin.Recordset.EOF Then Me.Hide frmMain.Show Else MsgBox "Invalid User" txtUserId.SetFocus End If End If End Sub Private Sub Form_Load()

41

dataLogin.DatabaseName = DBName dataLogin.RecordsetType = 1 End Sub Member Info Private Sub cmdDelete_Click() If MsgBox("Are you delete this record?", vbYesNo) = vbYes Then Dim qry As String qry = "select * from MembersInfo where MemberId='" + txtMemberId.Text + "'" dataMembersInfo.RecordSource = qry dataMembersInfo.Refresh If Not dataMembersInfo.Recordset.EOF Then dataMembersInfo.Recordset.MoveFirst dataMembersInfo.Recordset.Delete MsgBox "Deleted" txtMemberId.Text = "" txtMemberName.Text = "" txtRFID.Text = "" txtPhNo.Text = "" txtEMailId.Text = "" txtAddress.Text = "" txtQualification.Text = ""

42

txtDOJ.Text = "" txtDOB.Text = "" txtInitialAmount.Text = "" txtIntroduceBy.Text = "" txtSearchbox.Text = "" txtMemberId.SetFocus Else MsgBox "Not Found" End If End If End Sub Private Sub cmdNew_Click() txtMemberId.Text = "" txtMemberName.Text = "" txtRFID.Text = "" txtPhNo.Text = "" txtEMailId.Text = "" txtAddress.Text = "" txtQualification.Text = "" txtDOJ.Text = "" txtDOB.Text = ""

43

txtInitialAmount.Text = "" txtIntroduceBy.Text = "" txtSearchbox.Text = "" txtMemberId.SetFocus End Sub Private Sub cmdSave_Click() Dim qry As String qry = "select * from MembersInfo where MemberId='" + txtMemberId.Text + "'" dataMembersInfo.RecordSource = qry dataMembersInfo.Refresh If Not dataMembersInfo.Recordset.EOF Then dataMembersInfo.Recordset.MoveFirst dataMembersInfo.Recordset.Edit Else dataMembersInfo.Recordset.AddNew End If dataMembersInfo.Recordset(0) = txtMemberId.Text dataMembersInfo.Recordset(1) = txtMemberName.Text dataMembersInfo.Recordset(2) = txtRFID.Text dataMembersInfo.Recordset(3) = txtPhNo.Text dataMembersInfo.Recordset(4) = txtEMailId.Text

44

dataMembersInfo.Recordset(5) = txtAddress.Text dataMembersInfo.Recordset(6) = txtQualification.Text dataMembersInfo.Recordset(7) = txtDOJ.Text dataMembersInfo.Recordset(8) = txtDOB.Text dataMembersInfo.Recordset(9) = txtInitialAmount.Text dataMembersInfo.Recordset(10) = txtIntroduceBy.Text dataMembersInfo.Recordset.Update MsgBox "Saved" txtMemberId.Text = "" txtMemberName.Text = "" txtRFID.Text = "" txtPhNo.Text = "" txtEMailId.Text = "" txtAddress.Text = "" txtQualification.Text = "" txtDOJ.Text = "" txtDOB.Text = "" txtInitialAmount.Text = "" txtIntroduceBy.Text = ""

45

txtSearchbox.Text = "" txtMemberId.SetFocus End Sub Private Sub cmdSearch_Click() Dim qry As String qry = "select * from MembersInfo where MemberId='" + txtSearchbox.Text + "'" dataMembersInfo.RecordSource = qry dataMembersInfo.Refresh If Not dataMembersInfo.Recordset.EOF Then dataMembersInfo.Recordset.MoveFirst txtMemberId.Text = dataMembersInfo.Recordset(0) txtMemberName.Text = dataMembersInfo.Recordset(1) txtRFID.Text = dataMembersInfo.Recordset(2) txtPhNo.Text = dataMembersInfo.Recordset(3) txtEMailId.Text = dataMembersInfo.Recordset(4) txtAddress.Text = dataMembersInfo.Recordset(5) txtQualification.Text = dataMembersInfo.Recordset(6) txtDOJ.Text = dataMembersInfo.Recordset(7) txtDOB.Text = dataMembersInfo.Recordset(8) txtInitialAmount.Text = dataMembersInfo.Recordset(9) txtIntroduceBy.Text = dataMembersInfo.Recordset(9)

46

txtSearchbox.Text = "" Else MsgBox "Not Found" End If End Sub Private Sub cmdView_Click() rptMembersInfo.Show End Sub Private Sub Form_Load() dataMembersInfo.DatabaseName = DBName dataMembersInfo.RecordsetType = 1 End Sub Staff Info Page Private Sub cmdDelete_Click() If MsgBox("Are you delete this record?", vbYesNo) = vbYes Then Dim qry As String qry = "select * from StaffInfo where StaffId='" + txtSid.Text + "'" dataStaffInfo.RecordSource = qry dataStaffInfo.Refresh

47

If Not dataStaffInfo.Recordset.EOF Then dataStaffInfo.Recordset.MoveFirst dataStaffInfo.Recordset.Delete MsgBox "Deleted" txtSid.Text = "" txtStaffname.Text = "" txtPhNo.Text = "" txtEMailId.Text = "" txtAddress.Text = "" txtQualification.Text = "" txtFName.Text = "" txtDOB.Text = "" txtDOJ.Text = "" txtSalary.Text = "" txtSearchbox.Text = "" txtSid.SetFocus Else MsgBox "Not Found" End If End If End Sub

48

Private Sub cmdNew_Click() txtSid.Text = "" txtStaffname.Text = "" txtPhNo.Text = "" txtEMailId.Text = "" txtAddress.Text = "" txtQualification.Text = "" txtFName.Text = "" txtDOB.Text = "" txtDOJ.Text = "" txtSalary.Text = "" txtSearchbox.Text = "" txtSid.SetFocus End Sub Private Sub cmdSave_Click() Dim qry As String qry = "select * from StaffInfo where StaffId='" + txtSid.Text + "'" dataStaffInfo.RecordSource = qry dataStaffInfo.Refresh

49

If Not dataStaffInfo.Recordset.EOF Then dataStaffInfo.Recordset.MoveFirst dataStaffInfo.Recordset.Edit Else dataStaffInfo.Recordset.AddNew End If dataStaffInfo.Recordset(0) = txtSid.Text dataStaffInfo.Recordset(1) = txtStaffname.Text dataStaffInfo.Recordset(2) = txtPhNo.Text dataStaffInfo.Recordset(3) = txtEMailId.Text dataStaffInfo.Recordset(4) = txtAddress.Text dataStaffInfo.Recordset(5) = txtQualification.Text dataStaffInfo.Recordset(6) = txtFName.Text dataStaffInfo.Recordset(7) = txtDOB.Text dataStaffInfo.Recordset(8) = txtDOJ.Text dataStaffInfo.Recordset(9) = txtSalary.Text dataStaffInfo.Recordset.Update MsgBox "Saved" txtSid.Text = "" txtStaffname.Text = "" txtPhNo.Text = ""

50

txtEMailId.Text = "" txtAddress.Text = "" txtQualification.Text = "" txtFName.Text = "" txtDOB.Text = "" txtDOJ.Text = "" txtSalary.Text = "" txtSearchbox.Text = "" txtSid.SetFocus End Sub Private Sub cmdSearch_Click() Dim qry As String qry = "select * from StaffInfo where StaffId='" + txtSearchbox.Text + "'" dataStaffInfo.RecordSource = qry dataStaffInfo.Refresh If Not dataStaffInfo.Recordset.EOF Then dataStaffInfo.Recordset.MoveFirst txtSid.Text = dataStaffInfo.Recordset(0) txtStaffname.Text = dataStaffInfo.Recordset(1) txtPhNo.Text = dataStaffInfo.Recordset(2) txtEMailId.Text = dataStaffInfo.Recordset(3)

51

txtAddress.Text = dataStaffInfo.Recordset(4) txtQualification.Text = dataStaffInfo.Recordset(5) txtFName.Text = dataStaffInfo.Recordset(6) txtDOB.Text = dataStaffInfo.Recordset(7) txtDOJ.Text = dataStaffInfo.Recordset(8) txtSalary.Text = dataStaffInfo.Recordset(9) txtSearchbox.Text = "" Else MsgBox "Not Found" End If End Sub Private Sub cmdView_Click() rptStaffInfo.Show End Sub Private Sub Form_Load() dataStaffInfo.DatabaseName = DBName dataStaffInfo.RecordsetType = 1 End Sub Booking Entry Info

Private Sub cmdDelete_Click() If MsgBox("Are you delete this record?", vbYesNo) = vbYes Then
52

Dim qry As String qry = "select * from BookEntry where BookId='" + txtBookId.Text + "'" dataBookEntry.RecordSource = qry dataBookEntry.Refresh

If Not dataBookEntry.Recordset.EOF Then dataBookEntry.Recordset.MoveFirst dataBookEntry.Recordset.Delete MsgBox "Deleted" txtBookId.Text = "" txtBookName.Text = "" txtAuthorsName.Text = "" txtDeptName.Text = "" txtNoOfBooks.Text = "" txtAmoun.Text = "" txtDonatedBy.Text = "" txtPurchaseFrom.Text = "" txtBookType.Text = "" txtRackNo.Text = ""

txtSearchbox.Text = "" txtBookId.SetFocus Else MsgBox "Not Found" End If End If End Sub Private Sub cmdNew_Click() txtBookId.Text = "" txtBookName.Text = "" txtAuthorsName.Text = "" txtDeptName.Text = "" txtNoOfBooks.Text = "" txtAmoun.Text = "" txtDonatedBy.Text = "" txtPurchaseFrom.Text = "" txtBookType.Text = "" txtRackNo.Text = ""

53

txtSearchbox.Text = "" txtBookId.SetFocus End Sub Private Sub cmdSave_Click() Dim qry As String qry = "select * from BookEntry where BookId='" + txtBookId.Text + "'" dataBookEntry.RecordSource = qry dataBookEntry.Refresh

If Not dataBookEntry.Recordset.EOF Then dataBookEntry.Recordset.MoveFirst dataBookEntry.Recordset.Edit Else dataBookEntry.Recordset.AddNew End If

dataBookEntry.Recordset(0) = txtBookId.Text dataBookEntry.Recordset(1) = txtBookName.Text dataBookEntry.Recordset(2) = txtAuthorsName.Text dataBookEntry.Recordset(3) = txtDeptName.Text dataBookEntry.Recordset(4) = txtNoOfBooks.Text dataBookEntry.Recordset(5) = txtAmoun.Text dataBookEntry.Recordset(6) = txtDonatedBy.Text dataBookEntry.Recordset(7) = txtPurchaseFrom.Text dataBookEntry.Recordset(8) = txtBookType.Text dataBookEntry.Recordset(9) = txtRackNo.Text

dataBookEntry.Recordset.Update MsgBox "Saved" txtBookId.Text = "" txtBookName.Text = "" txtAuthorsName.Text = "" txtDeptName.Text = "" txtNoOfBooks.Text = "" txtAmoun.Text = "" txtDonatedBy.Text = "" txtPurchaseFrom.Text = ""
54

txtBookType.Text = "" txtRackNo.Text = ""

txtSearchbox.Text = "" txtBookId.SetFocus End Sub

Private Sub cmdSearch_Click() Dim qry As String qry = "select * from BookEntry where BookId='" + txtSearchbox.Text + "'" dataBookEntry.RecordSource = qry dataBookEntry.Refresh If Not dataBookEntry.Recordset.EOF Then dataBookEntry.Recordset.MoveFirst txtBookId.Text = dataBookEntry.Recordset(0) txtBookName.Text = dataBookEntry.Recordset(1) txtAuthorsName.Text = dataBookEntry.Recordset(2) txtDeptName.Text = dataBookEntry.Recordset(3) txtNoOfBooks.Text = dataBookEntry.Recordset(4) txtAmoun.Text = dataBookEntry.Recordset(5) txtDonatedBy.Text = dataBookEntry.Recordset(6) txtPurchaseFrom.Text = dataBookEntry.Recordset(7) txtBookType.Text = dataBookEntry.Recordset(8) txtRackNo.Text = dataBookEntry.Recordset(9)

txtSearchbox.Text = "" Else MsgBox "Not Found" End If End Sub Private Sub cmdView_Click() rptBookEntry.Show End Sub Private Sub Form_Load() dataBookEntry.DatabaseName = DBName
55

dataBookEntry.RecordsetType = 1 End Sub Book Issue Info

Private Sub cmdDelete_Click() If MsgBox("Are you delete this record?", vbYesNo) = vbYes Then Dim qry As String qry = "select * from BookIssue where BookIssueId='" + txtBookIssueId.Text + "'" dataBookIssue.RecordSource = qry dataBookIssue.Refresh If Not dataBookIssue.Recordset.EOF Then dataBookIssue.Recordset.MoveFirst dataBookIssue.Recordset.Delete MsgBox "Deleted" txtBookIssueId.Text = "" txtIssueDate.Text = "" txtMemberRFID.Text = "" txtBookName.Text = "" txtDateOfReturn.Text = "" txtSearchbox.Text = "" txtBookIssueId.SetFocus Else MsgBox "Not Found" End If End If End Sub Private Sub cmdNew_Click() txtBookIssueId.Text = "" txtIssueDate.Text = "" txtMemberRFID.Text = "" txtBookName.Text = "" txtDateOfReturn.Text = "" txtSearchbox.Text = "" txtBookIssueId.SetFocus End Sub
56

Private Sub cmdSave_Click() Dim qry As String qry = "select * from BookIssue where BookIssueId='" + txtBookIssueId.Text + "'" dataBookIssue.RecordSource = qry dataBookIssue.Refresh

If Not dataBookIssue.Recordset.EOF Then dataBookIssue.Recordset.MoveFirst dataBookIssue.Recordset.Edit Else dataBookIssue.Recordset.AddNew End If

dataBookIssue.Recordset(0) = txtBookIssueId.Text dataBookIssue.Recordset(1) = txtIssueDate.Text dataBookIssue.Recordset(2) = txtMemberRFID.Text dataBookIssue.Recordset(3) = txtBookName.Text dataBookIssue.Recordset(4) = txtDateOfReturn.Text

dataBookIssue.Recordset.Update MsgBox "Saved" txtBookIssueId.Text = "" txtIssueDate.Text = "" txtMemberRFID.Text = "" txtBookName.Text = "" txtDateOfReturn.Text = "" txtSearchbox.Text = "" txtBookIssueId.SetFocus End Sub

Private Sub cmdSearch_Click() Dim qry As String qry = "select * from BookIssue where BookIssueId='" + txtSearchbox.Text + "'" dataBookIssue.RecordSource = qry dataBookIssue.Refresh

57

If Not dataBookIssue.Recordset.EOF Then dataBookIssue.Recordset.MoveFirst txtBookIssueId.Text = dataBookIssue.Recordset(0) txtIssueDate.Text = dataBookIssue.Recordset(1) txtMemberRFID.Text = dataBookIssue.Recordset(2) txtBookName.Text = dataBookIssue.Recordset(3) txtDateOfReturn.Text = dataBookIssue.Recordset(4)

txtSearchbox.Text = "" Else MsgBox "Not Found" End If End Sub Private Sub cmdView_Click() rptBookIssue.Show End Sub Private Sub Form_Load() dataBookIssue.DatabaseName = DBName dataBookIssue.RecordsetType = 1 End Sub Book Return info

Private Sub cmdDelete_Click() If MsgBox("Are you delete this record?", vbYesNo) = vbYes Then Dim qry As String qry = "select * from BookReturn where BookReturnId='" + txtBookReturnId.Text + "'" dataBookReturn.RecordSource = qry dataBookReturn.Refresh

If Not dataBookReturn.Recordset.EOF Then dataBookReturn.Recordset.MoveFirst dataBookReturn.Recordset.Delete MsgBox "Deleted" txtBookReturnId.Text = ""


58

txtReturnDate.Text = "" txtDateofIssue.Text = "" txtMemberRFID.Text = "" txtBookName.Text = "" txtAmoun.Text = "" txtSearchbox.Text = "" txtBookReturnId.SetFocus Else MsgBox "Not Found" End If End If End Sub Private Sub cmdNew_Click() txtBookReturnId.Text = "" txtReturnDate.Text = "" txtDateofIssue.Text = "" txtMemberRFID.Text = "" txtBookName.Text = "" txtAmoun.Text = "" txtSearchbox.Text = "" txtBookReturnId.SetFocus End Sub Private Sub cmdSave_Click() Dim qry As String qry = "select * from BookReturn where BookReturnId='" + txtBookReturnId.Text + "'" dataBookReturn.RecordSource = qry dataBookReturn.Refresh

If Not dataBookReturn.Recordset.EOF Then dataBookReturn.Recordset.MoveFirst dataBookReturn.Recordset.Edit Else dataBookReturn.Recordset.AddNew End If

dataBookReturn.Recordset(0) = txtBookReturnId.Text dataBookReturn.Recordset(1) = txtReturnDate.Text dataBookReturn.Recordset(2) = txtDateofIssue.Text


59

dataBookReturn.Recordset(3) = txtMemberRFID.Text dataBookReturn.Recordset(4) = txtBookName.Text dataBookReturn.Recordset(5) = txtAmoun.Text

dataBookReturn.Recordset.Update MsgBox "Saved" txtBookReturnId.Text = "" txtReturnDate.Text = "" txtDateofIssue.Text = "" txtMemberRFID.Text = "" txtBookName.Text = "" txtAmoun.Text = "" txtSearchbox.Text = "" txtBookReturnId.SetFocus End Sub

Private Sub cmdSearch_Click() Dim qry As String qry = "select * from BookReturn where BookReturnId='" + txtSearchbox.Text + "'" dataBookReturn.RecordSource = qry dataBookReturn.Refresh

If Not dataBookReturn.Recordset.EOF Then dataBookReturn.Recordset.MoveFirst txtBookReturnId.Text = dataBookReturn.Recordset(0) txtReturnDate.Text = dataBookReturn.Recordset(1) txtDateofIssue.Text = dataBookReturn.Recordset(2) txtMemberRFID.Text = dataBookReturn.Recordset(3) txtBookName.Text = dataBookReturn.Recordset(4) txtAmoun.Text = dataBookReturn.Recordset(5)

txtSearchbox.Text = "" Else MsgBox "Not Found" End If End Sub


60

Private Sub cmdView_Click() rptBookReturn.Show End Sub Private Sub Form_Load() dataBookReturn.DatabaseName = DBName dataBookReturn.RecordsetType = 1 End Sub

Visitor Info Page Private Sub cmdDelete_Click() If MsgBox("Are you delete this record?", vbYesNo) = vbYes Then Dim qry As String qry = "select * from VisitorInfo where VisitorId='" + txtVisitorId.Text + "'" dataVisitorInfo.RecordSource = qry dataVisitorInfo.Refresh

If Not dataVisitorInfo.Recordset.EOF Then dataVisitorInfo.Recordset.MoveFirst dataVisitorInfo.Recordset.Delete MsgBox "Deleted" txtVisitorId.Text = "" txtVisitorName.Text = "" txtPhNo.Text = "" txtAddres.Text = "" txtDate.Text = "" txtTimeIn.Text = "" txtTimeOut.Text = "" txtSearchbox.Text = "" txtVisitorId.SetFocus Else MsgBox "Not Found" End If End If End Sub

61

Private Sub cmdNew_Click() txtVisitorId.Text = "" txtVisitorName.Text = "" txtPhNo.Text = "" txtAddres.Text = "" txtDate.Text = "" txtTimeIn.Text = "" txtTimeOut.Text = "" txtSearchbox.Text = "" txtVisitorId.SetFocus End Sub Private Sub cmdSave_Click() Dim qry As String qry = "select * from VisitorInfo where VisitorId='" + txtVisitorId.Text + "'" dataVisitorInfo.RecordSource = qry dataVisitorInfo.Refresh

If Not dataVisitorInfo.Recordset.EOF Then dataVisitorInfo.Recordset.MoveFirst dataVisitorInfo.Recordset.Edit Else dataVisitorInfo.Recordset.AddNew End If

dataVisitorInfo.Recordset(0) = txtVisitorId.Text dataVisitorInfo.Recordset(1) = txtVisitorName.Text dataVisitorInfo.Recordset(2) = txtPhNo.Text dataVisitorInfo.Recordset(3) = txtAddres.Text dataVisitorInfo.Recordset(4) = txtDate.Text dataVisitorInfo.Recordset(5) = txtTimeIn.Text dataVisitorInfo.Recordset(6) = txtTimeOut.Text

dataVisitorInfo.Recordset.Update MsgBox "Saved" txtVisitorId.Text = "" txtVisitorName.Text = "" txtPhNo.Text = "" txtAddres.Text = "" txtDate.Text = ""
62

txtTimeIn.Text = "" txtTimeOut.Text = "" txtSearchbox.Text = "" txtVisitorId.SetFocus End Sub

Private Sub cmdSearch_Click() Dim qry As String qry = "select * from VisitorInfo where VisitorId='" + txtSearchbox.Text + "'" dataVisitorInfo.RecordSource = qry dataVisitorInfo.Refresh

If Not dataVisitorInfo.Recordset.EOF Then dataVisitorInfo.Recordset.MoveFirst txtVisitorId.Text = dataVisitorInfo.Recordset(0) txtVisitorName.Text = dataVisitorInfo.Recordset(1) txtPhNo.Text = dataVisitorInfo.Recordset(2) txtAddres.Text = dataVisitorInfo.Recordset(3) txtDate.Text = dataVisitorInfo.Recordset(4) txtTimeIn.Text = dataVisitorInfo.Recordset(5) txtTimeOut.Text = dataVisitorInfo.Recordset(6)

txtSearchbox.Text = "" Else MsgBox "Not Found" End If End Sub Private Sub cmdView_Click() rptVisitorInfo.Show End Sub Private Sub Form_Load() dataVisitorInfo.DatabaseName = DBName dataVisitorInfo.RecordsetType = 1 End Sub

63

Você também pode gostar