Вы находитесь на странице: 1из 44

RESULT MANAGEMENT

A PROJECT DESIGNED AND DEVELOPED IN MICROSOFT


VISUAL BASIC VB6.O AND MS ACCESS 2000 DATABASE BY-

HARDIK MEHTA(44)

AJAY MHANTA(45)

SUPRIT MODI (46)

TUSHAR PATIL(54)

MAYURESH PAWAR(55)

[ TE MECHANICAL]

UNDER GUIDANCE OF

PROF. APOORVA CHATURVEDI

(MECHANICAL DEPARTMENT)

FOR THE ACADEMIC YEAR 2010-2011

[SEM V]

1
CONTENTS PAGE NO

1] INTRODUCTION 3

2] VB CODING 4

3] RUNTIME SCREENSHOTS 20

4] CONTROL DETAILS 24

5] DATABASE DETAILS 31

6] SUMMARY 43

2
INTRODUCTION

Result management project is a program developed in microsoft


visual studio vb6.0 software which deals with display of students result
and its database management. Exam controller is required to login
through their respective id’s and enter seat number of students to view
their result, edit records. there is option for controller to search records
of students by seat no as well as by name. students can also get their
results by entering their seat no. There is an option to search other
results too.

The first form is splash screen which show starting of application


with loading progress. The second form is login form for students and
exam controller for login of students and officials. Tool tips are
attached to all buttons, labels and text box in order to help the user
friendliness. After making a proper Exam controller login form 3 is
displayed where user can search record by number as well as by
number and can edit records. while for students After entering the seat
number the students result is displayed. students can also get their
detailed results . In this form an option is provided to see other results
for students. After result has been seen by user he can exit the
application.

For controller after making a login the page is shown to exam


controller. The user can see and search the results in the same way as
mentioned above. Also user can have access to database, to change
any marks, edit, delete or save a new record.

Nine databases are used – Eight semester result database and


Register database. The semester result database consists of marks of
each subjects in theory and termwork , the students name and seat
number,total,percent,result. The program is so developed that it
automatically calculates the total,percent and shows the grade as
‘PASS’ or ‘FAIL’.

3
In all the project consists of Eight forms that are designed to
provide optimum user friendliness and Nine databases in Ms Acess
2000 format.

PROJECT CODING
1] STARTUP FORM (FRMSTART)
Private Sub Timer1_Timer()

If ProgressBar1.Value < ProgressBar1.Max Then

ProgressBar1.Value = ProgressBar1.Value + 1

Label1.Caption = ProgressBar1.Value & " %"

Else

Unload frmstart

frmmain.Show

End If

End Sub

2] LOGIN FORM(FRMMAIN)

Private Sub cmdexit_Click()

Dim sure As Integer

sure = MsgBox("Do You Really Want To Exit Programme",


vbYesNo, "Exit")

4
If sure = 6 Then

End

Else

End If

End Sub

Private Sub Form_Load()

Image1.Picture = LoadPicture(App.Path & "\img\spce.jpg")

Image2.Picture = LoadPicture(App.Path & "\img\mum.jpg")

End Sub

Private Sub lblexamcontroller_Click()

frmmain.Hide

frmlogin.Show

End Sub

Private Sub lblstudent_Click()

frmsyear.lblfe.Caption = "F.E."

frmsyear.lblse.Caption = "S.E."

frmsyear.lblte.Caption = "T.E."

frmsyear.lblbe.Caption = "B.E."

frmsyear.lblfe.Visible = True

frmsyear.lblse.Visible = True

5
frmsyear.lblte.Visible = True

frmsyear.lblbe.Visible = True

frmsyear.lbls1.Visible = False

frmsyear.lbls2.Visible = False

frmsyear.Show

frmmain.Hide

End Sub

3] STUDENT SECTION CODING (FRMSYEAR)


Dim s As String

Dim p As String

Private Sub cmdend_Click()

Dim sure As Integer

sure = MsgBox("Do You Really Want To Exit Programme", vbYesNo, "Exit")

