Session September 2009 Software Lab-2 BSIT (05)-406 Submitted To: Mr.

Dharminder Singh & Miss Harjeet Kaur

Submitted By: Name - Harwinder Kaur & Maninder Kumar Roll no- 720429019 & 820429044 On the completion of 4th SEM BSC (IT)

1

1. ACKNOWLEDGEMENT 2. ABOUT THE PROJECT 3. INTRODUCTION OF V.B 4. PERSONAL OPINION 5. PREFACE 6. PART-1 FORMS 7. PART-2 CODING 8. PART-3 DATA REPORT 9. PART-4 MICROSOFT ACCESS REPORT

2

We owe a never editing gratitude to our god for his blessing in the completion of this project. We wish to express deep felt gratitude to our supervisor Mr. Dharminder Singh & Miss Harjeet Kaur For their guidance, inspiration and encouragement at each and every place of this project. We are thankful to Centre Head PTU Learning centre Phillaur and Mr. Dharminder Singh Miss Amandeep project incharge without their encouragement and guidance this Endavour would not have been possible.Our concerned do permit us pay our sincere thanks to the concerned teachers of the PTU Learning Centre for this consistence support provided to the study of the Project. We also express our thanks to every person in the centre who directly or indirectly. Helped us for completing our report by providing us required information.We extend our special gratitude to our parents and our friends who were always there to encourage us to put in our through out this project.

3

This project is based on School Management. Institute is a place. Where we can get education In different courses. Institute is a vast source of knowledge.Institute education is prepares us to have morality, selfpurification, responsibility, boldness, knowledge, self-reliance and self-restraint.This project includes four parts :->

1. PART-1 FORMS 2. PART-2 CODING 3. PART-3 DATA REPORT 4. PART-4 MICROSOFT ACCESS REPORT

4

Visual Basic is very popular language.The “visual” part refers to the method used to create the graphic user Interface Applications & the “Basic” part refer to the basic language that is used by most of the programmers in the history of computing.Visual Basic is an event driven programming language.It is easy to work with and is used for making project where vb is utilized as front-end.it is utilize to make games software. Visual Basic 6.0 is Microsoft technology, which was developed in February 1997.Before this Microsoft had introduced various other versions of visual basic such as vb1.0,vb2.0,vb3.0,visul basic 1.0 was the first version of the visual basic programming language and was introduced in may 1991. Earlier visual basic allowed a user to build simple or complex application using the available visual basic controls only,such as check box and Radio buttons.The various issues like ‘Intrface Design’ ,‘Database Design’,and Distributing an application.This is also demystifies Activex and presents this topic,as it should be form a user’s point of view.

5

they guided us how to perform our job.Training at PTU centre has been full of learning at every step.The atmosphere in the company is cordial. firm assurance of staff support and a very caring and nurturing environment.They also provided job placement facility to us. green and extremely friendly place to be in. situated faraway from the din of the town.Trough out of our study. I want to say only that I feel proud to be a part of this institute.All the staff members of ptu centre are helpful. all-lead to effective realization of our goals with a vast building complex.The environment of PTU is very good and we are satisfied from this. At the end. 6 . Easy accessibility to faculty guidance.PTU institute is clean.They teach us in a very good way by which we know every difficult topic in a simple way.

It handles the records of students admission.This project report in vb is the outcome of hard efforts of last first month. 2nd part deals with the main body of the project including the coding. 7 . This project is based on institute management. 3rd part contains the main outcome of the Database Records stored in Microsoft Access.result and liabrary record etc.This project report has been completed and submitted now the fulfillment of the 4th semester. This project is divided into the three parts:-> 1st part deals with all the forms that are used to design the project.

8 .

9 .LOGIN FORM THIS FORM CONTAINS USERNAME AND PASSWORD.

WELCOME FORM THIS FORM SHOWS FEATURES. 10 . ADDRESS AND OTHER INFORMATION. IT ALSO DISPLAYS PICTURE.

