Librery System
Librery System
org
PROJECT REPORT
AS A PARTIAL REQUIREMENT FOR THE DEGREE OF BACHELOR OF COMMERCE. (COMPUTER APPLICATION)
Program (2011-2012)
Submitted by
Dharmishtha Parmar Afsana Patel Pinki Sharma
Guided by
Mr. Manish Tailor
ORGANIZATION
Z.F. WADIA WOMENS COLLEGE & N.K. JHOTA COLLEGE OF COMMERCE
ACKNOWLEDGEMENT
We would like to this opportunity to below my acknowledgement on the entire person who have directly helped us in making feasible and to turn it a successful piece of work. We are grateful to Dr.Ashok desai for giving us the opportunity to work with this esteemed organization, which will be the building step for our bright future. The assiduous help presumed by Mrs.kaillas madam our project guide was the inevitable part of the successful consummation for our project. We sincerely thanks her for her guidance and helpfulness through the and easy times during the project. We would also like to acknowledge tee advice and suggestion of Mr.Manish Tailor and the entire staff member who have directly or indirectly helped us in completing the project. Many of our friends were the continuous source of inspiration through out the project development. They have been very supportive to us in achieving the milestones. And the most precious part of our life, our parents, who have showered their love end support hitch can never be repaid in any form but can be commemorated without them this achievement could not have been achieved.
Index
Chapter No. 1 1.1 1.2 1.3 2 2.1 3 3.1 3.2 3.3 4 4.1 4.2 5 5.1 5.2 6 6.1 6.2 6.3 7 8 Name COLLEGE PROFILE History About college College profile COMPUTER BASED SYSTEM Aim of Computer based system ENVIRONMENT SUSTEM Overview of Visual Basic Overview if Ms Access Understanding Database SYSTEM PLANNING Scope of the system Constraints SYSTEM STUDY Requirement Analysis Data flow diagram SYSTEM DESIGN Database Design Forms & coding Report TESTING BIBLIOGRAPHIES Page No.
4
16 20
27
30
34
84 87
1.
HISTORY
History of Vidhyamandir Society
ESTABLISHEDMENT, AIMS AND OBJECTIVES:
With a view to making women or girls-students self-reliant and imparting them useful productive higher education, Vidhyamandir society was set up in 1948. This institute faced a lot of trouble with courage. The sincere and dedicated founder members and the teaching staff labored hard to achieve the goals step by step and today it has secured the highest position in the field of women Education in the South Gujarat Region. The chief motto of this Institute is to arouse the need and awareness for the higher education among women and train them as well disciplined and self-dependent in various field of life. An exclusive college for women was started with a few students in a private building in the beginning but today this women college having its grand building on the bank of the river Tapi in athwalines area of Surat City. A generous donor Mr.Faramrose Wadia donated a big building to this women college in memory of his loving son Let Mr. ZAL so this college named as Z.F.Wadia Womens College, which was affiliated with S.N.D.T. University, Mumbai. Besides these colleges building the Institute is fortunate enough to building with all necessary facilities. A large member of women has taken the advantages of this hostel. Thus Vidhyamandir Society has been making progress in the field of women education and such other spheres with satisfaction.
2) Primary Courses Standard 1 to 7 This section is run by Ramlal Bagdia Primary School. These courses are taught
6
Z.F.Wadia Womens College & N.K.Zhota college of Commerce. All these courses are of 3 years durations and examinations are held by the South Gujarat University. B.C.A. (Bachelor of compute Application): We have stared these courses from 2001 with the intake capacity of 120 students. This course runs under Vidhyamandir College of information science.
Objectives and its Function:The objectives and functions of Vidhyamandir Society are as follows. 1) Spreading the education and especially the education of women. 2) To fulfill this objective taking steps to make efforts easy. 3) To achieve this object, to set up an educational organization, accepting, co-operating and organizing. 4) To develop the education and helping in that case and by those efforts to marbleize. 5) Taking all the steps and doing all type of function to achieve these all objective.
Committees of the trust:Follows members were the first trustees. 1. 2. 3. 4. 5. 6. 7. Dr.Bhukhandas B.Gandhi Dr.Chimanlal M.Dalal. Dr.Amichand C.Shah. Mr. Krishna C.Zaveri. Mr.Hiralal R.Jariwala. Mr.Ishvarlal D.Khanwala. Mrs.Subhadrabahen R.Marfatiya.
After some years a little correction was made in committee. Some retied and the others left their posts willingly. So some new trustees came on the screen.
Area:Z.F.Womens College of Surat is being run under the committee of Vidhyamandir society of Surat. The organization, 6Km far from Surat Railway Station has of 6125 sq mt.At earlier stage area was only 5753 sq mt. Its area is vast and attractive.
Establishment of the College:On 15/7/1948 Mrs.Subhadrabahen Ravivadan Marfatia and other ladies and gentlemen tried set up Vidhyamandir Society. In between 1948 and 1951 this organization run S.S.C, F.Y., S.Y. and T.Y.B.A., without connection with a University. Afterwards it was connected with S.N.D.T. in 1951, with South Gujarat University in 1965.
Financial Sources:For Vidhyamandir Trust 1. Charity. 2. Fund: For z.f.wadia womens college 1. 2. 3. 4. Laboratory fees, Library fees, Examination fees, Admission fees, etc. Fine of students. Selling of identity. State governments grant.
COLLEGE PROFILE:Z.F.WADIA WOMENSCOLLEGE & N.K.JHOTA COLLEGE OF COMMERCE trusted by Vidhyamandir society Surat. It established on river bank of Tapi. It is working in trusts marvelous building. Vehicles or bus facility is easily available for coming to college. EMPLOYEE:In starting the selection of the employee had been according to the committee of the trust. But now the selection of these employees like education and uneducational is done as constuent of the trust. Students:When the Commerce faculty is stared in 1983 there were only a few students. But now there are 1116 students in this college. Staffs:Total strength of the college staff is which involves Hon principal Ashok Desai and following members. 1996-1997 the staff of teachers was 33 and the others were 16.
10
PROSPECTUS 1. Location:
Vidhyamandir Societys Z.F.Wadia Womens College & N.K.Jhota College of Commerce is situated at Athwalines near Chow patty on the Blank of the enchanting river Tapi. The institution has magnificent building houses the office complex and other facilities. It is easily accessible by transport.
2.
Approval:
Arts, Commerce, Home science, Computer Application & m.Com.
The institute has been granted permanent approval by the Veer Narmad South Gujarat University to conduct three-year degree course in Arts and Commerce as well as postgraduate studies in Commerce. The institute offers graduation as a special subject. This is a remarkable characteristic of the degree conferred by this institution. This is the only institute granted recognition by Veer Narmad South Gujarat University to conduct postgraduate studies in commerce for only women. The medium of instruction in the Arts Faculty the institute imparts education through both Gujarati and English medium.
3.
Curriculum:
At the F.Y.B.A level any two subjects may be opted as optimal subjects and from this any one subject Gujarati or History or Home science or English can be taken as principal subject at the S.y/T.Y.B.A lavel.
11
ARTS FACULTY
The following subjects are taught in the Arts Faculty.
Optional Subjects:
Any two subjects can be opted from the following (d), (e), (f), (g) subjects. (d) Gujarati (Principal) (two papers) with 1-hindi (subsidiary) (twopapers) or English (subsidiary) (two papers) may be chosen. (e) History (principal) (two papers) with English (subsidiary) or psychology (subsidiary) (two papers) may be chosen. (f) Home Science (principal) (two papers) & home science (subsidiary) (two papers) may be chosen. (g) English: English-self financed (principal) (two papers) with Hindi (subsidiary) (two papers) or psychology (subsidiary) (two papers) or Economics (subsidiary) (two papers) may be chosen.
NOTE: (a) Two papers of optional subject (principal subsidiary) have to be done.
(b) A part from the three compulsory subjects (each paper carries 70 marks) there are two papers on principal subject (70 marks each) & two paper on subsidiary subject (70 marks each). (c) Internal marks to be given out of 30 on the basis of the students attendance in the class, internal tests & assignment.
12
Optional subjects:
Any two subjects can be opted from the following (c), (d) subjects in Continuation of the subjects selected at the F.Y.B.A. level. (c) Gujarati (two papers) with Hindi (two papers) or English (two papers) may be chosen. (d) History (two papers) with English (two papers) or psychology (two papers) or economics (two papers) may be chosen.
13
COMPUTER APPLICATION
tion center. In the year 1994 the institution commenced a computer applica-
The academy offers computer application (self financed) as principal subject in option to advanced accounting & auditing in the commerce faculty. In this way you can obtain B.COM. degree with computer application as principal subject. At present vidya mandir societysvast computer center with nearly 90 computers are interlinked with ethenet facility & internet facility is also available. Veer Nanmad South Gujarat University recognized B.COM. with computer application is a special feature of institution. Students joining the college for B.COM. With computer application have to study apart from the compulsory subject, one paper of computer application instead of the optional subject. At the First year level, students have to study computer application paper-1 instead of Banking. In the second & third year computer application(in continuity if F.Y.B.COM.) paper 2, 3, 4, 5 have to be studied with cost accounting paper-1 & auditing paper-3 as subsidiary subjects. In the third year along with computer application paper-5, students have to prepare a project work report, which os a characteristic of this subject. After having opted for computer application students cannot change the subject half way through the course. There is a separate timetable for practical. Attendance during practical classes is compulsory.
14
FIRST YEAR
SECOND YEAR
Paper-3: INTERNET, WEB PAGES DESIGNING & COREL DRAW.
THIRD YEAR
Paper-3: ENTER PRENEURSHIP & PRENEURSHIP PROJECT REPORT.
15
2.
16
17
18
19
3.
20
the first line of code and follows a predefined path through the application, calling procedures as needed. In an event-driven application, the code doesnt follow a predetermined path-it executes different code section in response to events. Events can be triggered by the users action by message from the system or other applic ations, or even from the application itself. The sequence of these events determines the sequence in which the code executes, thus the path through the applications code differs each time the program runs. Because you cant predict the sequence of events, your code must make certain assumption about the state of the world when it executes. When you make Assumption (for example, that an entry field must contain a value before running a Procedure to process that value), you should structure your application in such a way as to make sure that assumption will always be valid (for example, disabling the command button that starts the procedure until the entry field contain a value), your code can also a trigger events during execution. For example, programmatically change the text boxs change events to occur. This would cause the code (if any) contained in the events to execute. If you assumed that this event would only be trigged by user interaction, you might see unexpected results. It is for this reason that it is important to understand the event-driven model and keep it in mind when designing your application.
Data in MS-ACCESS is organized in a form of tables. Within a table, records are arranged accordingly to a common reference value, known as the Primary Key or the Key field. The value in the key field ID different for ev ery record and thus helps in uniquely identifying the records. A combination of low or fields an also be used as he primary key. Such a combination is called composite. Since a value in one table can be replicated across other tables, there should be a way to maintain a relation between the two tables this relation is implemented through the concept of foreign key. A Foreign key in a table is field. Which link that table to another table? Database stored in Ms-Access have a default extension of*. Mdb.MSAccess also Maintains index files of tables. An index is an internal table of values that MS-Access maintains to store the order of records. An index object thus provides efficient access to data. It does not duplicate the data itself. Nor does it change the sequence in which the data is stored in the table.
2.
MS-Access lets us important from or export to FoxPro, Excel, Oracle and other data formats. Importing creates an access tables: exporting an MS-Access table create e file in the format that we are exporting to Linking means that we can use external data without creating an MS-Access table. We can link to FoxPro, Excel and ASCII data.
3.
MS-Access lets us important form or export to FoxPro, Excel, Oracle and Other data formats. Importing creates an access tables: exporting an MS23
Access table create a file in the format that we are exporting to Linking means that we can use external data without creating an MS-Access table. We can link to FoxPro, Excel and ASCII data.
4.
A wizard is a utility that helps us perform the complex tasks by guiding us through the process. Wizard asks us questions about the content, style and formant of the object that we want to create, such as a report or a data-entry screen and then generate the object automatically. We need to answer the question by selection options or making yes/no decisions. MS-Access contains nearly 100 wizards to design database. Application, tables forms, report and graph, mailing tables, controls and properties.
5.
Link window NT, access provides online, context sensitive helps. MSAccess also includes a unique answer wizard that answer question which in simple English.
6.
Built in function
MS-Access includes small program know as function that perform simple calculation or data formation. Access includes mathematical, financial, date, time and sting functions. We can use them to create expression for calculation in our forms. Reports and queries.
7.
Macros
For those users who do not want to write programs, access provides macros. Macros let us perform common task without user intervention. Macros let us manipulate data, open forms and automate any task i.e. repetitive and complex.
8.
Built In Security
Since MS-Access is a multi-user database, security feature are built into the DBMS. We can enrapt a database to prevent unauthorized access. Selective hiding of database objects such as reports, macros and forms is also possible. We can also hide selective fields in a forms of report to protect sensitive. We can assign a password for loading MS-Access to that only authorized can use it.
24
Advantages:
Redundancy of data can be reduced. Inconcentency of data can be avoided. Data can be shared. Data integrity can be maintained. Security restrictions can be implemented.
25
HARDWARE SPECIFICATION
Computer:-Zenith Machine with P-III 933 MHZ Processor. RAM: - 64MB HD Disk: - 20GB CD Drive: - 52X Creative Operating System: -Window-XP FD Disk: -1.44MB
SOFTWARE CONFIGURATION
Operating System Tools Language Data Base :-Window- 7 (ultimate) :-Visual Basic :-Visual Basic :-Microsoft Access
26
4.
27
Book INFO:
User can view the information of the entire book available in the library and its total quantity and current quantity of the books.
MAGAZINE INFO:
User can also get the information of the magazine. Student can issue the magazine for reference all the above information is maintained in maintained in magazine info form.
STAFF INFO:
User can add record of staff of the college, which is stored in the staff info.
TRANSACTION MENU
ISSUE STUDENT:
Student can issue the book for reference all the above information is maintained in issue student info form.
ISSUE STAFF:
Staff can issue the book for reference all the above information is maintained in issue student info form.
DEALER:
Dealers information is also available to the user. User can get information about the payment detail.
PURCHASE:
The purchase information available in the purchase info form user can perform task of purchasing book and magazine on this form and also can view
28
information of purchase.
REPORT:
User can get report of book, magazine, dealer, purchase book, issue book.
EXIT:
User can exit from project system.
CONSTRAINTS:
The book issued by the student must be returned before deleting the records and the returned book entry must be deleted otherwise this student can be not registered. It is very difficult to maintain the project in absent of any one of u.
29
5.
30
Requirement analysis
Requirement analysis is the process of gathering information about the user requirement and to know about the exiting system. Whether manual or computerized. The analysis of the system is as follows:
1. Onsite observation: Working of the manual system was carefully studies and various problems of the working staff were identified. 2. Interview conducted:
Interview were of the staff were conducted to discuss about other details that were not fulfilled during observation. 3. Document observation:
Various document were scrutinized like free Book table, Book issued, Purchase book, etc.
31
Master
Dealer
Exit
Purchase
Report
Dealer info Purchase book Magazine info Purchase Magazine Dealer payment
Magazine info
Book info
32
TABLE LINKING
Book id Book info Purchase book
Book id
Book id
Student issue
Book id
Staff issue
G.R.No.
Staff id
Student issue
Staff issue
33
6.
34
DATABASE DESIGN
BOOK ENTRY FORM
SERIAL NO 1 PRIMARY KEY 2 3 4 5 6 7 FIELD NAME ACCESSIONNO TITLE AUTHOR LANGUAGE CLASS DATE OF ENTRY DEALER NAME FIELD TYPE NUMBER TEXT TEXT TEXT TEXT DATE/TIME TEXT SIZE 20 20 20 20 20 20 20
BOOK ISSUE
SERIAL NO 1 FORIGN KEY 2 FORIGN KEY 3 FIELD NAME ACCESSIONNO GRNO ISSUEDATE FIELD TYPE NUMBER NUMBER DATE/TIME SIZE 20 20 15
BOOK RETURN
SEREAL NO 1 FORIGN KEY 2 FORIGN KEY 3 FIELD NAME ACCESSIONNO GRNO RETURNDATE FIELD TYPE NUMBER NUMBER DATE/TIME SIZE 20 20 20
35
STAFF INFO
SERIAL NO 1 PRIMARY KEY 2 3 4 5 FIELD NAME STAFFID TEACHERNAME STREAM ADD SEX FILED TYPE NUMBER TEXT TEXT TEXT TEXT SIZE 20 20 20 20 20
STAFF ISSUE
SERIAL NO 1 FORIGN KEY 2 FORIGN KEY 3 4 FIELD NAME STAFFID ACCESSIONNO BOOKNAME ISSUEDATE FILED TYPE NUMBER NUMBER TEXT DATE/TIME SIZE 20 20 20 20
DEALER INFO
SERIAL NO 1 PRIMARY KEY 2 3 4 5 SERIAL NO 1 2 3 4
FORIGN KEY
FIELD NAME FIELD TYPE DEALERCODE NUMBER NAME TEXT ADD TEXT PHONE NUMBER WEBSITE TEXT DEALER PURCHASE
SIZE 20 20 20 20 20 SIZE 20 20 20 20
FIELD NAME DEALE CODE DEALERNAME BOOKNAME PRICE FIELD NAME DEALERCODE DEALERNAME DATE PAIDAMOUNT
FIELD TYPE NUMBER TEXT TEXT NUMBER FIELD TYPE NUMBER TEXT DATE/TIME NUMBER SIZE 20 20 20 20
DEALER PAYMENT
SERIAL NO 1 FORIGN KEY 2 3 4
36
MDI FORM
37
38
Private Sub cmddelete_Click() Dim k As Integer k = InputBox("Enter accno to be deleted") cn.Execute "delete from bookeform where accessionno=" & k MsgBox "record deleted" End Sub
Private Sub cmdedit_Click() Dim rs As New ADODB.Recordset flag = 2 Dim k As Integer k = InputBox("Enter accno to be edited") str = "select* from bookeform where accessionno=" & k rs.Open str, cn, adOpenDynamic, adLockOptimistic txtaccno.Text = rs.Fields("accessionno") txttitle.Text = rs.Fields("title") txtauthor.Text = rs.Fields("author") txtlang.Text = rs.Fields("language") txtclass.Text = rs.Fields("class") txtdate.Text = rs.Fields("dateofentry")
39
Private Sub cmdnext_Click() rsmove.MoveNext If rsmove.EOF = True Then rsmove.MoveLast End If txtaccno.Text = rsmove.Fields("accessionno") txttitle.Text = rsmove.Fields("title") txtauthor.Text = rsmove.Fields("author") txtlang.Text = rsmove.Fields("language") txtclass.Text = rsmove.Fields("class") txtdate.Text = rsmove.Fields("dateofentry") txtdealer.Text = rsmove.Fields("dealername") End Sub
Private Sub cmdprevious_Click() rsmove.MovePrevious If rsmove.BOF = True Then rsmove.MoveFirst End If txtaccno.Text = rsmove.Fields("accessionno") txttitle.Text = rsmove.Fields("title")
40
txtauthor.Text = rsmove.Fields("author") txtlang.Text = rsmove.Fields("language") txtclass.Text = rsmove.Fields("class") txtdate.Text = rsmove.Fields("dateofentry") txtdealer.Text = rsmove.Fields("dealername") End Sub
Private Sub cmdsave_Click() If flag = 1 Then cn.Execute "insert into bookeform values('" & txtaccno.Text & "','" & txttitle.Text & "','" & txtauthor.Text & "','" & txtlang.Text & "','" & txtclass.Text & "','" & txtdate.Text & "','" & txtdealer.Text & "')" MsgBox "record inserted" Else cn.Execute "update bookeform set title='" & txttitle.Text & "',author='" & txtauthor.Text & "',language='" & txtlang.Text & "',classno=" & txtclass.Text & ",dateofentry=" & txtdate.Text & ",'" & txtdealer.Text & "'where accessionno=" & txtaccno.Text & "" MsgBox "record updeted" End If Call text_blank End Sub
txtauthor.Text = "" txtlang.Text = "" txtclass.Text = "" txtdate.Text = "" txtdealer.Text = "" End Sub
Private Sub Command1_Click() Dim rs As New ADODB.Recordset rs.Open "select*from bookeform", cn Set DataReport1.DataSource = rs DataReport1.Show End Sub
42
43
Private Sub cmddelete_Click() Dim k As Integer k = InputBox("enter grno to be deleted") cn.Execute "delete from stud where grno=" & k MsgBox "record deleted" End Sub
Private Sub cmdedit_Click() Dim rs As New ADODB.Recordset flag = 2 Dim k As Integer k = InputBox("enter grno to edited") str = "select * from stud where grno= " & k rs.Open str, cn, adOpenDynamic, adLockOptimistic txtgrno.Text = rs.Fields("grno") txtsurname.Text = rs.Fields("surname")
44
Private Sub cmdfirst_Click() If rsmove.State = 0 Then rsmove.Open "select* from stud", cn, adOpenDynamic, adLockOptimistic End If If rsmove.BOF <> True Then rsmove.MoveFirst txtgrno.Text = rsmove.Fields("grno") txtsurname.Text = rsmove.Fields("surname") txtname.Text = rsmove.Fields("name") txtclass.Text = rsmove.Fields("class") End If End Sub
Private Sub cmdlast_Click() If rsmove.EOF <> True Then rsmove.MoveLast txtgrno.Text = rsmove.Fields("grno") txtsurname.Text = rsmove.Fields("surname") txtname.Text = rsmove.Fields("name") txtclass.Text = rsmove.Fields("class") End If End Sub
45
Private Sub cmdnext_Click() rsmove.MoveNext If rsmove.EOF Then rsmove.MovePrevious End If txtgrno.Text = rsmove.Fields("grno") txtsurname.Text = rsmove.Fields("surname") txtname.Text = rsmove.Fields("name") txtclass.Text = ("class") End Sub
Private Sub cmdprevious_Click() rsmove.MovePrevious If rsmove.BOF Then rsmove.MoveFirst End If txtgrno.Text = rsmove.Fields("grno") txtsurname.Text = rsmove.Fields("surname") txtname.Text = rsmove.Fields("name") txtclass.Text = rsmove.Fields("class") End Sub
Private Sub cmdsave_Click() If flag = 1 Then cn.Execute "insert into stud value(" & txtgrno.Text & ",'" & txtsurname.Text & "', '" & txtname.Text & "','" & txtclass.Text & "')"
46
MsgBox "recored inserted" Else cn.Execute "update stud set surname= '" & txtsurname.Text & "',name= '" & txtname.Text & "', class= '" & txtclass.Text & "' where grno= " & txtgrno.Text & "" MsgBox "record updated" End If End Sub
Private Sub Command1_Click() Dim rs As New ADODB.Recordset rs.Open "select * from stud", cn Set DataReport1.DataMember = rs DataReport1.Show End Sub
Sub text_blank() txtgrno.Text = " " txtsurname.Text = " " txtname.Text = " " txtclass.Text = " " End Sub
47
BOOK ISSUE
48
CODING OF BOOKISSUE
Dim str As String Dim flag As Integer Dim rsmove As New ADODB.Recordset
Private Sub cmddelete_Click() Dim k As Integer k = InputBox("Enter accno. to be deleted") cn.Execute "delete from bookissue where srno=" & k MsgBox "record deleted" End Sub
Private Sub cmdedit_Click() Dim rs As New ADODB.Recordset flag = 2 Dim k As Integer k = InputBox("Enter SR NO.to be edited") str = "select*from bookissue where srno='" & k & "'" rs.Open str, cn, adOpenDynamic, adLockOptimistic Text1.Text = rs.Fields("accno") Text2.Text = rs.Fields("grno") Text3.Text = rs.Fields("issuedate") Text1.Enabled = False End Sub
If rsmove.EOF = True Then rsmove.MoveLast End If Text1.Text = rsmove.Fields("accno") Text2.Text = rsmove.Fields("grno") Text3.Text = rsmove.Fields("issuedate") End Sub
Private Sub cmdprevious_Click() rsmove.MovePrevious If rsmove.BOF = True Then rsmove.MoveFirst End If Text1.Text = rsmove.Fields("accno") Text2.Text = rsmove.Fields("grno") Text3.Text = rsmove.Fields("issuedate") End Sub
Private Sub cmdsave_Click() If flag = 1 Then cn.Execute "insert into bookissue values(" & Text1.Text & "," & Text2.Text & "," & Text3.Text & ")" MsgBox "record insert" Else cn.Execute "update bookissue set grno=" & Text2.Text & ",issuedate=" & Text3.Text & " where accno=" & Text1.Text & "" MsgBox "record update" End If
50
End Sub
Sub text_blank() Text1.Text = "" Text2.Text = "" Text3.Text = "" End Sub
51
BOOK RETURN
52
Private Sub cmddelete_Click() Dim k As Integer k = InputBox("Enter accno to be deleted") cn.Execute "delete from bookreturn srno=" & k MsgBox "record deleted" End Sub
Private Sub cmdedit_Click() Dim rs As New ADODB.Recordset flag = 2 Dim k As Integer k = InputBox("Enter srno to be edited") str = "select*from bookreturn where srno='" & k & "'" rs.Open str, cn, adOpenDynamic, adLockOptimistic txtaccno.Text = rs.Fields("accno") txtgrno.Text = rs.Fields("grno") txtreturndate.Text = rs.Fields("returndate") txtsrno.Enabled = False End Sub
Private Sub cmdnext_Click() rsmove.MoveNext If rsmove.EOF = True Then rsmove.MoveLast End If txtaccno.Text = rsmove.Fields("accno") txtgrno.Text = rsmove("grno") txtreturndate.Text = rsmove.Fields("returndate") End Sub
Private Sub cmdprevious_Click() rsmove.MovePrevious If rsmove.BOF = True Then rsmove.MoveFirst End If txtaccno.Text = rsmove.Fields("accno") txtgrno.Text = rsmove("grno") txtreturndate.Text = rsmove.Fields("returndate") End Sub
cn.Execute "insert into bookreturn values(" & txtaccno.Text & "," & txtgrno.Text & "," & txtreturndate.Text & ")" MsgBox "record insert" Else cn.Execute "update bookreturn set grno=" & txtgrno.Text & ",returndate=" & txtreturndate.Text & "where srno=" & txtaccno.Text & "" MsgBox "record update" End If End Sub
55
STAFF INFO
56
Private Sub cmddelete_Click() Dim k As Integer k = InputBox("enter staffid to be deleted") cn.Execute "delete from staffinfo where staffid=" & k MsgBox "record deleted" End Sub Private Sub cmdedit_Click() Dim rs As New ADODB.Recordset flag = 2 Dim k As Integer k = InputBox("enter staffid to be edited") str = "select* from staffinfo where staffid=" & k rs.Open str, cn, adOpenDynamic, adLockOptimistic txtstaffid.Text = rs.Fields("staffid") txtteachername.Text = rs.Fields("teachername") txtstream.Text = rs.Fields("stream") txtadd.Text = rs.Fields("add")
57
Private Sub cmdfirst_Click() If rsmove.State = 0 Then rsmove.Open "select* from staffinfo", cn, adOpenDynamic, adLockOptimistic End If If rsmove.BOF <> True Then rsmove.MoveFirst txtstaffid.Text = rsmove.Fields("staffid") txtteachername.Text = rsmove.Fields("teachername") txtstream.Text = rsmove.Fields("stream") txtadd.Text = rsmove.Fields("add") txtsex.Text = rsmove.Fields("sex") End If End Sub Private Sub cmdlast_Click() If rsmove.EOF <> True Then rsmove.MoveLast txtstaffid.Text = rsmove.Fields("staffid") txtteachername.Text = rsmove.Fields("teachername") txtstream.Text = rsmove.Fields("stream") txtadd.Text = rsmove.Fields("add") txtsex.Text = rsmove.Fields("sex") End If End Sub
58
Private Sub cmdnext_Click() rsmove.MoveNext If rsmove.EOF Then rsmove.MovePrevious End If txtstaffid.Text = rsmove.Fields("staffid") txtteachername.Text = rsmove.Fields("teachername") txtstream.Text = rsmove.Fields("stream") txtadd.Text = rsmove.Fields("add") txtsex.Text = rsmove.Fields("sex") End Sub Private Sub cmdprevious_Click() rsmove.MovePrevious If rsmove.BOF Then rsmove.MoveFirst End If txtstaffid.Text = rsmove.Fields("staffid") txtteachername.Text = rsmove.Fields("teachername") txtstream.Text = rsmove.Fields("stream") txtadd.Text = rsmove.Fields("add") txtsex.Text = rsmove.Fields("sex") End Sub
Private Sub cmdsave_Click() If flag = 1 Then cn.Execute "insert into staffinfo values(" & txtstaffid.Text & ",'" & txtteachername.Text & "', '" & txtstream.Text & "', '" & txtadd.Text & "', '" & txtsex.Text & "')"
59
MsgBox "record inserted" Else cn.Execute "update staffinfo set teachername='" & txtteachername.Text & "', stream='" & txtstream.Text & "', add='" & txtadd.Text & "', sex='" & txtsex.Text & "' where staffid=" & txtstaffid.Text & "" MsgBox "record updated" End If End Sub
Private Sub Command1_Click() Dim rs As New ADODB.Recordset rs.Open "select * from staffinfo", cn Set DataReport4.DataSource = rs DataReport4.Show End Sub Private Sub Form_Load() flag = 1 Call connect cn.Open End Sub Sub text_blak() txtstaffid.Text = " " txtteachername.Text = " " txtstream.Text = " " txtadd.Text = " " txtsex.Text = " " End Sub
60
STAFF ISSUE
61
Private Sub cmddelete_Click() Dim k As Integer k = InputBox("enter staffid to be deleted") cn.Execute "delete from staffissue where staffid=" & k MsgBox "record deleted" End Sub
Private Sub cmdedit_Click() Dim rs As New ADODB.Recordset flag = 2 Dim k As Integer k = InputBox("enter staffid to be edited") str = "select* from staffissue where staffid=" & k rs.Open str, cn, adOpenDynamic, adLockOptimistic txtstaffid.Text = rs.Fields("staffid") txtaccno.Text = rs.Fields("accno")
62
Private Sub cmdfirst_Click() If rsmove.State = 0 Then rsmove.Open "select* from staffissue", cn, adOpenDynamic, adLockOptimistic End If If rsmove.BOF <> True Then rsmove.MoveFirst txtstaffid.Text = rsmove.Fields("staffid") txtaccno.Text = rsmove.Fields("accno") txtbookname.Text = rsmove.Fields("bookname") txtissuedate.Text = rsmove.Fields("issuedate") End If End Sub
Private Sub cmdlast_Click() If rsmove.EOF <> True Then rsmove.MoveLast txtstaffid.Text = rsmove.Fields("staffid") txtaccno.Text = rsmove.Fields("accno") txtbookname.Text = rsmove.Fields("bookname") txtissuedate.Text = rsmove.Fields("issuedate") End If End Sub
63
Private Sub cmdnext_Click() rsmove.MoveNext If rsmove.EOF Then rsmove.MovePrevious End If txtstaffid.Text = rsmove.Fields("staffid") txtaccno.Text = rsmove.Fields("accno") txtbookname.Text = rsmove.Fields("bookname") txtissuedate.Text = rsmove.Fields("issuedate") End Sub
Private Sub cmdprevious_Click() rsmove.MovePrevious If rsmove.BOF Then rsmove.MoveFirst End If txtstaffid.Text = rsmove.Fields("staffid") txtaccno.Text = rsmove.Fields("accno") txtbookname.Text = rsmove.Fields("bookname") txtissuedate.Text = rsmove.Fields("issuedate") End Sub
Private Sub cmdsave_Click() If flag = 1 Then cn.Execute "insert into staffissue values(" & txtstaffid.Text & ", " & txtaccno.Text & ", '" & txtbookname.Text & "', '" & txtissuedate.Text & "')"
64
MsgBox "record inserted" Else cn.Execute "update staffissue set accessionno=" & txtaccno.Text & " bookname='" & txtbookname.Text & "' issuedate=" & txtissuedate.Text & " where staffid=" & txtstaffid.Text & "" MsgBox "record updated" End If End Sub
Private Sub Command1_Click() Dim rs As New ADODB.Recordset rs.Open "select * from staffissue", cn Set DataReport5.DataSource = rs DataReport5.Show End Sub
Sub text_blak() txtstaffid.Text = " " txtaccno.Text = " " txtbookname.Text = " " txtissuedate.Text = " " End Sub
65
SUBJECT
66
CODING OF SUBJECT
Dim str As String Dim flag As Integer Dim rsmove As New ADODB.Recordset
Private Sub cmddelete_Click() Dim k As Integer k = InputBox("enter subjectid to be deleted") cn.Execute "delete from subject where subjectid=" & k MsgBox "record deleted" End Sub
Private Sub cmdedit_Click() Dim rs As New ADODB.Recordset flag = 2 Dim k As Integer k = InputBox("enter subjectid to be edited") str = "select * from subject where subjectid=" & k rs.Open str, cn, adOpenDynamic, adLockOptimistic txtsubjectid.Text = rs.Fields("subjectid")
67
Private Sub cmdnext_Click() rsmove.MoveNext If rsmove.EOF Then End If txtsubjectid.Text = rsmove.Fields("subjectid") txtname.Text = rsmove.Fields("subject") End Sub
Private Sub cmdprevious_Click() rsmove.MovePrevious If rsmove.BOF Then rsmove.MoveFirst End If txtsubjectid.Text = rsmove.Fields("subjectid") txtname.Text = rsmove.Fields("subject") End Sub
Private Sub cmdsave_Click() If flag = 1 Then cn.Execute "insert into subject values(" & txtsubjectid.Text & ", ' " & txtname.Text & " ') " MsgBox "record inserted" Else
68
cn.Execute "update subject set subject=' " & txtname.Text & " ' where subjectid=" & txtsubjectid.Text & " " MsgBox "record update" End If End Sub
Private Sub Command1_Click() Dim rs As New ADODB.Recordset rs.Open "select * from subject", cn Set DataReport3.DataSource = rs DataReport3.Show End Sub
Sub text_blank() txtsubjectid.Text = " " txtname.Text = " " End Sub
69
DEALER INFO
70
Private Sub cmdedit_Click() Dim rs As New ADODB.Recordset flag = 2 Dim k As Integer k = InputBox("enter dealecode to be edited") str = "select* from dealerinfo where dealercode=" & k rs.Open str, cn, adOpenDynamic, adLockOptimistic txtdealercode.Text = rs.Fields("dealercode") txtname.Text = rs.Fields("name") txtadd.Text = rs.Fields("add") txtphone.Text = rs.Fields("phone") txtwebsite.Text = rs.Fields("website") txtdealercode.Enabled = False End Sub
rsmove.MoveNext If rsmove.EOF Then rsmove.MovePrevious End If txtdealercode.Text = rsmove.Fields("dealercode") txtname.Text = rsmove.Fields("name") txtadd.Text = rsmove.Fields("add") txtphone.Text = rsmove.Fields("phone") txtwebsite.Text = rsmove.Fields("website") End Sub
Private Sub cmdprevious_Click() rsmove.MovePrevious If rsmove.BOF Then rsmove.MoveFirst End If txtdealercode.Text = rsmove.Fields("dealercode") txtname.Text = rsmove.Fields("name") txtadd.Text = rsmove.Fields("add") txtphone.Text = rsmove.Fields("phone") txtwebsite.Text = rsmove.Fields("website") End Sub Private Sub cmdsave_Click() If flag = 1 Then cn.Execute "insert into dealerinfo values(" & txtdealercode.Text & ", '" & txtname.Text & "', '" & txtadd.Text & "', " & txtphone.Text & ", '" & txtwebsite.Text & "')" MsgBox "record inserted"
72
Else cn.Execute "update dealerinfo set name='" & txtname.Text & "' add='" & txtadd.Text & "' website='" & txtwebsite.Text & "' phone=" & txtphone.Text & " where dealercode=" & txtdealercode.Text & "" MsgBox "record updated" End If End Sub
Private Sub Command1_Click() Dim rs As New ADODB.Recordset rs.Open "select * from dealerinfo", cn Set DataReport6.DataSource = rs DataReport6.Show End Sub
Private Sub Form_Load() flag = 1 Call connect cn.Open End Sub Sub text_blank() txtdealercode.Text = " " txtname.Text = " " txtadd.Text = " " txtphone.Text = " " txtwebsite.Text = " " End Sub
73
DEALER PURCHASE
74
Private Sub cmddelete_Click() Dim k As Integer k = InputBox("Enter dealer code to be deleted") cn.Execute "delete from dealerp where dealercode=" & k MsgBox "record deleted" End Sub
Private Sub cmdedit_Click() Dim rs As New ADODB.Recordset flag = 2 Dim k As Integer k = InputBox("Enter dealer code to be edited") str = "select*from dealerp where dealercode='" & k & "'" rs.Open str, cn, adOpenDynamic, adLockOptimistic Text1.Text = rs.Fields("dealercode") Text2.Text = rs.Fields("dealername") Text3.Text = rs.Fields("bookname") Text4.Text = rs.Fields("price") Text1.Enabled = False End Sub
rsmove.MoveNext If rsmove.EOF = True Then rsmove.MoveLast End If Text1.Text = rsmove.Fields("dealercode") Text2.Text = rsmove.Fields("dealername") Text3.Text = rsmove.Fields("bookname") Text4.Text = rsmove.Fields("price") End Sub
Private Sub cmdprevious_Click() rsmove.MovePrevious If rsmove.BOF = True Then rsmove.MoveFirst End If Text1.Text = rsmove.Fields("dealercode") Text2.Text = rsmove.Fields("dealername") Text3.Text = rsmove.Fields("bookname") Text4.Text = rsmove.Fields("price") End Sub
Private Sub cmdsave_Click() If flag = 1 Then cn.Execute "insert into dealerp values(" & Text1.Text & ",'" & Text2.Text & "','" & Text3.Text & "'," & Text4.Text & ")" MsgBox "record insert" Else
76
cn.Execute "update dealerp set dealername='" & Text2.Text & "',bookname='" & Text3.Text & "',price=" & Text4.Text & " where dealercode=" & Text1.Text & "" MsgBox "record update" End If End Sub
Sub text_blank() Text1.Text = "" Text2.Text = "" Text3.Text = "" Text4.Text = "" End Sub
77
DEALER PAYMENT
78
Private Sub cmddelete_Click() Dim k As Integer k = InputBox("enterdealercode to be deleted") cn.Execute "delete from dealerpayment where dealercode=" & k MsgBox "record deleted" End Sub
Private Sub cmdedit_Click() Dim rs As New ADODB.Recordset flag = 2 Dim k As Integer k = InputBox("enter dealecode to be edited") str = "select* from dealerpayment where dealercode=" & k rs.Open str, cn, adOpenDynamic, adLockOptimistic txtdealercode.Text = rs.Fields("dealercode") txtdealername.Text = rs.Fields("dealername") txtdate.Text = rs.Fields("date") txtpaidamount.Text = rs.Fields("paidamount") txtdealercode.Enabled = False End Sub
rsmove.MoveNext If rsmove.EOF Then rsmove.MovePrevious End If txtdealercode.Text = rsmove.Fields("dealercode") txtdealername.Text = rsmove.Fields("dealername") txtdate.Text = rsmove.Fields("date") txtpaidamount.Text = rsmove.Fields("paidamount") End Sub
Private Sub cmdprevious_Click() rsmove.MovePrevious If rsmove.BOF Then rsmove.MoveFirst End If txtdealercode.Text = rsmove.Fields("dealercode") txtdealername.Text = rsmove.Fields("dealername") txtdate.Text = rsmove.Fields("date") txtpaidamount.Text = rsmove.Fields("paidamount") End Sub
Private Sub cmdsave_Click() If flag = 1 Then cn.Execute "insert into dealerpayment values(" & txtdealercode.Text & ", '" & txtdealername.Text & "', " & txtdate.Text & ", " & txtpaidamount.Text & ")" MsgBox "record inserted" Else
80
cn.Execute "update dealerinfo set dealername='" & txtdealername.Text & "' dueamount=" & txtdueamount.Text & " date=" & txtdate.Text & " where dealercode=" & txtdealercode.Text & "" MsgBox "record updated" End If End Sub
Private Sub Command1_Click() Dim rs As New ADODB.Recordset rs.Open "select * from dealerpayment", cn Set DataReport7.DataSource = rs DataReport7.Show End Sub
Sub text_blank() txtdealercode.Text = " " txtname.Text = " " txtdate.Text = " " txtpaidamount.Text = " " End Sub
81
REPORT
The report represents the project output in the from of hard copy. It is very important aspect of the software system. It provides the information of the project in very attractive & organized manner. Much report can be generated in a project depending upon the type of requirement.
82
accessionno title author Dateofentry 1 BHAGVADGITA MADHUSUDAN 1/1/2012 2 3 4 5 SOFTWARE MS-WORD MS-EXCEL GHITA LEE JEK TOM KRISHNA 1/28/2012 1/4/2012 1/13/2012 1/5/2012
83
7.
84
TESTING
A basic objective of the testing is to find error. Testing is the process of exciting a program with the intent of finding an error. If testing is conducted successfully it will uncover errors in the software. Testing demonstrates that software functions according to the specification and that performance requirement appear to the defect. For testing a module prepare a test case that force execution of each path. The development of the system was done modules wisi.e. First main modules were identified and than these modules were developed and independently. The goal here is to test the internal logic of the module. Also at proper internal new developments were represented to the college to take their approvals to overcome any misunderstanding. These present in help a lot in reducing the overhead of time that otherwise would have resulted. When the complete system was tested with live data. This technique helped in improving overall efficiency of the system. The goal here is to see if the software meets its requirements. Once source code has been generated, software must be tested to uncover as many errors as possible before delivery to the customer. Software testing is very improves the perforce and overall quality of development software, each time a developer tests the software. There are various levels of software testing namely, unit testing, integration testing, system and acceptance testing. At each level of testing software is tested in more details to improve software quality in an efficient manner. Various objective and principal of good are stated below:
85
Testing objective: Testing is a process of executing a program with the inter of finding an error. A good test case is one that a high profanity of finding an as-yetundiscovered error. A successful test is one that uncovers an as-yet-uncovered error.
Testing principal: All tests should be traceable to customer requirements. Test should be planned long before test begins. Testing should begin in the small & process toward testing in the larger. Exhaustive testing is not possible.
86
8.
87
BIBLIOGRAPHY
BOOK NAME
Mastering Visual Basic 6.0 Learn to Program with VB6 Successful project in Access Successful project in VB
AUTHOR
Delaney John Smiley P.M.Heathcotse D.Christopher
88