If sure = 6 Then

End

Else

End If

End Sub

Private Sub Form_Load()

Image1.Picture = LoadPicture(App.Path & "\img\spce.jpg")

Image2.Picture = LoadPicture(App.Path & "\img\mum.jpg")

End Sub

6
Private Sub lblreturnmain_Click()

frmmain.Show

frmsyear.Hide

End Sub

Private Sub lbls1_Click()

s = lbls1.Caption

frmstfinal.lblshwresult.Visible = False

frmstfinal.txtsseatno.Text = ""

frmstfinal.txtsseatno.Visible = True

frmstfinal.cmdgetresult.Visible = True

frmstfinal.lblrno.Caption = "Enter a Seat No for result of " & lbls1.Caption

frmstfinal.Show

Select Case s

Case "SEM-I"

frmstfinal.lblshwyear.Caption = "F.E."

frmstfinal.lblshwsem.Caption = "SEM-I"

End Select

frmstfinal.cmdgetdetails.Visible = False

frmsyear.Hide

End Sub

Private Sub lblreturnresult_Click()

lblfe.Caption = "F.E."

lblse.Visible = True

lblfe.Visible = True

7
lblte.Visible = True

lblbe.Visible = True

lbls1.Visible = False

lbls2.Visible = False

lblreturnresult.Visible = False

End

*(Similar coding for S.E.,T.E.,B.E. results)

Private Sub lblfe_Click()

lblfe.Caption = "F.E."

lbls1.Caption = "SEM-I"

lbls2.Caption = "SEM-II"

Call lblcap

End Sub

Public Function lblcap()

lblse.Visible = False

lblte.Visible = False

lblbe.Visible = False

lbls1.Visible = True

lbls2.Visible = True

lblreturnresult.Visible = True

End Function

4] FORM RESULTFINAL CODING(FRMSTFINAL)


Dim a, b As String

Dim p As String

Public m As Integer

8
Private Sub cmdend_Click()

End

End Sub

Private Sub cmdgetdetails_Click()

Select Case m

Case "1"

Call frmdetails.shwlbl

Call frmdetails.shwtxtbx

Call frmdetails.fes1txt(frmstfinal.adsl1)

Call frmdetails.fes1lbl

End Select

Call txtlock

frmdetails.cmdan.Visible = False

frmdetails.cmdcancel.Visible = False

frmdetails.cmddel.Visible = False

frmdetails.cmdsave.Visible = False

frmdetails.cmdsearch.Visible = False

frmdetails.cmdselect.Visible = False

frmdetails.cmdreturn.Visible = True

frmdetails.Show

frmstfinal.Hide

End Sub

Private Sub cmdgetresult_Click()

a = CStr(Trim(txtsseatno.Text))

9
If a <> "" Then

p = lblshwsem.Caption

lblrno.Caption = "Result for Seat No. " & a & " for " & lblshwsem.Caption & "
is "

lblshwresult.Visible = True

cmdgetresult.Visible = False

txtsseatno.Visible = False

Select Case p

Case "SEM-I"

m=1

adsl1.Refresh

If Val(txtsseatno) = 100100 Then

lblshwresult.Caption = "Result Not Found"

Else

Do Until adsl1.Recordset.EOF

b = adsl1.Recordset.Fields("seatno").Value

If b = a Then

lblshwresult.Caption = adsl1.Recordset.Fields("result").Value

cmdgetdetails.Visible = True

Exit Do

Else

adsl1.Recordset.MoveNext

If adsl1.Recordset.EOF = True Then

lblshwresult.Caption = "Result Not Found"

Else

10
End If

End If

Loop

End If

End Select

Else

MsgBox "Please,Enter a Seat No.", vbOKOnly, "Enter Seat No."

End If

End Sub

Private Sub Form_Load()

Image1.Picture = LoadPicture(App.Path & "\img\spce.jpg")

Image2.Picture = LoadPicture(App.Path & "\img\mum.jpg")

End Sub