11 .FEATURES THIS FORM INCLUDES ALL THE FEATURES OF SCHOOL.

ADDRESS THIS FORM INCLUDES ADDRESS DETAILS. 12 .

13 . MAIN FORM WHICH INCLUDES SCHOOL MANAGEMENT DETAIL.OTHER INFORMATION MDI FORM THIS IS MDI FORM.

14 .ADMISSION FORM THIS FORM INCLUDES ADDMISSION DETAILS OF THE STUDENTS.

DELETE STUDENT RECORD THIS FORM DELETES STUDENT RECORD 15 .

UPDATE STUDENT RECORD THIS FORM UPDATES STUDENT RECORD 16 .

SEARCH STUDENT RECORD THIS FORM SEARCHES STUDENT RECORD 17 .

TEACHER`S RECORD THIS FORM INCLUDES DETAILS OF THE STAFF. 18 .

NON TEACHER RECORD THIS FORM INCLUDES NON TEACHING DETAILS. 19 .

20 .SEARCH TEACHING RECORD THIS FORM INCLUDES SEARCH DETAILS OF TEACHERS.

TEACHING RECORD THIS FORM INCLUDES SEARCH DETAILS OF NONTEACHING STAFF.NON. 21 .

22 .

Text B = Text2.Value = ProgressBar1. I% Private Sub Command1_Click() A = Text1. B$.LOGIN FORM Dim A$..Show Unload Me Else ProgressBar1.Panels(1) = Date StatusBar1...Enabled = True Else MsgBox "PLEASE ENTER CORRECT USER NAME AND PASSWORD" I=I+1 If (I = 3) Then MsgBox "GOOD LUCK.TRY NEXT TIME" Unload Me End If End If Else MsgBox "FIELDS ARE EMPTY" End If End Sub Private Sub Command2_Click() Unload Me End Sub Private Sub Form_Load() Timer1.Value + 10 End If End Sub 23 .Value = 100 Then welcome.Text If A <> " " And B <> " " Then If (A = "SCHOOL" Or A = "school") And (B = "MATTO" Or B = "matto") Then Timer1.Enabled = False StatusBar1.Panels(2) = Time End Sub Private Sub Timer1_Timer() If ProgressBar1.

Picture = LoadPicture("D:\SCHOOL_MGT\Eliot Hall.Show End Sub Private Sub Label6_Click() Unload Me End Sub 24 .Show End Sub Private Sub Label4_Click() ADDRESS. Reed College.WELCOME FORM Private Sub Form_Load() StatusBar1.Show End Sub Private Sub Label5_Click() MDIForm1.Panels(2) = Time Picture1.Panels(1) = Date StatusBar1.JPG") End Sub Private Sub Label2_Click() FEATURES.

Panels(1) = Date StatusBar1.FEATURES Private Sub Form_Load() StatusBar1.Panels(2) = Time End Sub Private Sub Label10_Click() Unload Me End Sub 25 .

ADDRESS Private Sub Form_Load() StatusBar1.Panels(2) = Time End Sub Private Sub Label11_Click() Unload Me End Sub 26 .Panels(1) = Date StatusBar1.

Show End Sub Private Sub NON_Click() NONTEACHING.Panels(1) = Date StatusBar1.Show End Sub Private Sub UPD_Click() 27 .Show End Sub Private Sub EXI_Click() Unload MDIForm1 End Sub Private Sub MDIForm_Load() StatusBar1.MDI FORM Private Sub DEL_Click() MODIFY.Show End Sub Private Sub TEA_Click() TEACHING.Show End Sub Private Sub NONT_Click() SEARCH_NONTEACHERS.Show End Sub Private Sub SEA_Click() SEARCH_STUDENT.Show End Sub Private Sub TEAC_Click() search_teachers.Panels(2) = Time End Sub Private Sub NEW_Click() NEW1.

Recordset Private Sub Command1_Click() If Option1.Show End Sub NEW ADDMISSION FORM Dim GE$ Dim CON As ADODB.AddItem ("BC") Combo1.Text RS(3) = Text4.Open 28 .OLEDB.MoveFirst End Sub Private Sub Command3_Click() Unload Me End Sub Private Sub Form_Load() Combo1.Text RS(2) = Text3.4.Text MsgBox "RECORD IS SUBMIT" RS.DATA SOURCE=D:\SCHOOL_MGT\STU_ADD.MODIFY.MDB" CON.AddNew RS(0) = Text1.AddItem ("SC") Combo1.0.Text RS(5) = Text6.Text RS(4) = Text5.ListIndex RS(9) = Text8.Text RS(7) = GE RS(8) = Combo1.Recordset CON.Value = TRUR Then GE = "FEMALE" End If RS.Connection Set RS = New ADODB.Text RS(1) = Text2.Value = True Then GE = "MALE" ElseIf Option2.AddItem ("GENERAL") Combo1.Connection Dim RS As ADODB.Text RS(6) = Text7.AddItem ("OTHERS") Set CON = New ADODB.JET.ConnectionString = "PROVIDER=MICROSOFT.

adLockOptimistic 'RS. CON.RS.Open "SELECT * FROM STU_ADD".MoveFirst End Sub Private Sub Text5_GotFocus() MsgBox "DATE FORMAT IS MM/DD/YYYY" End Sub Private Sub Text8_GotFocus() MsgBox "DATE FORMAT IS MM/DD/YYYY" End Sub 29 . adOpenDynamic.

Text RS(9) = Text10.Text = " " 'Text8.MODIFY STUDENT RECORD Dim CON As ADODB.Text = " " End Sub 30 .Text = " " Text3.Text = " " Text10.Text = 0 Text7.Text = " " Text2.Text RS(5) = Text6.Text RS(7) = Text8.Text = " " Text9.Text = " " 'Text2.Text = 0 'Text5.Delete Text1.Update MsgBox "RECORD IS UPDATE" 'Text1.Text = " " Text4.Text = " " Text6.Text = " " End Sub Private Sub Command2_Click() RS(0) = Text1.Text RS(3) = Text4.Text = " " 'Text10.Text = " " Text8.Text = 0 Text5.Text RS(1) = Text2.Text RS(8) = Text9.Text = " " 'Text3.Text = " " 'Text9.Connection Dim RS As ADODB.Text RS(2) = Text3.Text = " " 'Text6.Text RS(6) = Text7.Text = 0 'Text7.Recordset Private Sub Command1_Click() RS.Text RS(4) = Text5.Text = " " 'Text4.Text RS.

Text = RS(8) Text10.MoveLast MsgBox "THIS IS THE LAST RECORD" Else Text1.Text = RS(1) 31 .Text = RS(5) Text7.MoveLast MsgBox "THIS IS THE LAST RECORD" Else Text1.Text = RS(0) Text2.Text = RS(5) Text7.EOF Then RS.MoveNext If RS.Text = RS(6) Text8.Text = RS(7) Text9.Text = RS(4) Text6.Text = RS(9) End Sub Private Sub Command5_Click() RS.Text = RS(6) Text8.Private Sub Command3_Click() Unload Me End Sub Private Sub Command4_Click() RS.Text = RS(0) Text2.MoveFirst Text1.Text = RS(3) Text5.MoveNext If RS.Text = RS(8) Text10.Text = RS(1) Text3.Text = RS(3) Text5.Text = RS(7) Text9.EOF Then RS.Text = RS(2) Text4.Text = RS(4) Text6.Text = RS(2) Text4.Text = RS(0) Text2.Text = RS(1) Text3.Text = RS(9) End If End Sub Private Sub Command6_Click() RS.

Text = RS(6) Text8.Text = RS(0) Text2.Text = RS(7) Text9.MDB" CON.Text = RS(2) Text4.4. adOpenDynamic.MoveFirst End Sub 32 . adLockOptimistic RS.Text = RS(9) End If End Sub Private Sub Command7_Click() RS.JET.Text = RS(5) Text7.Text = RS(4) Text6.ConnectionString = "PROVIDER=MICROSOFT.Text = RS(3) Text5.Text3.Text = RS(7) Text9.MoveLast Text1.Text = RS(9) End Sub Private Sub Form_Load() Set CON = New ADODB.Open "SELECT * FROM STU_ADD".Connection Set RS = New ADODB.Recordset CON. CON.OLEDB.Text = RS(8) Text10.Text = RS(6) Text8.Text = RS(8) Text10.Text = RS(3) Text5.Text = RS(5) Text7.Text = RS(2) Text4.Text = RS(1) Text3.Open RS.0.Text = RS(4) Text6.DATA SOURCE=D:\SCHOOL_MGT\STU_ADD.

DATA SOURCE=D:\SCHOOL_MGT\STU_ADD.SEARCH STUDENT RECORD Dim CON As ADODB.Text = RS(9) RS.Text = RS(5) Text7.Connection Dim RS As ADODB.MoveFirst End Sub 33 .OLEDB.0.Find "ROLL_NUMBER = '" & Trim(Text4.Text) & "'" Text1. adOpenDynamic.Recordset CON.Open RS.MDB" CON.Text = RS(8) Text10.Recordset Private Sub Command1_Click() RS.Text = RS(2) Text4.Text = RS(4) Text6.Text = RS(6) Text8. CON.Text = RS(7) Text9.MoveFirst End Sub Private Sub Command3_Click() Unload Me End Sub Private Sub Form_Load() Set CON = New ADODB.Open "SELECT * FROM STU_ADD".4.Text = RS(3) Text5. adLockOptimistic RS.Connection Set RS = New ADODB.Text = RS(0) Text2.JET.Text = RS(1) Text3.ConnectionString = "PROVIDER=MICROSOFT.

Text = " " Text7.Text = " " Text2.Text RS(3) = Text4.Text RS(1) = Text2.Text = " " Text4.Text RS(6) = Text7.Text RS.TEACHERS RECORD Dim CON As ADODB.Recordset Private Sub Command1_Click() RS.Text RS(2) = Text3.MoveFirst End Sub Private Sub Command2_Click() RS.Text RS(2) = Text3.Text = 0 Text5.Connection Dim RS As ADODB.Text RS(1) = Text2.Text = " " Text4.Text = " " Text7.Text RS(4) = Text5.Text = " " End Sub Private Sub Command3_Click() RS(0) = Text1.Text = " " Text6.Text = " " 34 .Delete Text1.Text = " " Text3.Text RS(6) = Text7.Text = 0 Text5.Text = 0 Text2.Text RS(5) = Text6.Update End Sub Private Sub Command4_Click() Text1.AddNew RS(0) = Text1.Text RS.Text RS(3) = Text4.Text = " " Text6.Text RS(4) = Text5.Text RS(5) = Text6.Text = " " Text3.

EOF Then RS.Text = RS(1) Text3.Text = RS(1) Text3.Text = RS(1) Text3.MoveLast Text1.End Sub Private Sub Command5_Click() RS.Text = RS(6) End If End Sub Private Sub Command8_Click() RS.Text = RS(2) 35 .EOF Then RS.Text = RS(6) End If End Sub Private Sub Command7_Click() RS.Text = RS(3) Text5.MoveLast MsgBox "THIS IS THE LAST RECORD" Else Text1.Text = RS(3) Text5.MoveLast MsgBox "THIS IS THE LAST RECORD" Else Text1.Text = RS(1) Text3.Text = RS(4) Text6.MoveNext If RS.Text = RS(3) Text5.Text = RS(4) Text6.Text = RS(2) Text4.Text = RS(5) Text7.Text = RS(0) Text2.MoveFirst Text1.Text = RS(4) Text6.Text = RS(2) Text4.Text = RS(5) Text7.Text = RS(2) Text4.Text = RS(0) Text2.Text = RS(0) Text2.Text = RS(6) End Sub Private Sub Command6_Click() RS.Text = RS(5) Text7.MoveNext If RS.Text = RS(0) Text2.

Text = RS(5) Text7.0. CON.Connection Set RS = New ADODB. adOpenDynamic.Text = RS(6) End Sub Private Sub Form_Load() Set CON = New ADODB.ConnectionString = "PROVIDER=MICROSOFT.4.DATA SOURCE=D:\SCHOOL_MGT\TEACHING.Open RS.MDB" CON. adLockOptimistic End Sub Private Sub Label8_Click() Unload Me End Sub 36 .Recordset CON.Open "SELECT * FROM TEACHING".JET.Text = RS(3) Text5.Text4.OLEDB.Text = RS(4) Text6.

Text = " " Text3.Text = " " Text6.MoveFirst End Sub Private Sub Command2_Click() RS.Update End Sub Private Sub Command4_Click() Text1.Text RS(2) = Text3.Text = " " Text2.AddNew RS(0) = Text1.Text = " " Text4.Text = 0 Text5.Text = 0 Text2.Connection Dim RS As ADODB.Text RS(6) = Text7.Text = " " Text6.Text RS(3) = Text4.Text RS(4) = Text5.Text = " " Text7.Text RS.NON-TEACHING RECORD Dim CON As ADODB.Text RS(1) = Text2.Text RS(3) = Text4.Text RS(4) = Text5.Text RS(5) = Text6.Text RS(2) = Text3.Text RS(6) = Text7.Recordset Private Sub Command1_Click() RS.Text = " " End Sub Private Sub Command3_Click() RS(0) = Text1.Text RS(5) = Text6.Text RS.Text RS(1) = Text2.Delete Text1.Text = 0 Text5.Text = " " Text3.Text = " " 37 .Text = " " Text4.

Text = RS(1) Text3.Text = RS(1) Text3.Text = RS(3) Text5.Text = RS(4) Text6.Text = RS(0) Text2.Text = RS(2) Text4.MoveLast MsgBox "THIS IS THE LAST RECORD" Else Text1.Text = RS(3) Text5.Text = RS(2) Text4.MoveNext If RS.Text = RS(4) Text6.Text = RS(6) End If End Sub Private Sub Command7_Click() RS.MoveLast Text1.Text = RS(3) Text5.Text = RS(0) Text2.Text = RS(5) Text7.EOF Then RS.MoveNext If RS.Text = RS(0) Text2.MoveFirst Text1.Text = RS(1) 38 .EOF Then RS.Text = RS(5) Text7.Text = RS(0) Text2.Text = RS(2) Text4.Text = RS(6) End If End Sub Private Sub Command8_Click() RS.Text = RS(6) End Sub Private Sub Command6_Click() RS.Text = " " End Sub Private Sub Command5_Click() RS.Text = RS(4) Text6.Text7.Text = RS(5) Text7.Text = RS(1) Text3.MoveLast MsgBox "THIS IS THE LAST RECORD" Else Text1.

Text = RS(2) Text4.JET.DATA SOURCE=D:\SCHOOL_MGT\NONTEACHING.Text = RS(3) Text5.4. adLockOptimistic End Sub Private Sub Label8_Click() Unload Me End Sub 39 . adOpenDynamic.ConnectionString = "PROVIDER=MICROSOFT. CON.Recordset CON.Text3.MDB" CON.Open RS.Connection Set RS = New ADODB.OLEDB.Open "SELECT * FROM NONTEACHING".0.Text = RS(6) End Sub Private Sub Form_Load() Set CON = New ADODB.Text = RS(5) Text7.Text = RS(4) Text6.

Recordset Private Sub Command1_Click() RS.DATA SOURCE=D:\SCHOOL_MGT\TEACHING.Connection Set RS = New ADODB.Open "SELECT * FROM TEACHING".Text = RS(5) Text7.Text = RS(6) RS.MoveFirst End Sub 40 .MDB" CON.Connection Dim RS As ADODB.Text = RS(1) Text3.SEARCH TEACHING RECORD Dim CON As ADODB.MoveFirst End Sub Private Sub Command2_Click() Unload Me End Sub Private Sub Form_Load() Set CON = New ADODB.OLEDB.Find "TEACHER_ID = '" & Trim(Text1.Recordset CON.Text = RS(2) Text4. CON.Text) & "'" Text1.Text = RS(0) Text2. adLockOptimistic RS.4.ConnectionString = "PROVIDER=MICROSOFT.Text = RS(4) Text6.0.JET.Text = RS(3) Text5. adOpenDynamic.Open RS.

Text RS.AddNew RS(0) = Text1.Text RS(4) = Text5.Text = " " Text2.Text = " " Text3.SEARCH NON-TEACHING RECORD Dim CON As ADODB.Text = " " Text6.Text = 0 Text5.Text = 0 Text5.Text RS(5) = Text6.Text = " " 41 .Text = " " Text4.Update End Sub Private Sub Command4_Click() Text1.Text = " " Text4.Text = " " Text7.Text RS(5) = Text6.MoveFirst End Sub Private Sub Command2_Click() RS.Text = " " End Sub Private Sub Command3_Click() RS(0) = Text1.Text RS(3) = Text4.Text RS(1) = Text2.Text RS(1) = Text2.Delete Text1.Text RS(2) = Text3.Text = " " Text3.Recordset Private Sub Command1_Click() RS.Text = " " Text6.Connection Dim RS As ADODB.Text = 0 Text2.Text RS(6) = Text7.Text RS.Text RS(2) = Text3.Text = " " Text7.Text RS(4) = Text5.Text RS(6) = Text7.Text RS(3) = Text4.

Text = RS(4) Text6.EOF Then RS.MoveNext If RS.Text = RS(1) Text3.Text = RS(1) Text3.MoveLast MsgBox "THIS IS THE LAST RECORD" Else Text1.Text = RS(0) Text2.Text = RS(0) Text2.MoveLast MsgBox "THIS IS THE LAST RECORD" Else Text1.Text = RS(5) Text7.EOF Then RS.Text = RS(6) End If End Sub Private Sub Command8_Click() RS.Text = RS(2) Text4.Text = RS(4) Text6.Text = RS(1) Text3.MoveLast Text1.Text = RS(1) Text3.Text = RS(2) Text4.Text = RS(5) Text7.Text = RS(0) Text2.Text = RS(2) Text4.MoveNext If RS.Text = RS(5) Text7.Text = RS(4) Text6.Text = RS(3) Text5.Text = RS(6) End Sub Private Sub Command6_Click() RS.Text = RS(2) 42 .Text = RS(0) Text2.Text = RS(6) End If End Sub Private Sub Command7_Click() RS.Text = RS(3) Text5.MoveFirst Text1.Text = RS(3) Text5.End Sub Private Sub Command5_Click() RS.

Connection Set RS = New ADODB.4. CON.Open RS.Text4.Text = RS(3) Text5.JET.OLEDB.Open "SELECT * FROM NONTEACHING".MDB" CON.Text = RS(5) Text7.DATA SOURCE=D:\SCHOOL_MGT\NONTEACHING. adLockOptimistic End Sub Private Sub Label8_Click() Unload Me End Sub 43 .ConnectionString = "PROVIDER=MICROSOFT.Recordset CON.Text = RS(4) Text6.0.Text = RS(6) End Sub Private Sub Form_Load() Set CON = New ADODB. adOpenDynamic.

44 .

STUDENT DATA REPORT 45 .

TEACHER DATA REPORT 46 .

NON-TEACHING RECORD 47 .

48 .

STUDENT ADD RECORD 49 .

TEACHER RECORD 50 .

NON-TEACHER RECORD 51 .

52 .

53 .

54 .

Sign up to vote on this title
UsefulNot useful