neethucomp prjct
TRANSCRIPT
-
8/2/2019 neethucomp prjct
1/62
DOCUMENTATION OF SOFTWARE
SCHOOL DATABASE MANAGEMENT SYSTEM
SUBMITTED BY:
Anshu gupta
Neethu pillai
Ritika lakhwara
STUDENTS OF
LINGAYAS LALITA DEVI INSTITUTE OF MANAGEMENT
& SCIENCES
MANDI ROAD, NEW DELHI-110047
FOR THE PARTIAL FULFILLMENT
OF
BACHELOR IN BUSINESS ADMINISTRATION
SUBMITTED TO:
GURU GOBIND SINGH INDRAPASTHA UNIVERSITY
DELHI, INDIA
-
8/2/2019 neethucomp prjct
2/62
CERTIFICATE
This is to certify that the project work is an authentic work of students ofLingayas Lalita
Devi Institute of Management & Sciences of course BBA, 2009-2012 ,has completed their
project work titled "SCHOOL DATABASE MANAGEMENT SYSTEM under my
Guidance and supervision. The work submitted is Genuine and authentic.
I am extremely happy to convey that they have been able to prepare the project in a
Satisfactory manner.
(Project Guide)
(mr.nitin nagpal)
.
-
8/2/2019 neethucomp prjct
3/62
ACKNOWLEDGEMENT
We would like to take this opportunity to express my gratitude towards all
the people who have in various ways, helped in the successful completion ofour project.
We convey our gratitude to Mr.nitin nagpal for giving us the constant
source of inspiration and help in preparing the project, personally
correcting our work and providing encouragement throughout the
project.
We also thank all our faculty members for steering us through the tough as well
as easy phases of the project in a result oriented manner with concern attention.
-
8/2/2019 neethucomp prjct
4/62
DECLARATION
NEED OF THE PROJECT
-
8/2/2019 neethucomp prjct
5/62
This project is maintain the information about School for adding, Deleting and Modify
Detail about Student, teacher, Examination, Result, Book department and fees department.
This project provides the facility for book management and fees management. User canstore the information about books, students, teachers and fees Submission. Its also
provides the facility for maintain information about students and teacher.
The software uses Ms-Access 8.1.5.0.0 (Enterprise Edition) as the back end and Visual
Basic as the front end. The choice of the software was definitely driven by current demand
of the software in todays market.
Visual Basic was instead of Developer 2000 because Visual Basic is not only a front end
but also a software development environment or tool So by as front end tool we got a
chance to study its various other aspect.
OBJECTIVES
1 The Project is about the software to, maintain the small-scale schools activities, which
-
8/2/2019 neethucomp prjct
6/62
include registration, checking examination eligibility and marksheet generation .
2 Automatic student I.D and class creation. Alongwith automatic allotting of any empty
bed to the new patient and checking of maximum beds\rooms.
3 Different type of reports, which include medical and non-medical staff report etc.
4 The end product software will be a generalized one which can be customized at the
time of installation setup. Which means any small medical organization can use it
according to their needs .
5 There is customization module which helps to set all the features to be activated which
any clinic/nursing home can implement for instance, adding doctors, adding services,
etc.
6 Patient details can be seen in two ways:
(a) Ward wise
(b) Department wise
Problem statement
To develop software named School management software. It is general software,
-
8/2/2019 neethucomp prjct
7/62
which can be used in any small-scale School. It will be developed for academic
purpose. It will have the following features-
1 The reports will be generated.
2 It will help in creating and maintaining the information about the School and
Students.
3 It will help in maintaining the information about the Schools operations including
Registration, billing.
4 It will help in maintaining the information about Students detail history.
5 It will help in maintaining the details about the Student marksheet.
The following reports will be generated as a result of the output:
1 Details about admission of students
2 Details about exam scheme
3 Details about fee structure
4 Details about exam scheme
5 Details about fee submission
6 Details about marks of students
7 Information about teachers
Software support environment resources
Front end: VISUAL BASIC 6.0
Back end: MS -ACCESS
Server Operating System: Windows NT 4.0 /95
User characteristics
1 The users should be familiar with Windows 95/NT operating system
2 They should have knowledge in their respective fields and how to operate the software.Solution strategy
We have decided to go for Visual Basic 6.0 for Front-end and MS-ACCESS as Back-end.
-
8/2/2019 neethucomp prjct
8/62
FFeasibility studyeasibility study
Implementation environment:
Hardware required Pentium/Celeron and above.
Operating Software Windows NT / 95 (Operating system)
Front End Visual Basic 6.0,
Backend Software MS ACCESS
Constraints:
Time: 15 days (approx.)
Machine required (minimum)- Two Pentiums including respective accessories
Technical Feasibility -
1) End-user must be fully familiar with basic computer operations.
2) Hardware required is Celeron but Pentium preferred.
3) Operating system should be Windows 95 and above
Project Leader should have total knowledge on the working of the Visual Basic, MS
ACCESS and related functions. Designer should have an experience of designing the
database in MS ACCESS. Programmers should have programming knowledge on Visual
Basic 6.0. As the system is designed under GUI approach it shall give user-friendly
environment to perform its function. Hence it can be concluded that the proposed system is
technically feasible.
-
8/2/2019 neethucomp prjct
9/62
IMPLEMENTATION
TOOLS/ENVIRONMENT USED
-
8/2/2019 neethucomp prjct
10/62
LEAST HARDWARE SPECIFICATION:-
System : PIII
Ram : 128 MB
CD Drive : Any One
Key Board : Any (101,104,106)
Monitor : 14/15 Color Monitor
Operating System : Windows (XP)
.SOFTWARES USED:-
DEVELOPMENT TOOLS : VISUAL BASIC 6.0
DATABASE : MS-ACCESS
STEPS OF IMPLEMENTATION
Preliminary Design
It is done on the basis of requirement definition and analysis specification.
Architecture
School software is Stand-alone Software; here database and front end
resides on the same machine. Operators feed the information in various
forms and this information is stored in Database. Whenever required the
information can be retrieved and reports can be generated.
Design of school Software
As this is a stand-alone application, which is useful for small and middle level
schools, we are not using advance mechanism like client server architecture. As here
operator will mainly interact with software so we are providing all control on single
-
8/2/2019 neethucomp prjct
11/62
machine.
Typical Roles of the Front-end
The front-end will gather all needed information before storing information in database.
The front-end is responsible for all display of data.
The front-end should handle all data-manipulation operations.
The front-end provides all formatting of data and presentation of information in reports.
Typical Roles of the DATABASE
The Database will store all the information about every patient and will manage it
efficiently, so that whenever request comes the information can be send to front-end
in form of result sets
This approach introduced a database server to replace the file server. Using a
relational database management system (RDBMS), user queries could be answered
directly. Software is much faster by providing a query response rather than total file
transfer. It improves updating through a GUI front end to a database. Standard query
language (SQL) statements are typically used to communicate between the Front-
end and Database.
Data Model
As per requirement the information which is to be stored in database is as -
1. Information about student registration
2. Details about admission of students
3. Details about exam scheme
-
8/2/2019 neethucomp prjct
12/62
4. Details about fee structure
5. Details about exam scheme
6. Details about fee submission
7. Details about marks of students
8. Information about teachers
DATA FLOW DIAGRAM
-
8/2/2019 neethucomp prjct
13/62
FRONT END DESIGN
School
Managemen
t
Student
Admission
Teacher Job
Student Leave
Teacher Leave
Context Level Data Flow
Diagram
Student
Teacher
Reception
Fees
Dept
Class
DETAILED LEVEL DATA FLOW
DIAGRAM
LibraryStaff
Room
Principal
-
8/2/2019 neethucomp prjct
14/62
Form 2
Coding
Dim str As String
Dim i As Integer
Private Sub cbomm_LostFocus()
i = Val(cbomm.Text)
If (i = 1 Or i = 3 Or i = 5 Or i = 7 Or i = 8 Or i = 10 Or i = 12) Then
Call add31
ElseIf (i = 2) Then
Call add28
Else
Call add30
-
8/2/2019 neethucomp prjct
15/62
End If
End Sub
Private Sub cbomm1_LostFocus()
i = Val(cbomm1.Text)
If (i = 1 Or i = 3 Or i = 5 Or i = 7 Or i = 8 Or i = 10 Or i = 12) Then
Call add131
ElseIf (i = 2) Then
Call add128
Else
Call add130
End If
End Sub
Private Sub cbostd_Click()
If Val(cbostd.Text) > 10 Then
cbosub.Enabled = True
Else
cbosub.Enabled = False
End If
End Sub
-
8/2/2019 neethucomp prjct
16/62
Private Sub cbostd_LostFocus()
If Val(cbostd.Text) > 10 Then
cbosub.Enabled = True
Else
cbosub.Enabled = False
End If
End Sub
Private Sub cmdClose_Click()
Unload Me
End Sub
Private Sub cmdsubmit_Click()
If (Trim(txtschno.Text) = "" Or Trim(txtfname.Text) = "" Or Trim(txtlname.Text) = "" Or
Trim(txtfaname.Text) = "" Or Trim(txtmoname.Text) = "" Or Trim(cbomm.Text) = "" Or
Trim(cbodd.Text) = "" Or Trim(cboyy.Text) = "" Or Trim(cbomm1.Text) = "" Or
Trim(cbodd1.Text) = "" Or Trim(cboyy1.Text) = "" Or Trim(txtadd.Text) = "" Or
Trim(txtcity.Text) = "" Or Trim(cbostd.Text) = "" Or Trim(cbosession.Text) = "") Then
MsgBox "Please Fill form Compleatly.", vbInformation, "Form Incompleted"
Else
str = "insert into Students (FirstName, MiddleName, LastName, FathersNames,
MothersNames, dob, doa, Address, City, PostalCode, PhoneNumber, Schno) values ( '" &
txtfname.Text & "', '" & txtmname.Text & "', '" & txtlname.Text & "', '" & txtfaname.Text
-
8/2/2019 neethucomp prjct
17/62
& "','" & txtmoname.Text & "','" & cbomm.Text & "/" & cbodd.Text & "/" & cboyy.Text
& "','" & cbomm1.Text & "/" & cbodd1.Text & "/" & cboyy1.Text & "', '" & txtadd.Text &
"','" & txtcity.Text & "', " & txtpcode.Text & ", " & txtphone.Text & ", " & txtschno.Text
& ")"
MsgBox (str)
con.Execute (str)
If cbosub.Enabled = False Then
str2 = "insert into student_ses_std (schno, ses, std) values ( " & txtschno.Text & "," &
cbosession.Text & ", " & cbostd.Text & ")"
con.Execute (str2)
Else
str2 = "insert into student_ses_std values ( " & txtschno.Text & "," & cbosession.Text & ",
" & cbostd.Text & ",'" & cbosub.Text & "')"
con.Execute (str2)
End If
txtschno.Text = Val(txtschno.Text) + 1
txtfname.Text = ""
txtmname.Text = ""
txtlname.Text = ""
txtfaname.Text = ""
txtmoname.Text = ""
cbomm.ListIndex = 0
txtadd.Text = ""
-
8/2/2019 neethucomp prjct
18/62
txtcity.Text = ""
txtpcode.Text = ""
txtphone.Text = ""
txtfname.SetFocus
End If
End Sub
Private Sub Form_Load()
For i = 1 To 31
cbodd.AddItem (i)
cbodd1.AddItem (i)
Next
For i = 1 To 12
cbomm.AddItem (i)
cbomm1.AddItem (i)
Next
For i = 1980 To 2020
cboyy.AddItem (i)
cboyy1.AddItem (i)
Next
rs.Open "select max(Schno+1)as nsch from Students", con
-
8/2/2019 neethucomp prjct
19/62
If rs.Fields("nsch") Empty Then
txtschno.Text = rs.Fields("nsch")
Else
txtschno.Text = 1
End If
End Sub
Public Sub add31()
cbodd.Clear
For i = 1 To 31
cbodd.AddItem (i)
Next
End Sub
Public Sub add30()
cbodd.Clear
For i = 1 To 30
cbodd.AddItem (i)
Next
End Sub
-
8/2/2019 neethucomp prjct
20/62
Public Sub add28()
cbodd.Clear
For i = 1 To 28
cbodd.AddItem (i)
Next
End Sub
Public Sub add131()
cbodd1.Clear
For i = 1 To 31
cbodd1.AddItem (i)
Next
End Sub
Form 3
Coding
Dim str As String
-
8/2/2019 neethucomp prjct
21/62
Private Sub Combo1_LostFocus()
If Combo1.Text = Empty Then
MsgBox "Enter the Standard.", vbOKOnly + vbCritical, "Error"
End If
Text1.SelStart = 0
Text1.SelLength = Len(Text1.Text)
End Sub
Private Sub Command1_Click()
Dim str1 As String
Dim i
For i = 0 To List1.ListCount - 1
'Dim j
'st = "dummy"
'Do While Right(st, 1) " "
' j = j + 1
' st = Left(List1.List(i), j)
'Loop
str1 = List1.List(i)
If List1.Selected(i) Then
str = "insert into attendancerecord values('" & Text1.Text & "','" & str1 & "',1)"
Else
str = "insert into attendancerecord values('" & Text1.Text & "','" & str1 & "',0)"
End If
-
8/2/2019 neethucomp prjct
22/62
con.Execute (str)
Next
Combo1.SetFocus
List1.Clear
End Sub
Private Sub Command2_Click()
Dim sess As Integer
str = "select ses.ses from ses where ses.strdate
-
8/2/2019 neethucomp prjct
23/62
Private Sub Command3_Click()
Unload frmatten
End Sub
Private Sub Form_Load()
frmatten.Width = 7100
frmatten.Height = 6660
For i = 1 To 12
Combo1.AddItem (i)
Next
End Sub
Private Sub Text1_LostFocus()
If Trim(Text1.Text) = Empty Then
MsgBox "Enter the Date.", vbOKOnly, "Error"
ElseIf IsDate(Text1.Text) = False Then
MsgBox "Enter a proper Date.", vbOKOnly, "Error"
Text1.SetFocus
Text1.SelStart = 0
Text1.SelLength = Len(Text1.Text)
-
8/2/2019 neethucomp prjct
24/62
End If
End Sub
Form 4:
Coding
Private Sub Form_Resize()
On Error Resume Next
'This will resize the grid when the form is resized
grdDataGrid.Height = Me.ScaleHeight - datPrimaryRS.Height - 30 - picButtons.Height
End Sub
Private Sub Form_Unload(Cancel As Integer)
Screen.MousePointer = vbDefault
End Sub
Private Sub datPrimaryRS_Error(ByVal ErrorNumber As Long, Description As String,
ByVal Scode As Long, ByVal Source As String, ByVal HelpFile As String, ByVal
HelpContext As Long, fCancelDisplay As Boolean)
'This is where you would put error handling code
-
8/2/2019 neethucomp prjct
25/62
'If you want to ignore errors, comment out the next line
'If you want to trap them, add code here to handle them
MsgBox "Data error event hit err:" & Description
End Sub
Private Sub datPrimaryRS_WillChangeRecord(ByVal adReason As
ADODB.EventReasonEnum, ByVal cRecords As Long, adStatus As
ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset)
'This is where you put validation code
'This event gets called when the following actions occur
Dim bCancel As Boolean
Select Case adReason
Case adRsnAddNew
Case adRsnClose
Case adRsnDelete
Case adRsnFirstChange
Case adRsnMove
Case adRsnRequery
Case adRsnResynch
Case adRsnUndoAddNew
Case adRsnUndoDelete
Case adRsnUndoUpdate
Case adRsnUpdate
-
8/2/2019 neethucomp prjct
26/62
End Select
If bCancel Then adStatus = adStatusCancel
End Sub
Private Sub cmdAdd_Click()
On Error GoTo AddErr
datPrimaryRS.Recordset.MoveLast
grdDataGrid.SetFocus
SendKeys "{down}"
Exit Sub
AddErr:
MsgBox Err.Description
End Sub
Private Sub cmdRefresh_Click()
'This is only needed for multi user apps
On Error GoTo RefreshErr
datPrimaryRS.Refresh
Exit Sub
RefreshErr:
MsgBox Err.Description
End Sub
-
8/2/2019 neethucomp prjct
27/62
Private Sub cmdUpdate_Click()
On Error GoTo UpdateErr
datPrimaryRS.Recordset.UpdateBatch adAffectAll
Exit Sub
UpdateErr:
MsgBox Err.Description
End Sub
Private Sub cmdClose_Click()
Unload Me
End Sub
Form 5:
Coding
Dim str as flag
Dim str As String
-
8/2/2019 neethucomp prjct
28/62
Private Sub Command1_Click()
Unload frmfeesub
End Sub
Private Sub Command2_Click()
If Val(Text8.Text) > Val(Text7.Text) Or Trim(Text8.Text) = Empty Then
MsgBox "Please enter proper amount (not more than dues)", vbOKOnly, Error
Text8.SetFocus
Else
str = "insert into FeeRecord values ( " & Text1.Text & " , " & Text3.Text & " , '" &
Text4.Text & "' , " & Text8.Text & ")"
con.Execute str
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
Text9.Text = ""
-
8/2/2019 neethucomp prjct
29/62
End If
Text4.Text = Date
Text1.SetFocus
End Sub
Private Sub Form_Load()
Text4.Text = Date
Left = (Screen.Width - frmfeesub.Width) / 2
Top = (Screen.Height - frmfeesub.Height) / 2
'rsflag = 0
End Sub
Private Sub Form_Unload(Cancel As Integer)
If rsflag = 1 Then
rs.Close
rsflag = 0
End If
End Sub
Private Sub Text1_LostFocus()
Static i
-
8/2/2019 neethucomp prjct
30/62
If Trim(Text1.Text) Empty Then
rs.Open "select * from Students where Schno = " & Text1.Text, con, adOpenStatic
Text2.Text = rs.Fields("FirstName") + " " + rs.Fields("MiddleName") + " " +
rs.Fields("LastName")
rs.Close
Else
MsgBox " Please enter proper Scholar number", vbOKOnly, Error
'Text1.SetFocus
End If
End Sub
Private Sub Text3_LostFocus()
If Trim(Text3.Text) = Empty Then
MsgBox " Please enter proper Session", vbOKOnly, Error
Text3.SetFocus
Else
If Text1.Text Empty Then
str = "select * from ses where ses = " & Text3.Text
rs.Open str, con, adOpenStatic
If rs.RecordCount 1 Then
MsgBox "Please enter proper Session. See Session table", vbOKOnly, Error
-
8/2/2019 neethucomp prjct
31/62
Text3.SetFocus
Else
rs.Close
str = "SELECT std From student_ses_std Where ses = " & Text3.Text & " and schno = " &
Text1.Text
rs.Open str, con, adOpenStatic
If rs.RecordCount = 0 Then
MsgBox "This student is not admited or promoted for " & Text3.Text & " session",
vbOKOnly, Error
Text3.SetFocus
Else
Dim std As Integer
Text9.Text = rs.Fields("std")
rs.Close
rs.Open "select * from feestructure where std = " & Text9.Text, con, adOpenStatic
Dim total As Integer
total = Val(rs.Fields("tutionfee")) + Val(rs.Fields("sports")) + Val(rs.Fields("computer")) +
Val(rs.Fields("development")) + Val(rs.Fields("library")) + Val(rs.Fields("others"))
Text5.Text = total
rs.Close
rs.Open "select amount from FeeRecord where ses = " & Text3.Text & " and schno = " &
Text1.Text, con, adOpenStatic
-
8/2/2019 neethucomp prjct
32/62
If rs.RecordCount > 0 Then
Do While Not rs.EOF
Text6.Text = Val(Text6.Text) + rs.Fields("amount")
rs.MoveNext
Loop
Else
Text6.Text = "0"
End If
Text7.Text = Val(Text5.Text) - Val(Text6.Text)
End If
End If
rs.Close
End If
End If
End Sub
Form 6:
-
8/2/2019 neethucomp prjct
33/62
coding
Dim str As String
Dim rs1 As New ADODB.Recordset
Dim rsflag As Boolean
Dim pass As Boolean
Dim l As Integer
Private Sub Combo2_Click()
If Combo2.Text = "11" Or Combo2.Text = "12" Then
Combo3.Enabled = True
Else
Combo3.Enabled = False
End If
End Sub
Private Sub Combo2_LostFocus()
If Combo2.Text = "11" Or Combo2.Text = "12" Then
Combo3.Enabled = True
Else
-
8/2/2019 neethucomp prjct
34/62
Combo3.Enabled = False
End If
End Sub
Private Sub Command1_Click()
Call clscr
Dim i As Integer
If Trim(Combo1.Text) = "" Or Trim(Combo2.Text) = "" Then
MsgBox "Please select correct Session & Standard.", vbInformation + vbOKOnly
Combo1.SetFocus
Else
'str = "select schno from student_ses_std where std=" & Combo2.Text & " and ses=" &
Combo1.Text
'MsgBox (str)
If Combo3.Enabled = True Then
str = "select schno from student_ses_std where std=" & Combo2.Text & " and ses=" &
Combo1.Text & " and subject='" & Combo3.Text & "'"
Else
str = "select schno from student_ses_std where std=" & Combo2.Text & " and ses=" &
Combo1.Text
'MsgBox (str)
End If
If rsflag = True Then
-
8/2/2019 neethucomp prjct
35/62
rs.Close
End If
rs.Open str, con, adOpenStatic
rsflag = True
str = "select * from examscheme where std=" & Combo2.Text
rs1.Open str, con, adOpenStatic
For i = 0 To rs1(2) - 1
subject(i).Visible = True
subject(i).Caption = rs1(3 * (i + 1))
marks(i).Visible = True
marks(i).Text = ""
Next
rs1.Close
If (rs.EOF) Then
rs.Close
rsflag = False
Call clscr
Label4.Caption = ""
Label5.Caption = ""
Command2.Enabled = False
Command3.Enabled = False
-
8/2/2019 neethucomp prjct
36/62
Else
Label4.Caption = rs.Fields("schno")
rs1.Open "select * from students where schno=" & Label4.Caption, con, adOpenStatic
Label5.Caption = rs1.Fields("firstname") + " " + rs1.Fields("middlename") + " " +
rs1.Fields("lastname")
rs1.Close
marks(0).SetFocus
Command2.Enabled = True
Command3.Enabled = True
str = "select * from student_ses_std where schno=" & CStr(Val(Combo1.Text) + 1) & "
and schno=" & Label4.Caption
' MsgBox (str)
rs1.Open str, con, adOpenStatic
l = rs1.RecordCount
rs1.Close
If l > 0 Then
MsgBox "Marks of " + Label5.Caption + " already entered." + vbCr + "Press NEXT for
next student", vbOKOnly
Command2.Enabled = False
Else
Command2.Enabled = True
End If
-
8/2/2019 neethucomp prjct
37/62
End If
End If
End Sub
Private Sub Command2_Click()
Dim total As Integer
If Trim(marks(0).Text) = "" Or Trim(marks(1).Text) = "" Or Trim(marks(2).Text) = "" Or
Trim(marks(3).Text) = "" Or Trim(marks(4).Text) = "" Or Trim(marks(5).Text) = "" Or
Trim(marks(6).Text) = "" Or Trim(marks(7).Text) = "" Or Trim(marks(8).Text) = "" Or
Trim(marks(9).Text) = "" Or Trim(marks(10).Text) = "" Or Trim(marks(11).Text) = ""
Then
MsgBox "Please Fill Marks Completely.", vbInformation + vbOKOnly, "Fill Incompleted"
marks(0).SetFocus
Else
str = "select * from studentmarks where schno=" & Label4.Caption
rs1.Open str, con, adOpenStatic
l = rs1.RecordCount
rs1.Close
If l > 0 Then
MsgBox "Marks of " + Label5.Caption + " already entered." + vbCr + "Press NEXT for
next student", vbOKOnly
Command2.Enabled = False
'rs1.Close
'End Sub
-
8/2/2019 neethucomp prjct
38/62
Else
Command2.Enabled = True
total = Val(marks(0).Text) + Val(marks(1).Text) + Val(marks(2).Text) +
Val(marks(3).Text) + Val(marks(4).Text) + Val(marks(5).Text) + Val(marks(6).Text) +
Val(marks(7).Text) + Val(marks(8).Text) + Val(marks(9).Text) + Val(marks(10).Text) +
Val(marks(11).Text)
str = "INSERT INTO STUDENTMARKS VALUES(" & Label4.Caption & "," &
Combo2.Text & ",'" & Label5.Caption & "'," & marks(0).Text & "," & marks(1).Text & ","
& marks(2).Text & "," & marks(3).Text & "," & marks(4).Text & "," & marks(5).Text &
"," & marks(6).Text & "," & marks(7).Text & "," & marks(8).Text & "," & marks(9).Text
& "," & marks(10).Text & "," & marks(11).Text & "," & total & ")"
' MsgBox (str)
con.Execute (str)
pass = True
str = "select * from examscheme where std=" & Combo2.Text
rs1.Open str, con, adOpenStatic
'For i = 0 To rs1(2) - 1
' If Val(marks(i).Text) < rs1(3 * (i + 1) + 1) Then
' pass = False
' End If
'Next
'If pass Then
'con.Execute "insert into studentmarks(result)values('PASS') "
-
8/2/2019 neethucomp prjct
39/62
'Else
'con.Execute "insert into studentmarks(result)values('Fail') "
'End If
Dim j
For j = 0 To rs1(2) - 1
marks(j).Text = ""
marks(j).Visible = True
Next
rs1.Close
rs.MoveNext
If (rs.EOF) Then
rs.Close
rsflag = False
Call clscr
Label4.Caption = ""
Label5.Caption = ""
MsgBox "Student marks has been successfully entered", vbOKOnly
Command2.Enabled = False
Command3.Enabled = False
Else
rs1.Open "select * from students where schno=" & Label4.Caption, con, adOpenStatic
-
8/2/2019 neethucomp prjct
40/62
Label5.Caption = rs1.Fields("firstname") + " " + rs1.Fields("middlename") + " " +
rs1.Fields("lastname")
' rs1.MoveNext
rs1.Close
marks(0).SetFocus
End If
End If
End If
End Sub
Private Sub Command3_Click()
rs.MoveNext
If (rs.EOF) Then
rs.Close
rsflag = False
Call clscr
Label4.Caption = ""
Label5.Caption = ""
MsgBox "Students Marks has been successfully entered", vbInformation
Command2.Enabled = False
Command3.Enabled = False
Else
-
8/2/2019 neethucomp prjct
41/62
Label4.Caption = rs.Fields("schno")
rs1.Open "select * from students where schno=" & Label4.Caption, con, adOpenStatic
Label5.Caption = rs1.Fields("firstname") + " " + rs1.Fields("middlename") + " " +
rs1.Fields("LastName")
rs1.Close
marks(0).SetFocus
str = "select * from student_ses_std where ses=" & CStr(Val(Combo1.Text) + 1) & " and
schno=" & Label4.Caption
rs1.Open str, con, adOpenStatic
l = rs1.RecordCount
rs1.Close
If l > 0 Then
MsgBox "Marks of " + Label5.Caption + " already entered." + vbCr + "Press Next for next
student", vbOKOnly
Command2.Enabled = False
Else
Command2.Enabled = True
End If
End If
End Sub
Private Sub Command4_Click()
Unload frmmarks
-
8/2/2019 neethucomp prjct
42/62
-
8/2/2019 neethucomp prjct
43/62
marks(i).Text = "0"
marks(i).Visible = False
Next
End Sub
Form 7:
Coding
Private Sub Command1_Click()
mrksheet.Show
End Sub
Private Sub Form_Load()
frmreport.Width = 5200
frmreport.Height = 1500
End Sub
Form 8
-
8/2/2019 neethucomp prjct
44/62
Coding
Dim str As String
Dim rsflag As Integer
Private Sub cmdClose_Click()
Unload Me
End Sub
Private Sub Command1_Click()
rs.MovePrevious
If rs.BOF Then
rs.MoveLast
End If
Call enter
'rs.r
'End If
End Sub
Private Sub Command2_Click()
If Trim(txtschno.Text) = "" Then
-
8/2/2019 neethucomp prjct
45/62
str = " select * from Students where FirstName = '" & txtfname.Text & "' OR LastName =
'" & txtlname.Text & "'"
Else
str = " select * from Students where Schno = " & txtschno.Text
End If
If (rsflag) Then
rs.Close
rsflag = 0
End If
rs.Open str, con, adOpenStatic, adLockOptimistic
rsflag = 1
If (rs.RecordCount > 0) Then
Call enter
Else
MsgBox "No such record", vbOKOnly, "Search Result"
End If
End Sub
Public Sub enter()
txtschno.Text = rs.Fields("Schno")
txtfname.Text = rs.Fields("FirstName")
txtmname.Text = rs.Fields("MiddleName")
-
8/2/2019 neethucomp prjct
46/62
txtlname.Text = rs.Fields("LastName")
txtfaname.Text = rs.Fields("FathersNames")
txtmoname.Text = rs.Fields("MothersNames")
txtdob.Text = rs.Fields("dob")
txtdoa.Text = rs.Fields("doa")
txtadd.Text = rs.Fields("Address")
txtcity.Text = rs.Fields("City")
txtpcode.Text = rs.Fields("PostalCode")
txtphone.Text = rs.Fields("PhoneNumber")
Label15.Caption = rs.AbsolutePosition
Label14.Caption = rs.RecordCount
If rs.RecordCount > 1 Then
Command1.Enabled = True
Command3.Enabled = True
Else
Command1.Enabled = False
Command3.Enabled = False
End If
txtschno.SetFocus
End Sub
Private Sub Command3_Click()
-
8/2/2019 neethucomp prjct
47/62
-
8/2/2019 neethucomp prjct
48/62
'This will resize the grid when the form is resized
grdDataGrid.Height = Me.ScaleHeight - datPrimaryRS.Height - 30 - picButtons.Height
End Sub
Private Sub Form_Unload(Cancel As Integer)
Screen.MousePointer = vbDefault
End Sub
Private Sub datPrimaryRS_Error(ByVal ErrorNumber As Long, Description As String,
ByVal Scode As Long, ByVal Source As String, ByVal HelpFile As String, ByVal
HelpContext As Long, fCancelDisplay As Boolean)
'This is where you would put error handling code
'If you want to ignore errors, comment out the next line
'If you want to trap them, add code here to handle them
MsgBox "Data error event hit err:" & Description
End Sub
Private Sub datPrimaryRS_WillChangeRecord(ByVal adReason As
ADODB.EventReasonEnum, ByVal cRecords As Long, adStatus As
ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset)
'This is where you put validation code
'This event gets called when the following actions occur
Dim bCancel As Boolean
Select Case adReason
Case adRsnAddNew
-
8/2/2019 neethucomp prjct
49/62
Case adRsnClose
Case adRsnDelete
Case adRsnFirstChange
Case adRsnMove
Case adRsnRequery
Case adRsnResynch
Case adRsnUndoAddNew
Case adRsnUndoDelete
Case adRsnUndoUpdate
Case adRsnUpdate
End Select
If bCancel Then adStatus = adStatusCancel
End Sub
Private Sub cmdAdd_Click()
On Error GoTo AddErr
datPrimaryRS.Recordset.MoveLast
grdDataGrid.SetFocus
SendKeys "{down}"
Exit Sub
AddErr:
MsgBox Err.Description
-
8/2/2019 neethucomp prjct
50/62
End Sub
Private Sub cmdRefresh_Click()
'This is only needed for multi user apps
On Error GoTo RefreshErr
datPrimaryRS.Refresh
Exit Sub
RefreshErr:
MsgBox Err.Description
End Sub
Private Sub cmdUpdate_Click()
On Error GoTo UpdateErr
datPrimaryRS.Recordset.UpdateBatch adAffectAll
Exit Sub
UpdateErr:
MsgBox Err.Description
End Sub
Private Sub cmdClose_Click()
Unload Me
End Sub
Form 10:
-
8/2/2019 neethucomp prjct
51/62
Coding
Private Sub Form_Unload(Cancel As Integer)
Screen.MousePointer = vbDefault
End Sub
Private Sub datPrimaryRS_Error(ByVal ErrorNumber As Long, Description As String,
ByVal Scode As Long, ByVal Source As String, ByVal HelpFile As String, ByVal
HelpContext As Long, fCancelDisplay As Boolean)
'This is where you would put error handling code
'If you want to ignore errors, comment out the next line
'If you want to trap them, add code here to handle them
MsgBox "Data error event hit err:" & Description
End Sub
Private Sub datPrimaryRS_MoveComplete(ByVal adReason As
ADODB.EventReasonEnum, ByVal pError As ADODB.Error, adStatus As
ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset)
'This will display the current record position for this recordset
-
8/2/2019 neethucomp prjct
52/62
datPrimaryRS.Caption = "Record: " & CStr(datPrimaryRS.Recordset.AbsolutePosition)
End Sub
Private Sub datPrimaryRS_WillChangeRecord(ByVal adReason As
ADODB.EventReasonEnum, ByVal cRecords As Long, adStatus As
ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset)
'This is where you put validation code
'This event gets called when the following actions occur
Dim bCancel As Boolean
Select Case adReason
Case adRsnAddNew
Case adRsnClose
Case adRsnDelete
Case adRsnFirstChange
Case adRsnMove
Case adRsnRequery
Case adRsnResynch
Case adRsnUndoAddNew
Case adRsnUndoDelete
Case adRsnUndoUpdate
Case adRsnUpdate
End Select
If bCancel Then adStatus = adStatusCancel
-
8/2/2019 neethucomp prjct
53/62
End Sub
Private Sub cmdAdd_Click()
On Error GoTo AddErr
datPrimaryRS.Recordset.AddNew
Exit Sub
AddErr:
MsgBox Err.Description
End Sub
Private Sub cmdDelete_Click()
On Error GoTo DeleteErr
With datPrimaryRS.Recordset
.Delete
.MoveNext
If .EOF Then .MoveLast
End With
Exit Sub
DeleteErr:
MsgBox Err.Description
End Sub
Private Sub cmdUpdate_Click()
On Error GoTo UpdateErr
-
8/2/2019 neethucomp prjct
54/62
datPrimaryRS.Recordset.UpdateBatch adAffectAll
Exit Sub
UpdateErr:
MsgBox Err.Description
End Sub
Private Sub cmdClose_Click()
Unload Me
End Sub
Private Sub lblLabels_Click(Index As Integer)
End Sub
Module
Public con As New ADODB.Connection
Public rs As New ADODB.Recordset
Public Sub con_creation()
con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=maindata.mdb;Persist
Security Info=False"
End Sub
BACK END DESIGN
1) Attendance record: Tables
S. No. Field Name Data Type
1 Date Date/Time
2 Class Number
3 Name Text
-
8/2/2019 neethucomp prjct
55/62
4 Attendance Number
2) Exam Scheme: Tables
S. NO. Field Name Data Type
1 Std Number
2 Subject Text
3 No of paper Number
4 Sub1 Text
5 Min1 Number
6 Max1 Number
7 Sub2 Text
8 Min2 Number
9 Max2 Number
10 Sub3 Text
11 Min3 Number
12 Max3 Number
13 Sub4 Text
14 Min4 Number
15 Max4 Number
16 Sub5 Text
17 Min5 Number
18 Max5 Number
3) Fee Record: Tables
S. No. Field Name Data Type
-
8/2/2019 neethucomp prjct
56/62
1 Schno Number
2 Ses Number
3 Date Date/time
4 Amount Number
3) Fee Record: Tables
S. No. Field Name Data Type
1 Std. Number
2 TuitionFee Number
3 Library Number
4 Computer Number
5 Sports Number
6 Development Number
7 Others Number
4) Ses : Tables
S. No. Field Name Data Type
1 ses Number
2 strdate Date/time
5) STUDENTMARKS: Tables
S. No. Field Name Data Type
1 Schno Number
2 Std Number
3 Name text
-
8/2/2019 neethucomp prjct
57/62
4 Sub1 Number
5 Sub2 Number
6 Sub3 Number
7 Sub4 Number
8 Sub5 Number
6) Subjects: Tables
S. No. Field Name Data Type
1 subject Text
7) Student_ses_std: Tables
S. No. Field Name Data Type
1 Schno Number
2 Ses Number
3 Std Number
4 subject Text
-
8/2/2019 neethucomp prjct
58/62
-
8/2/2019 neethucomp prjct
59/62
Testing
Software testing is a critical element of software quality assurance and
represents the ultimate review of specification, design, and coding. The
purpose of product testing is to verify and validate the various work productsviz. units, integrated unit, final product to ensure that they meet their
respective requirements.
Testing Objective: -
1. Testing is a process of executing a program with the intent of finding
an error.
2. A good test case is one that has a high probability of finding an as yet
undiscovered error.
3. A successful test is one that uncovers an as yet undiscovered error.
Our objective is to design tests that systematically uncover different classes
of errors and do so with a minimum amount of time and effort.
-
8/2/2019 neethucomp prjct
60/62
This process has two parts: -
1. Planning: - This involves writing and reviewing unit, integration,
functional, validation and acceptance test plans.
2. Execution: - This involves executing these test plans, measuring,
collecting data and verifying it if it meet to quality criteria set for it.
The system is tested. Normally programs are written are as a series of individual modules-
these should be subject to separate and detailed test. The system is then tested a whole- the
separate modules are brought together and tested as complete system. the system need to be
ensure that interfaces between modules work(integration testing), the system work on the
intended platform and with the expected volume of data (volume testing) and the system
does what the user requires(acceptance/beta testing).
Conclusion
-
8/2/2019 neethucomp prjct
61/62
Bibliography
1. Visual Basic Mastering 6.0
2. Visual Basic Black Book
3. Using Ms-Office XP
-
8/2/2019 neethucomp prjct
62/62