Private Sub lblreturnresult_Click()

frmsyear.lblfe.Caption = "F.E."

frmsyear.lblse.Visible = True

frmsyear.lblte.Visible = True

frmsyear.lblbe.Visible = True

frmsyear.lbls1.Visible = False

frmsyear.lbls2.Visible = False

frmsyear.lbls2.Visible = False

frmsyear.lblreturnresult.Visible = False

frmsyear.Show

frmstfinal.Hide

End Sub

11
Private Sub lblreturnmain_Click()

lblshwresult.Caption = ""

frmmain.Show

frmstfinal.Hide

End Sub

Public Function txtlock()

frmdetails.txtsname.Locked = True

frmdetails.txtsn.Locked = True

frmdetails.txtyear.Locked = True

frmdetails.txtsem.Locked = True

frmdetails.txtpercent.Locked = True

frmdetails.txtresult.Locked = True

frmdetails.txttotal.Locked = True

frmdetails.txts1.Locked = True

frmdetails.txts1tw.Locked = True

frmdetails.txts1pr.Locked = True

frmdetails.txts2.Locked = True

frmdetails.txts2tw.Locked = True

frmdetails.txts2pr.Locked = True

frmdetails.txts3.Locked = True

frmdetails.txts3tw.Locked = True

frmdetails.txts3pr.Locked = True

frmdetails.txts4.Locked = True

frmdetails.txts4tw.Locked = True

frmdetails.txts4pr.Locked = True

12
frmdetails.txts5.Locked = True

frmdetails.txts5tw.Locked = True

frmdetails.txts5pr.Locked = True

frmdetails.txts6.Locked = True

frmdetails.txts6tw.Locked = True

frmdetails.txts6pr.Locked = True

frmdetails.txts7.Locked = True

frmdetails.txts7tw.Locked = True

frmdetails.txts7pr.Locked = True

End Function

FORM LOGIN(FRMLOGIN)

Private Sub cmdexit_Click()

Dim sure As Integer

sure = MsgBox("Do You Really Want To Exit Programme", vbYesNo, "Exit")

If sure = 6 Then

End

Else

End If

End Sub

Private Sub Form_Load()

Image1.Picture = LoadPicture(App.Path & "\img\spce.jpg")

Image2.Picture = LoadPicture(App.Path & "\img\mum.jpg")

End Sub

Private Sub lblexamcontroller_Click()

frmmain.Hide

13
frmlogin.Show

End Sub

Private Sub lblstudent_Click()

frmsyear.lblfe.Caption = "F.E."

frmsyear.lblse.Caption = "S.E."

frmsyear.lblte.Caption = "T.E."

frmsyear.lblbe.Caption = "B.E."

frmsyear.lblfe.Visible = True

frmsyear.lblse.Visible = True

frmsyear.lblte.Visible = True

frmsyear.lblbe.Visible = True

frmsyear.lbls1.Visible = False

frmsyear.lbls2.Visible = False

frmsyear.Show

frmmain.Hide

End Sub

FORM SEARCH(FRMSEARCH)

Dim dbseatno, seatno As String

Public no As String

Public ch As Integer

Public Function search(seatno As String)

no = Mid(seatno, 1, 4)

Select Case no

Case "1001"

If Val(txtsnip) = 100100 Then

14
lblrnf.Visible = True

Else

ad1.Refresh

If ad1.Recordset.EOF = True And ad1.Recordset.BOF = True Then

MsgBox "Database Doesn't Have any records", vbOKOnly, "Empty Database"

Exit Function

Else

End If

Do Until ad1.Recordset.EOF

dbseatno = ad1.Recordset.Fields("seatno").Value

If dbseatno = seatno Then

lblsn.Caption = ad1.Recordset.Fields("seatno").Value

lblsname.Caption = ad1.Recordset.Fields("sname").Value

lblyear.Caption = ad1.Recordset.Fields("cyear").Value

lblsem.Caption = ad1.Recordset.Fields("sem").Value

lblresult.Caption = ad1.Recordset.Fields("result").Value

