Session September 2009 Software Lab-2 BSIT (05) - 406 Submitted To: Mr. Dharminder Singh & Miss Harjeet Kaur
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. 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
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.
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
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 users point of view.
Training at PTU centre has been full of learning at every step.The environment of PTU is very good and we are satisfied from this.The atmosphere in the company is cordial.All the staff members of ptu centre are helpful.They teach us in a very good way by which we know every difficult topic in a simple way.Trough out of our study,they guided us how to perform our job.They also provided job placement facility to us. Easy accessibility to faculty guidance, firm assurance of staff support and a very caring and nurturing environment, all-lead to effective realization of our goals with a vast building complex, situated faraway from the din of the town,PTU institute is clean, green and extremely friendly place to be in. At the end, I want to say only that I feel proud to be a part of this institute.
This project report in vb is the outcome of hard efforts of last first month.This project report has been completed and submitted now the fulfillment of the 4th semester. This project is based on institute management.It handles the records of students admission,result and liabrary record etc. This project is divided into the three parts:-> 1st part deals with all the forms that are used to design the project. 2nd part deals with the main body of the project including the coding. 3rd part contains the main outcome of the Database Records stored in Microsoft Access.
LOGIN FORM
WELCOME FORM
THIS FORM SHOWS FEATURES, ADDRESS AND OTHER INFORMATION. IT ALSO DISPLAYS PICTURE.
10
FEATURES
11
ADDRESS
12
THIS IS MDI FORM, MAIN FORM WHICH INCLUDES SCHOOL MANAGEMENT DETAIL.
13
ADMISSION FORM
14
15
16
17
TEACHER`S RECORD
18
19
20
21
22
LOGIN FORM
Dim A$, B$, I% Private Sub Command1_Click() A = Text1.Text B = Text2.Text If A <> " " And B <> " " Then If (A = "SCHOOL" Or A = "school") And (B = "MATTO" Or B = "matto") Then Timer1.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.Enabled = False StatusBar1.Panels(1) = Date StatusBar1.Panels(2) = Time End Sub Private Sub Timer1_Timer() If ProgressBar1.Value = 100 Then welcome.Show Unload Me Else ProgressBar1.Value = ProgressBar1.Value + 10 End If End Sub
23
WELCOME FORM
Private Sub Form_Load() StatusBar1.Panels(1) = Date StatusBar1.Panels(2) = Time Picture1.Picture = LoadPicture("D:\SCHOOL_MGT\Eliot Hall, Reed College.JPG") End Sub Private Sub Label2_Click() FEATURES.Show End Sub Private Sub Label4_Click() ADDRESS.Show End Sub Private Sub Label5_Click() MDIForm1.Show End Sub Private Sub Label6_Click() Unload Me End Sub
24
FEATURES
Private Sub Form_Load() StatusBar1.Panels(1) = Date StatusBar1.Panels(2) = Time End Sub Private Sub Label10_Click() Unload Me End Sub
25
ADDRESS
Private Sub Form_Load() StatusBar1.Panels(1) = Date StatusBar1.Panels(2) = Time End Sub Private Sub Label11_Click() Unload Me End Sub
26
MDI FORM
Private Sub DEL_Click() MODIFY.Show End Sub Private Sub EXI_Click() Unload MDIForm1 End Sub Private Sub MDIForm_Load() StatusBar1.Panels(1) = Date StatusBar1.Panels(2) = Time End Sub Private Sub NEW_Click() NEW1.Show End Sub Private Sub NON_Click() NONTEACHING.Show End Sub Private Sub NONT_Click() SEARCH_NONTEACHERS.Show End Sub Private Sub SEA_Click() SEARCH_STUDENT.Show End Sub
27
28
RS.Open "SELECT * FROM STU_ADD", CON, adOpenDynamic, adLockOptimistic 'RS.MoveFirst End Sub
29
30
Private Sub Command3_Click() Unload Me End Sub Private Sub Command4_Click() RS.MoveFirst Text1.Text = RS(0) Text2.Text = RS(1) Text3.Text = RS(2) Text4.Text = RS(3) Text5.Text = RS(4) Text6.Text = RS(5) Text7.Text = RS(6) Text8.Text = RS(7) Text9.Text = RS(8) Text10.Text = RS(9) End Sub Private Sub Command5_Click() RS.MoveNext If RS.EOF Then RS.MoveLast MsgBox "THIS IS THE LAST RECORD" Else Text1.Text = RS(0) Text2.Text = RS(1) Text3.Text = RS(2) Text4.Text = RS(3) Text5.Text = RS(4) Text6.Text = RS(5) Text7.Text = RS(6) Text8.Text = RS(7) Text9.Text = RS(8) Text10.Text = RS(9) End If End Sub Private Sub Command6_Click() RS.MoveNext If RS.EOF Then RS.MoveLast MsgBox "THIS IS THE LAST RECORD" Else Text1.Text = RS(0) Text2.Text = RS(1)
31
Text3.Text = RS(2) Text4.Text = RS(3) Text5.Text = RS(4) Text6.Text = RS(5) Text7.Text = RS(6) Text8.Text = RS(7) Text9.Text = RS(8) Text10.Text = RS(9) End If End Sub Private Sub Command7_Click() RS.MoveLast Text1.Text = RS(0) Text2.Text = RS(1) Text3.Text = RS(2) Text4.Text = RS(3) Text5.Text = RS(4) Text6.Text = RS(5) Text7.Text = RS(6) Text8.Text = RS(7) Text9.Text = RS(8) Text10.Text = RS(9) End Sub Private Sub Form_Load() Set CON = New ADODB.Connection Set RS = New ADODB.Recordset CON.ConnectionString = "PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE=D:\SCHOOL_MGT\STU_ADD.MDB" CON.Open RS.Open "SELECT * FROM STU_ADD", CON, adOpenDynamic, adLockOptimistic RS.MoveFirst End Sub
32
33
TEACHERS RECORD
Dim CON As ADODB.Connection Dim RS As ADODB.Recordset Private Sub Command1_Click() RS.AddNew RS(0) = Text1.Text RS(1) = Text2.Text RS(2) = Text3.Text RS(3) = Text4.Text RS(4) = Text5.Text RS(5) = Text6.Text RS(6) = Text7.Text RS.MoveFirst End Sub Private Sub Command2_Click() RS.Delete Text1.Text = " " Text2.Text = " " Text3.Text = " " Text4.Text = 0 Text5.Text = " " Text6.Text = " " Text7.Text = " " End Sub Private Sub Command3_Click() RS(0) = Text1.Text RS(1) = Text2.Text RS(2) = Text3.Text RS(3) = Text4.Text RS(4) = Text5.Text RS(5) = Text6.Text RS(6) = Text7.Text RS.Update End Sub Private Sub Command4_Click() Text1.Text = 0 Text2.Text = " " Text3.Text = " " Text4.Text = 0 Text5.Text = " " Text6.Text = " " Text7.Text = " "
34
End Sub Private Sub Command5_Click() RS.MoveFirst Text1.Text = RS(0) Text2.Text = RS(1) Text3.Text = RS(2) Text4.Text = RS(3) Text5.Text = RS(4) Text6.Text = RS(5) Text7.Text = RS(6) End Sub Private Sub Command6_Click() RS.MoveNext If RS.EOF Then RS.MoveLast MsgBox "THIS IS THE LAST RECORD" Else Text1.Text = RS(0) Text2.Text = RS(1) Text3.Text = RS(2) Text4.Text = RS(3) Text5.Text = RS(4) Text6.Text = RS(5) Text7.Text = RS(6) End If End Sub Private Sub Command7_Click() RS.MoveNext If RS.EOF Then RS.MoveLast MsgBox "THIS IS THE LAST RECORD" Else Text1.Text = RS(0) Text2.Text = RS(1) Text3.Text = RS(2) Text4.Text = RS(3) Text5.Text = RS(4) Text6.Text = RS(5) Text7.Text = RS(6) End If End Sub Private Sub Command8_Click() RS.MoveLast Text1.Text = RS(0) Text2.Text = RS(1) Text3.Text = RS(2)
35
Text4.Text = RS(3) Text5.Text = RS(4) Text6.Text = RS(5) Text7.Text = RS(6) End Sub Private Sub Form_Load() Set CON = New ADODB.Connection Set RS = New ADODB.Recordset CON.ConnectionString = "PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE=D:\SCHOOL_MGT\TEACHING.MDB" CON.Open RS.Open "SELECT * FROM TEACHING", CON, adOpenDynamic, adLockOptimistic End Sub Private Sub Label8_Click() Unload Me End Sub
36
NON-TEACHING RECORD
Dim CON As ADODB.Connection Dim RS As ADODB.Recordset Private Sub Command1_Click() RS.AddNew RS(0) = Text1.Text RS(1) = Text2.Text RS(2) = Text3.Text RS(3) = Text4.Text RS(4) = Text5.Text RS(5) = Text6.Text RS(6) = Text7.Text RS.MoveFirst End Sub Private Sub Command2_Click() RS.Delete Text1.Text = " " Text2.Text = " " Text3.Text = " " Text4.Text = 0 Text5.Text = " " Text6.Text = " " Text7.Text = " " End Sub Private Sub Command3_Click() RS(0) = Text1.Text RS(1) = Text2.Text RS(2) = Text3.Text RS(3) = Text4.Text RS(4) = Text5.Text RS(5) = Text6.Text RS(6) = Text7.Text RS.Update End Sub Private Sub Command4_Click() Text1.Text = 0 Text2.Text = " " Text3.Text = " " Text4.Text = 0 Text5.Text = " " Text6.Text = " " 37
Text7.Text = " " End Sub Private Sub Command5_Click() RS.MoveFirst Text1.Text = RS(0) Text2.Text = RS(1) Text3.Text = RS(2) Text4.Text = RS(3) Text5.Text = RS(4) Text6.Text = RS(5) Text7.Text = RS(6) End Sub Private Sub Command6_Click() RS.MoveNext If RS.EOF Then RS.MoveLast MsgBox "THIS IS THE LAST RECORD" Else Text1.Text = RS(0) Text2.Text = RS(1) Text3.Text = RS(2) Text4.Text = RS(3) Text5.Text = RS(4) Text6.Text = RS(5) Text7.Text = RS(6) End If End Sub Private Sub Command7_Click() RS.MoveNext If RS.EOF Then RS.MoveLast MsgBox "THIS IS THE LAST RECORD" Else Text1.Text = RS(0) Text2.Text = RS(1) Text3.Text = RS(2) Text4.Text = RS(3) Text5.Text = RS(4) Text6.Text = RS(5) Text7.Text = RS(6) End If End Sub Private Sub Command8_Click() RS.MoveLast Text1.Text = RS(0) Text2.Text = RS(1)
38
Text3.Text = RS(2) Text4.Text = RS(3) Text5.Text = RS(4) Text6.Text = RS(5) Text7.Text = RS(6) End Sub Private Sub Form_Load() Set CON = New ADODB.Connection Set RS = New ADODB.Recordset CON.ConnectionString = "PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE=D:\SCHOOL_MGT\NONTEACHING.MDB" CON.Open RS.Open "SELECT * FROM NONTEACHING", CON, adOpenDynamic, adLockOptimistic End Sub Private Sub Label8_Click() Unload Me End Sub
39
40
End Sub Private Sub Command5_Click() RS.MoveFirst Text1.Text = RS(0) Text2.Text = RS(1) Text3.Text = RS(2) Text4.Text = RS(3) Text5.Text = RS(4) Text6.Text = RS(5) Text7.Text = RS(6) End Sub Private Sub Command6_Click() RS.MoveNext If RS.EOF Then RS.MoveLast MsgBox "THIS IS THE LAST RECORD" Else Text1.Text = RS(0) Text2.Text = RS(1) Text3.Text = RS(2) Text4.Text = RS(3) Text5.Text = RS(4) Text6.Text = RS(5) Text7.Text = RS(6) End If End Sub Private Sub Command7_Click() RS.MoveNext If RS.EOF Then RS.MoveLast MsgBox "THIS IS THE LAST RECORD" Else Text1.Text = RS(0) Text2.Text = RS(1) Text3.Text = RS(2) Text4.Text = RS(3) Text5.Text = RS(4) Text6.Text = RS(5) Text7.Text = RS(6) End If End Sub Private Sub Command8_Click() RS.MoveLast Text1.Text = RS(0) Text2.Text = RS(1) Text3.Text = RS(2)
42
Text4.Text = RS(3) Text5.Text = RS(4) Text6.Text = RS(5) Text7.Text = RS(6) End Sub Private Sub Form_Load() Set CON = New ADODB.Connection Set RS = New ADODB.Recordset CON.ConnectionString = "PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE=D:\SCHOOL_MGT\NONTEACHING.MDB" CON.Open RS.Open "SELECT * FROM NONTEACHING", CON, adOpenDynamic, adLockOptimistic End Sub Private Sub Label8_Click() Unload Me End Sub
43
44
45
46
NON-TEACHING RECORD
47
48
49
TEACHER RECORD
50
NON-TEACHER RECORD
51
52
53
54