ch = 1

Call mv

Exit Do

Else

ad1.Recordset.MoveNext

If ad1.Recordset.EOF = True Then

Call miv

Else

End If

15
End If

Loop

End If

Case Else

Call miv

End Select

End Function

Public Function mv()

lblrnf.Visible = False

lblseatno.Visible = True

lblsn.Visible = True

lblname.Visible = True

lblsname.Visible = True

lblcyear.Visible = True

lblyear.Visible = True

lblsem.Visible = True

lblcsem.Visible = True

lblsem.Visible = True

lblresult.Visible = True

lblcresult.Visible = True

cmdviewdetails.Visible = True

cmddelete.Enabled = True

End Function

Public Function miv()

lblrnf.Visible = True

16
lblseatno.Visible = False

lblsn.Visible = False

lblname.Visible = False

lblsname.Visible = False

lblcyear.Visible = False

lblyear.Visible = False

lblcsem.Visible = False

lblcsem.Visible = False

lblsem.Visible = False

lblcresult.Visible = False

lblresult.Visible = False

cmdviewdetails.Visible = False

End Function

Private Sub cmdadd_Click()

Call frmdetails.clear

Call frmdetails.shwtxtbx

Call frmdetails.shwlbl

frmdetails.cmdan.Enabled = False

frmdetails.cmdcancel.Visible = True

frmdetails.cmddel.Enabled = False

frmdetails.cmdsearch.Enabled = False

frmdetails.cboyear.Visible = True

frmdetails.cbosem.Visible = True

frmdetails.cboyear.Locked = False

frmdetails.cbosem.Locked = False

17
frmdetails.Caption = "Add New"

frmdetails.Show

frmsearch.Hide

End Sub

Private Sub cmddelete_Click()

Dim cf As Integer

cf = MsgBox("Do you really want to Delete a record ?", vbYesNo, "Delete")

If cf = 7 Then

MsgBox "Record Not Deleted", vbOKOnly, "Not Deleted"

cmddelete.Enabled = True

ElseIf cf = 6 Then

Select Case ch

Case "1"

Call delete(ad1)

Case "2"

Call delete(ad2)

Case "3"

Call delete(ad3)

Case "4"

Call delete(ad4)

Case "5"

Call delete(ad5)

Case "6"

Call delete(ad6)

Case "7"

18
Call delete(ad7)

Case "8"

Call delete(ad8)

End Select

cmddelete.Enabled = False

Call miv

End If

End Sub

Private Sub cmdexit_Click()

Dim sure As Integer

sure = MsgBox("Do You Really Want To Exit Programme", vbYesNo, "Exit")

If sure = 6 Then

End

Else

End If

End Sub

Private Sub cmdsbname_Click()

Call frmsbname.mdb

frmsbname.Show

frmsearch.Hide

End Sub

Private Sub cmdsearch_Click()

seatno = CStr(Trim(txtsnip.Text))

If seatno <> "" Then

Call search(seatno)

19
Else

MsgBox "Please ,Enter a Seat No.", vbOKOnly, "Seat No."

End If

End Sub

Private Sub cmdviewdetails_Click()

Select Case ch

Case "1"

Call frmdetails.shwlbl

Call frmdetails.shwtxtbx

Call frmdetails.fes1txt(frmsearch.ad1)

Call frmdetails.fes1lbl

End Select

frmdetails.cmdselect.Visible = False

frmdetails.cmddel.Enabled = True

frmdetails.Show

frmsearch.Hide

End Sub

Public Function delete(del As Object)

With del

.Recordset.delete

.Recordset.MoveNext

If .Recordset.EOF = True Then

.Recordset.MovePrevious

Else

End If

20
MsgBox "Record Deleted", vbOKOnly, "Deleted"

End With

End Function

Private Sub Form_Load()

frmdetails.cmdan.Visible = True

frmdetails.cmdcancel.Visible = False

frmdetails.cmddel.Visible = True

frmdetails.cmdsave.Visible = True

frmdetails.cmdsearch.Visible = True

frmdetails.cmdselect.Visible = True

frmdetails.cmdreturn.Visible = False

End Sub

FORM DETAILS (FRMDETAILS)

Public total As Single

Public percent As Double

Public result As String

Dim s1, s1tw, s1pr, s2, s2tw, s2pr, s3, s3tw, s3pr As Integer

Dim s4, s4tw, s4pr, s5, s5tw, s5pr, s6, s6tw, s6pr As Integer

Dim s7, s7tw, s7pr As Integer

Dim n, p As Integer

Dim save As String

Public Function fes1txt(s As Object)

cboyear.Visible = False

cbosem.Visible = False

With s

21
txtsname.Text = .Recordset.Fields("sname").Value

txtsn.Text = .Recordset.Fields("seatno").Value

txtyear.Text = .Recordset.Fields("cyear").Value

txtsem.Text = .Recordset.Fields("sem").Value

txts1.Text = .Recordset.Fields("m1").Value

txts1tw.Text = .Recordset.Fields("m1tw").Value

txts1pr.Visible = False

txts2.Text = .Recordset.Fields("p1").Value

txts2tw.Text = .Recordset.Fields("p1tw").Value

txts2pr.Visible = False

txts3.Text = .Recordset.Fields("c1").Value

txts3tw.Text = .Recordset.Fields("c1tw").Value

txts3pr.Visible = False

txts4.Text = .Recordset.Fields("mech").Value

txts4tw.Text = .Recordset.Fields("mechtw").Value

txts4pr.Text = .Recordset.Fields("mechpract").Value

txts5.Text = .Recordset.Fields("bee").Value

txts5tw.Text = .Recordset.Fields("beetw").Value

txts5pr.Text = .Recordset.Fields("beepract").Value

txts6.Text = .Recordset.Fields("cp1").Value

txts6tw.Text = .Recordset.Fields("cp1tw").Value

txts6pr.Visible = False

txts7.Visible = False

txts7tw.Visible = False

txts7pr.Text = .Recordset.Fields("workshop").Value

22
txttotal.Text = .Recordset.Fields("total").Value

txtpercent.Text = .Recordset.Fields("percent").Value

txtresult.Text = .Recordset.Fields("result").Value

End With

End Function

Public Function fes1lbl()

lbls1.Caption = "Appiled Mathematics- I"

lbls2.Caption = "Appiled Physics- I"

lbls3.Caption = "Appiled Chemistry- I"

lbls4.Caption = "Mechanics"

lbls5.Caption = "BEEE"

lbls6.Caption = "CP-I"

lbls7.Caption = "Workshop"

End Function

Private Sub cmdsearch_Click()

Call frmsearch.miv

frmsearch.cmddelete.Enabled = False

frmsearch.lblrnf.Visible = False

frmsearch.txtsnip.Text = ""

frmsearch.Show

frmdetails.Hide

End Sub

Private Sub cmdselect_Click()

txtpercent.Text = ""

txtsname.SetFocus

23
cmdcalculate.Enabled = True

cmdcalculate.Visible = True

If n = 0 And p = 0 Then

Call adds1

Call getseatno(ad1)

ElseIf n = 0 And p = 1 Then

Call adds2

Call getseatno(ad2)

ElseIf n = 1 And p = 0 Then

Call adds3

Call getseatno(ad3)

ElseIf n = 1 And p = 1 Then

Call adds4

Call getseatno(ad4)

ElseIf n = 2 And p = 0 Then

Call adds5

Call getseatno(ad5)

ElseIf n = 2 And p = 1 Then

Call adds6

Call getseatno(ad6)

ElseIf n = 3 And p = 0 Then

Call adds7

Call getseatno(ad7)

ElseIf n = 3 And p = 1 Then

Call adds8

24
Call getseatno(ad8)

Else

End If

cboyear.Locked = True

cbosem.Locked = True

cmdselect.Enabled = False

End Sub

Public Function adds1()

Call fes1lbl

txts1pr.Visible = False

txts2pr.Visible = False

txts3pr.Visible = False

txts6pr.Visible = False

txts7.Visible = False

txts7tw.Visible = False

txts1pr.Text = 0

txts2pr.Text = 0

txts3pr.Text = 0

txts6pr.Text = 0

txts7.Text = 0

txts7tw.Text = 0

save = "saves1"

End Function

Public Function saves1()

ad1.Recordset.Fields("sname").Value = txtsname.Text

25
ad1.Recordset.Fields("seatno").Value = txtsn.Text

ad1.Recordset.Fields("cyear").Value = "F.E."

ad1.Recordset.Fields("sem").Value = "I"

ad1.Recordset.Fields("m1").Value = txts1.Text

ad1.Recordset.Fields("m1tw").Value = txts1tw.Text

ad1.Recordset.Fields("p1").Value = txts2.Text

ad1.Recordset.Fields("p1tw").Value = txts2tw.Text

ad1.Recordset.Fields("c1").Value = txts3.Text

ad1.Recordset.Fields("c1tw").Value = txts3tw.Text

ad1.Recordset.Fields("mech").Value = txts4.Text

ad1.Recordset.Fields("mechtw").Value = txts4tw.Text

ad1.Recordset.Fields("mechpract").Value = txts4pr.Text

ad1.Recordset.Fields("bee").Value = txts5.Text

ad1.Recordset.Fields("beetw").Value = txts5tw.Text

ad1.Recordset.Fields("beepract").Value = txts5pr.Text

ad1.Recordset.Fields("cp1").Value = txts6.Text

ad1.Recordset.Fields("cp1tw").Value = txts6tw.Text

ad1.Recordset.Fields("workshop").Value = txts7pr.Text

ad1.Recordset.Fields("total").Value = txttotal.Text

ad1.Recordset.Fields("percent").Value = txtpercent.Text

ad1.Recordset.Fields("result").Value = txtresult.Text

End Function

If txts7pr.Text <> "" Then

s7pr = Str(txts7pr.Text)

Call maxmarks

26
total = (s1 + s1tw + s1pr + s2 + s2tw + s2pr + s3 + s3tw + s3pr + _

s4 + s4tw + s4pr + s5 + s5tw + s5pr + s6 + s6tw + s6pr + s7 + s7tw +


s7pr)

txttotal.Text = Str(total)

txtresult.Text = rs

cmdsave.Enabled = True

Else

MsgBox "Please,Enter Marks of " & lbls7.Caption, vbOKOnly, "Enter Marks"

txts7pr.SetFocus

cmdcalculate.Enabled = True

End If

Public Function rs() As String

rs = "Pass"

If s1 < 40 Then

rs = "Fail"

Exit Function

Else

End If

Select Case save

Case "saves4"

Case Else

If s1tw < 10 Then

rs = "Fail"

Exit Function

Else

27
End If

End Select

Select Case save

Case "saves5"

If s1pr < 10 Then

rs = "Fail"

Exit Function

Else

End If

Case "saves6"

If s1pr < 10 Then

rs = "Fail"

Exit Function

Else

End If

Case "saves7"

If s1pr < 10 Then

rs = "Fail"

Exit Function

Else

End If

Case Else

End Select

End Function

Public Function maxmarks() As String

28
If s1 > 100 Then

MsgBox "Invalid Marks, Maximum Marks are 100", vbExclamation, "Invalid


Marks"

txts1.SetFocus

Exit Function

Else

End If

Select Case save

Case "saves4"

Case Else

If s1tw > 25 Then

MsgBox "Invalid Marks, Maximum Marks are 25", vbExclamation, "Invalid


Marks"

txts1tw.SetFocus

Exit Function

Else

End If

End Select

Select Case save

Case "saves5"

If s1pr > 25 Then

MsgBox "Invalid Marks, Maximum Marks are 25 ", vbExclamation, "Invalid


Marks"

txts1pr.SetFocus

Exit Function

Else

29
End If

Case "saves6"

If s1pr > 25 Then

MsgBox "Invalid Marks, Maximum Marks are 25 ", vbExclamation, "Invalid


Marks"

txts1pr.SetFocus

Exit Function

Else

End If

Case "saves7"

If s1pr > 25 Then

MsgBox "Invalid Marks, Maximum Marks are 25 ", vbExclamation, "Invalid


Marks"

txts1pr.SetFocus

Exit Function

Else

End If

Case Else

End Select

End function

Public Function getseatno(ob As Object)

Dim sno As String

ob.Refresh

ob.Recordset.MoveLast

sno = Val(ob.Recordset.Fields("seatno").Value)

txtsn.Text = CStr(sno + 1)

30
txtsn.Locked = True

End Function

FORM SEARCH BY NAME(frmsbname)

Dim search As String

Dim c As Integer

Dim snm As String

Dim i As Integer

Private Sub cmdexit_Click()

Dim sure As Integer

sure = MsgBox("Do You Really Want To Exit Programme", vbYesNo, "Exit")

If sure = 6 Then

End

Else

End If

End Sub

Private Sub cmdsbn_Click()

frmsearch.Show

frmsbname.Hide

End Sub

Private Sub cmdsearchbn_Click()

Timer1.Enabled = True

lblshwname.Visible = True

lblshwsno.Visible = True

txtsname.SetFocus

End Sub

31
Public Sub mdb()

Call delall

Call add(frmdetails.ad1)

Call add(frmdetails.ad2)

Call add(frmdetails.ad3)

Call add(frmdetails.ad4)

Call add(frmdetails.ad5)

Call add(frmdetails.ad6)

Call add(frmdetails.ad7)

Call add(frmdetails.ad8)

End Sub

Private Sub Timer1_Timer()

If txtsname.Text = "'" Then

Else

search = "select * from register where sname like '" & Trim(txtsname.Text) &
"%'"

ad1.Refresh

ad1.RecordSource = search

End If

End Sub

Public Function add(ado As Object)

With ado

.Refresh

snm = .Recordset.Fields("Sname").Value

c = .Recordset.RecordCount

32
For i = 1 To c

If snm = "sampleentry" Then

.Recordset.MoveNext

snm = "nos"

Else

ad1.Recordset.AddNew

ad1.Recordset.Fields("sname").Value = .Recordset.Fields("sname").Value

ad1.Recordset.Fields("seatno").Value = .Recordset.Fields("seatno").Value

ad1.Recordset.Fields("cyear").Value = .Recordset.Fields("cyear").Value

ad1.Recordset.Fields("sem").Value = .Recordset.Fields("sem").Value

ad1.Recordset.Fields("total").Value = .Recordset.Fields("total").Value

ad1.Recordset.Fields("percent").Value = .Recordset.Fields("percent").Value

ad1.Recordset.Fields("result").Value = .Recordset.Fields("result").Value

ad1.Recordset.Update

.Recordset.MoveNext

If .Recordset.EOF = True Then

Exit Function

Else End If End If

Next

End With

End Function

Public Function delall()

ad1.Refresh

For i = 1 To ad1.Recordset.RecordCount

ad1.Recordset.delete

33
If ad1.Recordset.EOF = True And ad1.Recordset.BOF = True Then

Exit Function

Else

ad1.Recordset.MoveNext

Next

End Function

RUNTIME SCREENSHOTS
1] STARTUP FORM (FRMSTART)

2) FORM MAIN(FRMMAIN)

34
3)FORM SELECT YEAR(FRMSYEAR)

35
4)FORM RESULT(FRMSTFINAL)

5)FORM LOGIN(FRMLOGIN)

36
6)FORM SEARCH(FRMSEARCH)

7)FORM DETAILS(FRMDETAILS)

37
8)FORM SEARCH BY NAME(FRMSBNAME)

DATABASES

38
1)SEM-1

2)REGISTER

CAPTION PROPERTIES

39
FRMMAIN :
Controls Properties
Form frmmain

BackColor = &H00C0C000&
Caption = "Welcome"
ForeColor = &H80000001&
LockControls = -1 'True
StartUpPosition = 1 'CenterOwner
WindowState = 2 'Maximized

CommandButton cmdexit

BackColor = &H80000003&
Caption = "&Exit"

Font:

Name = "MS Sans Serif"


Size = 13.5
ToolTipText = "Exit the Programme"

Image Image2
Stretch = -1 'True

Shape Shape3
FillStyle = 0 'Solid
Shape = 3 'Circle

Shape Shape2
FillStyle = 0 'Solid
Shape = 3 'Circle

Label lblcn
BackColor = &H00C0C000&
Caption = "SARDAR PATEL COLLEGE OF ENGINEERING"
Font:
Name = "Elephant"
Size = 18
ForeColor = &H00FF0000&

Label lbldn
BackColor = &H00C0C000&
Caption = "MECHANICAL ENGINEERING DEPARTMENT"
Font:
Name = "Calisto MT"
Size = 14.25
Underline = 0 'False
ForeColor = &H00800000&

Shape Shape1
BorderColor = &H80000013&

40
Shape = 4 'Rounded Rectangle

Label lblsug
BackColor = &H00C0C000&
Caption = "Please Login To Proceed"
Font:
Name = "Times New Roman"
Size = 14.25
ForeColor = &H00404040&

Label lblwelcome
BackColor = &H00C0C000&
Caption = "Welcome To"
Font:
Name = "MS Sans Serif"
Size = 13.5

ForeColor = &H80000008&

Label lblexamcontroller
BackColor = &H00C0C000&
Caption = "Exam Controller login"
Font
Name = "Bell MT"
Size = 18
ToolTipText = "click here to login as exam controller"

Label lblstudent
BackColor = &H00C0C000&
Caption = "Students login"
Font
Name = "Bell MT"
Size = 18
ForeColor = &H00000000&
ToolTipText = "login for Students"

Form Login

FORM FRMLOGIN

BackColor = &H00C0C000&

Caption = "Login"

FillColor = &H00FFFFFF&

ForeColor = &H00C00000&

COMMANDBUTTON CMDEXIT

41
Caption = "&EXIT"

FontName = "MS Sans Serif"

ToolTipText = "Exit application"

COMMANDBUTTON CMDLOGIN

Caption = "&Login"

FontName = "MS Sans Serif"

ToolTipText = "login as entered username and password"

TextBox txtpassword

FontName = "Times New Roman"

TextBox txtusername

Font Name = "Times New Roman"

LABEL LABEL5

BackColor = &H00C0C000&

Caption = "Username and Password are case-sensitive"

FontName = "Corbel"

ForeColor = &H000040C0&

LABEL LBLRETURN

BackColor = &H00C0C000&

Caption = "RETURN TO MAIN PAGE"

Font Name = "Times New Roman"

42
ToolTipText = "Return to main Page"

LABEL LBLECS

BackColor = &H00C0C000&

Caption = "EXAM CONTROLLER SECTION"

FontName = "Calisto MT"

LABEL LBLCN

BackColor = &H00C0C000&

Caption = "SARDAR PATEL COLLEGE OF ENGINEERING"

FontName = "Elephant"

LABEL LBLPASSWORD

BackColor = &H00C0C000&

Caption = "Enter a password"

FontName = "Constantia"

LABEL LBLUSERNAME

BackColor = &H00C0C000&

Caption = "Enter Username"

Font Name = "Constantia"

43
SUMMARY

The result management vb 6.0 project is created considering


all the necessary requirements of a good user friendly application.
Efforts are made to introduce a better design of user interface,
better technical ideas and tricks, and to reduce bugs as far as
possible.

There is a huge scope of improvement in this project.


Subsequent changes can be made so as to display results of
various semesters and various stream. A number of database is
required for this purpose. By using proper coding one can make
provision for taking printouts of the displayed result. There is also
scope for improving the graphic design of the interface.

44