College e Eeeeeee

Embed Size (px)

Citation preview

  • 8/13/2019 College e Eeeeeee

    1/102

    1

    PRINCIPAL DEVELOPED BY:

    MR. S.P.C. LAL ARCHNA GUPTAREKHA JAISWALSHWETA VERMASATYABHAMA

    H.O.D. PROJECT GUIDE: S.P.SRIVASTVA MR. SANJAY BHARTI

    MR. RAJEEV PRASADMRS. ARTI YADAV

  • 8/13/2019 College e Eeeeeee

    2/102

    2

    This is to certify that ARCHANA GUPTA, REKHA JAISWAL,

    SHWETA VERMA, SATYABHAMA VISHWAKARMA, of diploma in

    Computer Science &Engineering batch 2012-2013 has completed their

    project on COLLEGE MANAGEMENT SYSTEM under my

    supervision. The contents imported in the project are result of the studentown work carried out as part of academic requirement of final year. The

    statement made by candidate is correct to the best of my knowledge. The

    candidates have worked out to my satisfactions.

    PRINCIPAL: PROJECT GUIDE:

    MR.S.P.C.LAL MR.S.P.SRIVASTAVA

    MR.RAJEEV PRASAD

    MR.SANJAY BHARTI

    MRS.ARTI YADAV

  • 8/13/2019 College e Eeeeeee

    3/102

    3

    First of all we would like to extend our sincere gratitude to Mr. SANJAY

    BHARTI, (Lecturer), Computer department, who consented to be our

    project guide. It was his continual guidance that helped us understand our

    project well and be able to complete it successfully.

    We do acknowledge the guidance rendered by our projectcoordinator, Mr. S.P. SRIVASTAVA, who helped us confirm our project,

    from a horde out of which we were unable to make out one. We would

    also like to thank our college which extended help in disguise by

    providing internet facility, printers and other required support. We also

    like to extend our thank to Mr. RAJEEV PRASAD GUPTA and Mrs.

    ARTI YADAV who helped us in every possible way. Last but not the

    least, we would like to thank our colleagues for boosting us constantly

    and providing us with subject material, whatever whoever had.

  • 8/13/2019 College e Eeeeeee

    4/102

    4

    Description Page no.

    1. Introduction 5-8

    2. Synopsis 9-14

    3. Introduction of Visual Basic 15-16

    4. Introduction of MS Office Access 17

    5. What is Data Base Management System 18-19

    6. Flowchart 20-21

    7. College Management System DFD 22-29

    8. Limitation of Project 30

    9. Table 31-36

    10. Screen Layout 37-57

    11. Coding 58-101

    12. Conclusion 102

    13. Bibliography 103

  • 8/13/2019 College e Eeeeeee

    5/102

    5

    Purpose:-

    The purpose of this application are as follows : The softw are is for automation of college. It provides following facilities to

    Operator: Can enter deta ils related to a particular student, teacher and book. Can provide membership to members.

    Admin:

    Can read and write inf ormation about any member. Can update, create, delete the rec ord of student, book .

    Scope:

    The different areas where we can use this applicationare:

    Any education institute can make use of it f or providinginformation about students, book and content of the available books.

    It can be used in offices and mod ifications can beeasily done according to requirements.

    Technology Use:

    Front End : Visual Basic 6.0.Back End : MS Access.

  • 8/13/2019 College e Eeeeeee

    6/102

    6

    Assumptions:

    This application is used to convert the manual application to the online application.

    Customized data will be used in this application. User does not have right to enter inf ormation

    About students and books.

    Overview:

    Project is related to college management which providesStudent information, book details to its members. Any person can becomea member of the library by filling a prescribed form.They can get the book issued, so that they can take homeand return them.

    Functionality:

    . Can insert student information and book details. Keeps the track of is sues and return of books .

    Feasibility Study

    In feasibility study phase we had undergone through various

    steps which are describe as under :

    1. Identify the origin of the information at different level.2. Identify the expectation of user from computerized

    System .3. Analyse the drawback of existing system (manual)

    System.

  • 8/13/2019 College e Eeeeeee

    7/102

    7

    WORKING OF PRESENT MANUAL SYSTEM

    The college management are involved in the following tasks.

    1. Student info process : administrator have to fill student infoform and they are provided with UN ID.

    2. Library details process, administrator have to fill library details

    form and they are provided with BOOK ID.

    DRAWBACKS OF PRESENT SYSTEM

    Some of the problems being faced in manual system are asfollows:

    1. Fast report generation is not possible.

    2. Tracing a book is difficult.3. Information about fees, attendance and sessional report of thestudents are not properly maintained.4. Information about issue/return of the books are not properlymaintained.5. No central database can be created as information is

    not available in database.

    PROPOSED SYSTEM

    There will be three major components :

    1. College maintenance.2. Transaction entry.3. Reports.

  • 8/13/2019 College e Eeeeeee

    8/102

    8

    Proposed system provides with following solutions:

    1. It provides "better and efficient" service to teachers.2. Reduce the workload of students.3. Faster retrieval of information about the desired book.4. Provide facility for proper monitoring reduce paper work

    and provide data security.5. All details will be available on a click.

  • 8/13/2019 College e Eeeeeee

    9/102

    9

    INTRODUCTION:

    The project entitled COLLEGE MANAGEMENT SYSTEM isdeveloped as Part of the FINAL YEAR MAIN PROJECT f or the

    partial fulfillment of the DIPLOMA in Computer Science .

    PROJECT:COLLEGE MANAGEMENT SYSTEM is a software

    application to maintain. The records related to Information of College ,Information of Student , Information of Parents, Information of Teacher,Information of Lab, Information of Library Book Purchase, StockMaintenance, Book Search, Catalog, Book Issue, Book Returns, FineCollection, and all necessary requirements f or the College of manageday to day operations .

    OBJECTIVE:

    The main objective of the application is to automate the existingsystem

    Of manually maintain the records of Information of College ,Information of Student , Information of Parents, Information of Teacher,Information of Lab, Information of Library the Book Issue, Book Return

    from the student, Stock Maintenance, Catalog and Book Search to becomputerized. So the Book Issue, Return , Searching will be faster .

    SCOPE:

    This application can be used by any College to automate the process of manually maintaining the records related to the student ,student parents, teacher, book etc.

  • 8/13/2019 College e Eeeeeee

    10/102

    10

    SOFTWARE REQUIREMENT SPECIFICATION

    Environment:

    Hardware Requirements

    The software is made in visual Basic(6.0) & Microsoft Access 2007

    For Window 98/xp following are the list of hardware requirement:-

    Pentium Process or 64 MB of RAM 3 GB of hard disk space SVGA Color monitor A 2-button mouse as pointing input device Keyboard A dot-matrix or inkjet printer installed

    Software Requirements:-

    The software requires the following items to Installed on thecomputer before it can be successfully run :

    Windows 98/xp/7/8

    Visual Basic (5.0)/(6.0) Microsoft Access 2000

  • 8/13/2019 College e Eeeeeee

    11/102

    11

    SYSTEM DEVELOPMENT LIFE CYCLE

    A system development life cycle methodology is an explicit breakdownof the work that is required to implement a new or modified information

    system. It consists of five phases.

    System development phases

    SLDC Predictive Approach :

    Project planning initiate, ensure feasibility, plan schedule,

    obtain approval for project. Analysis understand business needs and processing

    requirements. Design define solution system based on requirements and

    analysis decisions. Implementation construct, test, train users, and install new

    system. Support keep system running and improve.

  • 8/13/2019 College e Eeeeeee

    12/102

    12

    ANALYSIS

    The analysis phase defines the requirements of the system, independent

    of how these requirements will be accomplished. This phase defines the

    problem that the customer is trying to solve. The deliverable result at the

    end of this phase is a requirement document. Ideally, this document states

    in a clear and precise fashion what is to be built. This analysis represents

    the ``what'' phase.

    A functional specification is prepared to clearly mention the analysis

    details.

    a) Functional Specification Report

    Attached at Appendix A

    DESIGN

    In the design phase the architecture is established. This phase starts

    with the requirement document delivered by the requirement phase and

    maps the requirements into architecture. The architecture defines the

    components, their interfaces and behaviors. The deliverable design

    document is the architecture. The design document describes a plan to

    implement the requirements. This phase represents the ``how'' phase.

    Details on computer programming languages and environments,

    machines, packages, application architecture, distributed architecture

    layering, memory size, platform, algorithms, data structures, global type

    definitions, interfaces, and many other engineering details are established.

  • 8/13/2019 College e Eeeeeee

    13/102

    13

    TESTING

    It is the process used to help identify the correctness, completeness,

    security, and quality of developed computer software. Testing is a process

    of technical investigation, performed on behalf of stakeholders, that is

    intended to reveal quality-related information about the product with

    respect to the context in which it is intended to operate. This includes, but

    is not limited to, the process of executing a program or application with

    the intent of finding errors. Quality is not an absolute; it is value to some

    person. With that in mind, testing can never completely establish the

    correctness of arbitrary computer software; testing furnishes a 'criticism '

    or comparison that compares the state and behavior of the product against

    a specification.

    Testing is a continuous process and is followed at two levels:

    a) Unit Testing

    b) Integration Testing

    IMPLEMENTATION

    In the implementation phase, the team builds the components either

    from scratch or by composition. Given the architecture document from

    the design phase and the requirement document from the analysis phase,

    the team should build exactly what has been requested, though there is

    still room for innovation and flexibility. For example, a component may

    be narrowly designed f or this particular system, or the component may

    be made more general to satisfy a reusability guideline.

  • 8/13/2019 College e Eeeeeee

    14/102

  • 8/13/2019 College e Eeeeeee

    15/102

    15

    One of the truly beautiful thing about visual basic is that itsupports a gentle incremental development paradigm. Visual basic is

    primarily a visual design environment .We create a visual basicapplication by designing the forms that make up the user interface ,adding VBA code to the forms and the objects such as buttons andtext boxes on them and adding any require support code inadditional modules .

    The advantage of visual basic :

    1- The following key points make visual basic excellent developmenttool. Visual basic applications are event driven .Event driven meansthe user is in control of the application. The user generates a streamof events each time She/he clicks with mouse or press a key onthe keyboard . VB application responds those events through the

    code we have written and attached to those events .

    2- VB supports the principle of object oriented design. This means wecan compartmentalize different aspects of our applications as objectsare developed and test those objects independently of the rest ofapplication. By modifying certain properties and invoking themethods these objects, we can exert a great deal of control overthe users interactions with the VB program that we have written.

    Although VB does not comply with all the concepts and principles behind the object oriented programming .

  • 8/13/2019 College e Eeeeeee

    16/102

    16

    3- Microsoft has designed VB to be a complete windowsapplication development system . In other words VB applicationswill confront to the WIN 98 look and feel without any extra work.

    4 - VB is infinitely extensible to through the use of Active Xcontrols , Dynamically linked libraries(DLLs) , and add - ins with VB

    Followings are the steps for making front-end in VB.

    1. Design and build the user interface.

    2. Write code that responds to events.

    3. Create and call other procedures as needed.

    4. Test and Debug.

    5. Convert to run time versions.

    6. Prepare distributable set of files.

  • 8/13/2019 College e Eeeeeee

    17/102

    17

    Microsoft Office Access, previously known as Microsoft Access, is adatabase management system from Microsoft that combines the relationalMicrosoft Jet Database Engine with a graphical user interface andsoftware-development tools. It is a member of the Microsoft Office suiteof applications, included in the Professional and higher editions or soldseparately. On May 12 2010, the current version of Microsoft Access2010 was released by Microsoft in Office 2010; Microsoft Office Access2007 was the prior version.

    MS Access stores data in its own format based on the Access JetDatabase Engine. It can also import or link directly to data stored inother applications and databases.

    Software developers and data architects can use Microsoft Accessto develop application software, and " power users " can use it to build

    software applications. Like other Office applications, Access is supported by Visual Basic for Applications, an object-oriented programminglanguage that can reference a variety of objects including DAO (DataAccess Objects), ActiveX Data Objects, and many other ActiveXcomponents. Visual objects used in forms and rep orts expose theirmethods and properties in the VBA programming environment, and VBAcode modules may declare and call Windows operating-system functions.

    http://en.wikipedia.org/wiki/Database_management_systemhttp://en.wikipedia.org/wiki/Microsofthttp://en.wikipedia.org/wiki/Microsoft_Jet_Database_Enginehttp://en.wikipedia.org/wiki/Graphical_user_interfacehttp://en.wikipedia.org/wiki/Microsoft_Officehttp://en.wikipedia.org/wiki/Datahttp://en.wikipedia.org/wiki/Software_developerhttp://en.wikipedia.org/wiki/Data_architecthttp://en.wikipedia.org/wiki/Application_softwarehttp://en.wikipedia.org/wiki/Power_usershttp://en.wikipedia.org/wiki/Microsoft_Officehttp://en.wikipedia.org/wiki/Visual_Basic_for_Applicationshttp://en.wikipedia.org/wiki/Object-orientedhttp://en.wikipedia.org/wiki/ActiveXhttp://en.wikipedia.org/wiki/Operating_systemhttp://en.wikipedia.org/wiki/Operating_systemhttp://en.wikipedia.org/wiki/ActiveXhttp://en.wikipedia.org/wiki/Object-orientedhttp://en.wikipedia.org/wiki/Visual_Basic_for_Applicationshttp://en.wikipedia.org/wiki/Microsoft_Officehttp://en.wikipedia.org/wiki/Power_usershttp://en.wikipedia.org/wiki/Application_softwarehttp://en.wikipedia.org/wiki/Data_architecthttp://en.wikipedia.org/wiki/Software_developerhttp://en.wikipedia.org/wiki/Datahttp://en.wikipedia.org/wiki/Microsoft_Officehttp://en.wikipedia.org/wiki/Graphical_user_interfacehttp://en.wikipedia.org/wiki/Microsoft_Jet_Database_Enginehttp://en.wikipedia.org/wiki/Microsofthttp://en.wikipedia.org/wiki/Database_management_system
  • 8/13/2019 College e Eeeeeee

    18/102

    18

    Database technology has been described as one of the most rapidlygrowing areas of computer and information science. As a field, it is stillcomparatively young manufactures and vendors did not begin to offerdatabase management system. Products until well into the 1960. Despiteits youth, however, the field has quickly become one of considerableimportance both practically and theoretically. The total amount of datanow committed to database can be measured, conservatively, in the

    billions of bytes; the financial investment involved in represented by acorrespondingly enormous figure and it is no exaggeration to say thatmany thousands of organization have become critically dependent onthe continued and successful operation of a database system. So, whatexactly is a database system? Basically, it is nothing more than acomputer-based record keeping system that is, a system whose overall

    purpose is to record and maintain information. The informationconcerned can be anything that is deemed to be of significance to the

    organization. The system is serving anything, in other words, that many be necessary to the decision making process involved in the managementof that organization. Information system is one of the oldest and majorcomponents or any organization, since it is directly related to themaintenance of information and data. The size of information grows withsize of organization thus grows the amount of data to be maintained andhence arises the need of computerization in order to save tin and ensureaccuracy and efficiency.

    A collection of inter-related data, stored together without harmful orunnecessary redundancy to serve multiple redundancy.

    Definition of a Database Management System

    A collection of interrelated files and a set of pre-written programs

    that allow user to access and modify these files.

    A software system with capabilities to define data and their attributes,

    establish relationship among data items, manipulate and manage the data.

  • 8/13/2019 College e Eeeeeee

    19/102

    19

    Need of a DBMS

    DBMS is needed in order come the disadvantages of a file-basedsystem, which are as follows

    No integrity checks. Accuracy not possible. Data not secure. Quick retrieval not possible.

    Major function of a DBMS

    Ability to represent inherent data structure. Ease of use. Time related performance enhancement. Minimal cost. Minimal redundancy. Search capability. Data privacy and integrity.

    Compatibility with past. Physical data independence-interface with the future.

    DBMS Usage

    User interface with the DBMS (instead of the data files directly)DBMS acts as the middleman, which control the flow of inf ormation toand from the file

  • 8/13/2019 College e Eeeeeee

    20/102

    20

  • 8/13/2019 College e Eeeeeee

    21/102

    21

    Administrator login

    NO

    YES

    Start

    Input administratorLogin name& Pswd

    Password

    If correct

    College managementsystem

    Manage college

    Stop

    Incorrect

  • 8/13/2019 College e Eeeeeee

    22/102

    22

    Data Flow Diagrams - DFD (also called data flow graphs) arecommonly used during problem analysis. Data Flow Diagrams (DFDs)are quite general and are not limited to problem analysis for softwarerequirements specification. They were in use long before the software

    engineering disciplines begin. DFDs are very useful in understanding asystem and can be effectively used during analysis.

    A DFD shows the flow of data through a system. It viewsa system as a function that transforms the inputs into desired outputs. Anycomplex system will not perform this transformation in a "single step",and a data will typically undergo a series of transformations before it

    becomes the output. The DFD aims to capture the transformations thattake place within a system to the input data so that eventually the outputdata is produced. The agent that performs the transformation of data fromone state to another is called a process (or a bubble). So a DFD shows themovement of data through the different transformation or process in thesystem.

    DFDs are basically of 2 types: Physical and logical ones.Physical DFDs are used in the analysis phase to study the functioning ofthe current system. Logical DFDs are used in the design phase fordepicting the flow of data in proposed system.

    Data Flow Diagrams are composed of the four basic symbols shown below.

    The External Entity symbol represents sources of data to thesystem or destinations of data from the system. The Data Flow symbol represents movement of data.

    The Data Store symbol represents data that is not moving (delayeddata at rest). The Process symbol represents an activity that transforms or

    manipulates the data (combines, reorders, converts, etc.).

  • 8/13/2019 College e Eeeeeee

    23/102

    23

    Any system can be represented at any level of detail by these foursymbols

    External Entities

    External entities determine the system boundary. They are external to thesystem being studied. They are often beyond the area of influence of thedeveloper.

    These can represent another system or subsystem. These go onmargins/edges of data flow diagram. External entities are named withappropriate name .

    Processes

    Processes are work or actions performed on incoming data flows to produce outgoing data flows. These show data transformation or change.Data coming into a process must be "worked on" or transformed in someway. Thus, all processes must have inputs and outputs. In some (rare)cases, data inputs or outputs will only be shown at more detailed levels ofthe diagrams. Each process in always "running" and ready to accept data.

    Major functions of processes are computations and makingdecisions. Each process may have dramatically different timing: yearly,weekly, daily.

  • 8/13/2019 College e Eeeeeee

    24/102

    24

    Naming Processes

    Processes are named with one carefully chosen verb and an object ofthe verb. There is no subject. Name is not to include the word "process".

    Each process should represent one function or action. If there is an"and" in the name, you likely have more than one function (andprocess). For example, get invoice, update customer and create orderProcesses are numbered within the diagram as convenient. Levels ofdetail are shown by decimal notation. For example, top level processwould be Process 14, next level of detail Processes 14.1-14.4, and nextlevel with Processes 14.3.1-14.3.6. Processes should generally movefrom top to bottom and left to right.

    Data Flow

    Data flow represents the input (or output) of data to (or from) a process("data in motion"). Data flow only data, not control. Represent theminimum essential data the process needs. Using only the minimumessential data reduces the dependence between processes. Data flowsmust begin and/or end at a process.

    Data flows are always named. Name is not to include the word "data".Should be given unique names. Names should be some identifying noun.For example, order, payment, complaint.

    Data Stores

    or

    Data Stores are repository for data that are temporarily or permanentlyrecorded within the system. It is an "inventory" of data. These arecommon link between data and process models. Only processes mayconnect with data stores.

  • 8/13/2019 College e Eeeeeee

    25/102

    25

    There can be two or more systems that share a data store. This canoccur in the case of one system updating the data store, while the othersystem only accesses the data. Data stores are named with an appropriatename, not to include the word "file", Names should consist of pluralnouns describing the collection of data. Like customers, orders, and

    products. These may be duplicated. These are detailed in the datadictionary or with data description diagrams.

  • 8/13/2019 College e Eeeeeee

    26/102

    26

    Level 0 DFD

    TEACHER DETAILS

    MANAGER DETAILS

    STUDENTDETAIS

    CMSDATABASE

    ADMINITRAT OR COLLEGEMANAGEMENTSYSTEM

    TEACHER DETAILS

    STUDENT

    DETAILS

  • 8/13/2019 College e Eeeeeee

    27/102

    27

    Level 1 DFD

    VALIDATE VERIFY

    STUDENTDETAILS

    STUDENT INFORMATIONLOGIN

    LOGIN

    ADMINITRATOR

    LOGIN

    COLLEGEMANAGEMENTSYSTEM

  • 8/13/2019 College e Eeeeeee

    28/102

    28

    LEVEL 2DFD

    Student information

    Student view

    Sessional report

    SESSIONAL

    Student attendance view

    Lecture view

    LECTURE ATTENDANCE

    TEACHER

    SESSIONAL

    ATTENDANCE

    PROCESS

    LECTURE

    PROCESS

  • 8/13/2019 College e Eeeeeee

    29/102

    29

    LEVEL 2 DFD

    STUDENT INFORMATION

    STUDENT VIEW

    TEACHER VIEW

    TEACHER VIEWFEES VIEW

    ATTENDANCE VIEW

    STUDENT FEESSTUDENT ATTENDANCE

    STUDENT

    INFORMATION

    TEACHER

    INFORMATION

    STUDENT

    ATTENDANCE

    STUDENT FEES

    ADMINISTER

  • 8/13/2019 College e Eeeeeee

    30/102

    30

    This Project on COLLEGE MANAGEMENR SYSTEM has been made in order to give a generalized over view of role of

    computer in COLLEGE MANAGEMENT SYSTEM .

    I had designed my project in such a manner,which fulfills the requirements that I had tried to keep it asversatile possible giving all sorts of reports which aregenerally necessary for a College management System.

    The Limitation Of this project:-

    1. My project can t accept fees through credit card.

    This project can contain the printing facility of reports.

    .

  • 8/13/2019 College e Eeeeeee

    31/102

    31

  • 8/13/2019 College e Eeeeeee

    32/102

    32

    LOGIN: Table

    S.NO. Field Name Data Type 1 username Text 2 password text

    STUDENT DETAILS: Table

    S.NO Field Name Data Type1. UN_ID Number2. STU_NAME Text3. ROLL_NO Number4. BRANCH Text5. YEAR Text6. DATE_OF_ADMISSION Date/Time7. DATE_OF_BIRTH Date/Time8. CONTACT_NO Number9. EMAIL_ID Text10. ADDRESS Text11. GENDER Text12. FATHERS_NAME Text13. TOTAL ATTENDANCE Number

  • 8/13/2019 College e Eeeeeee

    33/102

    33

    PARENTS DETAILS: Table

    S.NO Field Name Data Type1. Data Type Number2. STU_NAME Text3. FATHERS_NAME Text4. FATHERS_QULIFICATION Text5. FATHERS_OCCUPATION Text6. MOTHERS_NAME Text7. MOTHERS_QULIFICATION Text8. MOTHERS_OCCUPATION Text9. ADDRESS Text

    STUDENT FEES: Table

    S.NO Field Name Data Type1. UN_ID Number2. STU_NAME Text3. TOTAL_FEES Currency4. DATE Date/Time5. DEPOSITE_FEES Currency6. DUE_FEES Currency7. YEAR Text

    STUDENT ATTENDANCE: Table

    S.NO Field Name Data Type

    1. UN_ID Number2. STU_NAME Text3. FATHERS_NAME Text4. MONTH Text5. LECTURE Number6. STU_ATTENDANCE Number

  • 8/13/2019 College e Eeeeeee

    34/102

    34

    TEACHER INFORMATION: Table

    S.NO Field Name Data Type1. NAME QUALIFIICATION Text2. QUALIFICATION Text3. ADDRESS Text4. DEPARTMENT_TEACHER Text5. DATE_OF_JOINING Date/Time6. POST Text

    SESSIONAL: Table

    S.NO Field Name Data Type 1. SESSION Text2. SUBJECT Text3. BRANCH Text4. YEAR Text5. UN_ID Number6. STU_NAME Text7. FATHERS_NAME Text

    8. ATTENDANCE Number9. PER_ATTENDANCE Number10. MARKS_OF_ATTENDANCE Number11. TEST1(50) Number12. TEST2(50) Number13. HALF_YEARLY(50) Number14. TOTAL_TEST Number14. HOME_MARKS(30) Number15. TOTAL(100) Text16. TOTAL_MARKS(100)

    TEACHER LECTURE: Table

    S.NO Field Name Data Type 1. Month Text2. NO_of_Lect Number3. Subject Text

  • 8/13/2019 College e Eeeeeee

    35/102

    35

    LIBRARY: Table

    S.NO Field Name Data Type 1. BOOK_ID Number

    2. BOOK_NAME Text3. SUBJECT Text4. DEPARTMENT Text5. AUTHOR Text6. PUBLISHER Text7. ISBN Number8. EDITION Text9. BOOK_CONDITION Text10. PRICE Currency

    11. NO_OF_COPY Number

    ISSUE: Table

    S.NO Field Name Data Type 1. BOOK _ID Number 2. BOOK_NAME Text 3. AUTH OR Text 4. SUBJECT Text 5. PRICE Currency 6. UN_ID Number 7. STU_NAME Text 8. DATE Date/Time 9. ISSUE Text 10. ISBN Text

    RETURN BOOK: Table

    S.NO Field Name Data Type 1. UN_ID Number 2. STU_NAME Text 3. BOOK_ID Number 4. BOOK_NAME Text 5. AUTH OR_NAME Text 6. SUBJECT Text 7. DATE Date/Time

  • 8/13/2019 College e Eeeeeee

    36/102

    36

  • 8/13/2019 College e Eeeeeee

    37/102

    37

  • 8/13/2019 College e Eeeeeee

    38/102

    38

    The login form has been designed for user authentication. So that onlythe authenticated person can logged to the system.

  • 8/13/2019 College e Eeeeeee

    39/102

    39

    MDI form has been designed to contains all required menus which perform several task.

  • 8/13/2019 College e Eeeeeee

    40/102

    40

    This form has been designed to changed old password with new password.

  • 8/13/2019 College e Eeeeeee

    41/102

    41

    This form has been designed to insert all relevant information about newSTUDENT.

  • 8/13/2019 College e Eeeeeee

    42/102

    42

    This form has been designed to insert all relevant information about the

    parents of all student.

    .

  • 8/13/2019 College e Eeeeeee

    43/102

    43

    This form has been designed to insert all relevant information of allstudent fees

  • 8/13/2019 College e Eeeeeee

    44/102

    44

    This form has been designed to insert all relevant information of allstudent s attendance.

  • 8/13/2019 College e Eeeeeee

    45/102

    45

    This form has been designed to insert all relevant information of all

    teacher details.

  • 8/13/2019 College e Eeeeeee

    46/102

    46

    This form has been designed to insert all relevant information of allteachers lecture

  • 8/13/2019 College e Eeeeeee

    47/102

    47

    This form has been designed to insert all relevant information of

    sessional details for a particular students according to subject.

  • 8/13/2019 College e Eeeeeee

    48/102

    48

    This form has been designed to insert all information about new books.

  • 8/13/2019 College e Eeeeeee

    49/102

    49

    This form has been designed to insert all information about issue book

    according to book id and student un id

  • 8/13/2019 College e Eeeeeee

    50/102

    50

    This form has been designed to insert all information about return book

    according to student un id and book id.

  • 8/13/2019 College e Eeeeeee

    51/102

    51

    This form has been designed to perform all relevant information about a particular Student.

  • 8/13/2019 College e Eeeeeee

    52/102

    52

    This form has been designed to perform all relevant information about a parents view of a particular student.

  • 8/13/2019 College e Eeeeeee

    53/102

    53

    This form has been designed to perform all relevant information aboutstudent attendance according to student un id.

  • 8/13/2019 College e Eeeeeee

    54/102

    54

    This form has been designed to perform all information about a particular teacher.

  • 8/13/2019 College e Eeeeeee

    55/102

    55

    This form has been designed to perform all information about studentsessional according to a particular subject.

  • 8/13/2019 College e Eeeeeee

    56/102

    56

    This form has been designed to print the sessional report of students.

  • 8/13/2019 College e Eeeeeee

    57/102

    57

  • 8/13/2019 College e Eeeeeee

    58/102

    58

    Dim i As Integer Private Sub ProgressBar1_MouseDown(Button As Integer, Shift Integer,x As Single, y As Single)End Sub Private Sub Timer1_Timer()

    i = i + 1ProgressBar1.Value = ProgressBar1.Value + 1Select Case iCase 1Label8.Caption = "Loading Forms..."Case 5Label8.Caption = "Connecting Database..."Case 12

    Label8.Caption = "Preparing User Inteface..."Case 17Label8.Caption = "Checking Connectivity..."Case 21Label8.Caption = "Preparing Accounts Info..."Case 23Label8.Caption = "Preparations Complete!!!"Timer1.Enabled = FalseUnload MeForm1.Show'frmRed.ShowEnd SelectEnd Sub

  • 8/13/2019 College e Eeeeeee

    59/102

    59

    Private Sub BOOK_ISSUE_Click()Form13.ShowEnd Sub

    Private Sub BOOK_RETUTN_Click()Form17.Show

    End Sub

    Private Sub CHANGEPASSWORD_Click()Form3.ShowEnd Sub

    Private Sub EXIT_Click(Index As Integer)EndEnd Sub

    Private Sub FEEDETAIL_Click()Form5.ShowEnd Sub

    Private Sub LECTURE_DETAILS_Click()

    Form12.ShowEnd Sub

    Private Sub LIBRARY_DETAILS_Click()Form11.ShowEnd Sub

    Private Sub PARENT_VIEW_Click()Form8.ShowEnd Sub

  • 8/13/2019 College e Eeeeeee

    60/102

    60

    Private Sub PARENTS_DETAIL_Click()Form4.ShowEnd Sub

    Private Sub SESSIONAL_Click()Form10.ShowEnd Sub

    Private Sub STU_ATT_Click()Form15.Show

    End Sub

    Private Sub STU_VIEW_Click()Form7.ShowEnd Sub

    Private Sub STUDENT_ATTENDANCE_Click()Form6.ShowEnd Sub

    Private Sub STUDENTDETAIL_Click(Index As Integer)Form2.ShowEnd Sub

    Private Sub SUB_SESSIONAL_Click()

    Form16.ShowEnd Sub

    Private Sub TEACHER_DETAILS_Click()Form9.ShowEnd Sub

    Private Sub TEACHER_VIEW_Click()Form14.ShowEnd Sub

  • 8/13/2019 College e Eeeeeee

    61/102

    61

    Private Sub Command1_Click()If Text1.Text = "" or Text2.Text = "" Then MsgBox "please enter all the details"Else If Adodc1.Recordset.Fields("USER_ID") = Text1.Text And Adodc1.Recordset.Fields("PWD") = Text2.Text Then

    MDI Form1.ShowElse MsgBox "either user ID or password is incorrect"End If End If End Sub

    Private Sub Command2_Click()

    EndEnd Sub Private Sub Timer2_Timer()If Label3.Left = 13450 Then Timer2.Enabled = FalseTimer3.Enabled = TrueElse Label3.Left = Label3.Left + 25End If End Sub

    Private Sub Timer3_Timer()If Label3.Left = 1800 Then Timer3.Enabled = FalseTimer2.Enabled = True

    Else Label3.Left = Label3.Left - 25End If End Sub

  • 8/13/2019 College e Eeeeeee

    62/102

    62

    Private Sub Command1_Click()If Text1.Text = "" or Text2.Text = "" or Text3.Text = "" Then MsgBox "Please enter all details"Else If Text1.Text = Adodc1.Recordset.Fields(0) And Text2.Text =

    Adodc1.Recordset.Fields(1) Then

    Adodc1.Recordset.Fields(1) = Text3.TextAdodc1.Recordset.UpdateAdodc1.Recordset.MoveNextUnload MeLoad Form3Form3.Show

    MsgBox "Password has been changed now"Else MsgBox "Either user name or old password is incorrect"End If End If End Sub

    Private Sub Command2_Click()Text1.Text = ""Text2.Text = ""Text3.Text = ""End Sub

  • 8/13/2019 College e Eeeeeee

    63/102

    63

    Private Sub Calendar1_Click()Dim da As Date da = DateIf Calendar1.object > da ThenA = MsgBox("Future date is not possible", vbInformation, "Date Error")Else If Calendar1.object > da - 5010 Then A = MsgBox("Addmission not possible before 14 year", vbInformation,"Date Error")Else Text5.Text = Calendar1.objectCalendar1.Visible = FalseEnd If End Sub

    Private Sub Calendar2_Click()Dim da As Dateda = DateIf Calendar2.object > da Then A = MsgBox("Future Date is not possible", vbInformation, "Date Error")Else Text4.Text = Calendar2.objectCalendar2.Visible = False

    End If End Sub

    Private Sub Command1_Click()If Text1.Text = "" or Text2.Text = "" or Text3.Text = "" or Combo1.Text= "" or Combo2.Text = "" or Text4.Text = "" or Text5.Text = "" or Text6.Text = "" or Text7.Text = "" or Text8.Text = "" Then MsgBox "Please fill all details"Else Adodc1.Recordset.AddNewAdodc1.Recordset.Fields(0).Value = Text1.Text

  • 8/13/2019 College e Eeeeeee

    64/102

    64

    ' for parent detail insertionAdodc2.Recordset.AddNewAdodc2.Recordset.Fields(0).Value = Text1.TextAdodc2.Recordset.Fields(1).Value = Text2.TextAdodc2.Recordset.Fields(2).Value = Text9.Text'*************************'for student feesAdodc3.Recordset.AddNewAdodc3.Recordset.Fields(0).Value = Text1.TextAdodc3.Recordset.Fields(1).Value = Text2.Text'*************************

    'for student attendanceAdodc4.Recordset.AddNewAdodc4.Recordset.Fields(0).Value = Text1.TextAdodc4.Recordset.Fields(1).Value = Text2.Text'for main tableAdodc1.Recordset.Fields(1).Value = UCase$(Text2.Text)'roll no is number in databaseAdodc1.Recordset.Fields(2).Value = Text3.TextAdodc1.Recordset.Fields(3).Value = UCase$(Combo1.Text)Adodc1.Recordset.Fields(4).Value = Combo2.TextAdodc1.Recordset.Fields(5).Value = Text4.TextAdodc1.Recordset.Fields(6).Value = UCase$(Text5.Text)Adodc1.Recordset.Fields(7).Value = UCase$(Text6.Text)Adodc1.Recordset.Fields(8).Value = UCase$(Text7.Text)Adodc1.Recordset.Fields(9).Value = UCase$(Text8.Text)

    Adodc1.Rec ordset.Fields(11).Value = UCase$(Text9.Text)If Option1.Value = True Then Adodc1.Recordset.Fields(10).Value = Option1.CaptionElse If Option2.Value = True ThenAdodc1.Recordset.Fields(10).Value = Option2.CaptionEnd If Adodc1.Recordset.UpdateMsgBox "YOUR DATA INSERTED SUCCESSFULLY"Unload MeLoad Form2

  • 8/13/2019 College e Eeeeeee

    65/102

    65

    Form2.ShowEnd If End Sub

    Private Sub Command2_Click()EndEnd Sub Private Sub Command3_Click()Form4.ShowEnd Sub

    Private Sub Form_Load()RandomNumbersText1.Text = NumbersCombo1.ListIndex = 0Combo2.ListIndex = 0Combo1.Text = "select"End Sub ***************************'for change name Private Sub Text2_Change()Adodc1.RecordSource = "select * from Stu_Info"Adodc1.RefreshWhile Adodc1.Recordset.EOF TrueIf Adodc1.Recordset.Fields(0).Value = Text1.Text ThenRandomNumbers (5)

    Text1.Text = NumbersEnd If Adodc1.Recordset.MoveNextWend End Sub Private Sub Text3_KeyPress(KeyAscii As Integer)If KeyAscii < 48 or KeyAscii > 58 ThenIf KeyAscii = 8 ThenElse KeyAscii = 0

  • 8/13/2019 College e Eeeeeee

    66/102

    66

    MsgBox "It will contain number only"End If End If End Sub

    Private Sub Text4_Click()Calendar2.Visible = TrueCalendar2.Value = DateEnd Sub Private Sub Text5_Click()

    Calendar1.Visible = TrueCalendar1.Value = DateEnd Sub Private Sub Text6_KeyPress(KeyAscii As Integer)If KeyAscii < 48 or KeyAscii > 58 ThenIf KeyAscii = 8 ThenElse KeyAscii = 0MsgBox "It will contain number only"End If End If End Sub

    Private Sub Text6_Change()If Text6.MaxLength = 10 Then

    MsgBox "Please enter correct contact number"End If Text7.Text = ""Text6.SetFocusEnd Sub

  • 8/13/2019 College e Eeeeeee

    67/102

    67

    Private Sub Command1_Click()If Text1.Text = "" or Combo1.Text = "" or Combo2.Text = "" or Text2.Text= "" or DataCombo1.Text = "" or Combo3.Text = "" or Text3.Text = "" or Combo4.Text = "" or Text4.Text = "" Then MsgBox "please enter parents details"

    Else Adodc2.RecordSource = "select * from Parents_details"Adodc2.RefreshWhile Adodc2.Recordset.EOF TrueIf Adodc2.Recordset.Fields("UN_ID").Value = DataCombo1.Text AndAdodc2.Recordset.Fields("MOTHERS_NAME").Value = Text3.Text ThenMsgBox " Already ADDED"MsgBox "Please try another"Unload MeLoad Form4Form4.ShowExit SubEnd If Adodc2.Recordset.MoveNextWend

    Adodc1.RecordSource = "insert into Parents_details where " + Text3.Text= "" + "and UN_ID=" & Val(DataCombo1.Text)Adodc1.Recordset.Fields(5) = Text3.TextAdodc1.Recordset.Fields(3) = Combo1.TextAdodc1.Recordset.Fields(4) = Combo2.TextAdodc1.Recordset.Fields(8) = Text4.TextAdodc1.Recordset.Fields(6) = Combo3.TextAdodc1.Recordset.Fields(7) = Combo4.TextMsgBox "Data inserted successfully"Unload MeLoad Form4

  • 8/13/2019 College e Eeeeeee

    68/102

    68

    Form4.ShowEnd If End Sub

    Private Sub Command2_Click()Text3.Text = ""Text4.Text = ""End Sub

    Private Sub DataCombo1_Click(Area As Integer)Adodc1.RecordSource = "select * from Parents_details where UN_ID=" &

    Val(DataCombo1.Text)Adodc1.RefreshEnd Sub

    Private Sub Form_Load()Combo2.ListIndex = 0Combo4.ListIndex = 0Combo1.ListIndex = 0Combo3.ListIndex = 0End Sub

  • 8/13/2019 College e Eeeeeee

    69/102

    69

    Private Sub Calendar1_Click() Dim da As Dateda = DateIf Calendar1.object > da ThenA = MsgBox("Future Date is not possible", vbInformation, "Date Error")Else

    Text3.Text = Calendar1.objectCalendar1.Visible = FalseEnd If End Sub

    Private Sub Combo1_Click()If Combo1.ListIndex = 0 ThenText2.Text = 10000End If If Combo1.ListIndex = 1 ThenText2.Text = 20000End If If Combo1.ListIndex = 2 ThenPrivate Sub Command1_Click()Text2.Text = 30000

    End If End Sub

    Private Sub Command1_Click()If Text1.Text = "" or Text2.Text = "" or Text3.Text = "" or Text4.Text = ""or Text5.Text = "" or DataCombo1.Text = "" or Combo1.Text = "" Then MsgBox "Please enter all details"Else

    Adodc1.Recordset.Fields(2) = Text2.TextAdodc1.Recordset.Fields(3) = Text3.TextAdodc1.Recordset.Fields(4) = Text4.Text

  • 8/13/2019 College e Eeeeeee

    70/102

    70

    Adodc1.Recordset.Fields(5) = Text5.TextAdodc1.Recordset.Fields(6) = Combo1.TextAdodc1.Recordset.UpdateAdodc1.Recordset.MoveNextUnload MeLoad Form5Form5.ShowMsgBox "Data inserted successfully"End If End Sub

    Private Sub Command2_Click()Text3.Text = ""Text4.Text = ""Text5.Text = ""End Sub

    Private Sub DataCombo1_Click(Area As Integer)Adodc1.RecordSource = "select * from Stu_fees where UN_ID=" &Val(DataCombo1.Text)Adodc1.RefreshEnd Sub

    Private Sub Form_Load()Combo1.ListIndex = 0End Sub

    Private Sub Text2_KeyPress(KeyAscii As Integer)If KeyAscii < 48 or KeyAscii > 58Then If KeyAscii = 8Then Else KeyAscii = 0MsgBox "it will contain number only"End If End If End Sub

  • 8/13/2019 College e Eeeeeee

    71/102

    71

    Private Sub Text3_Click()Calendar1.Visible = TrueCalendar1.Value = DateEnd Sub

    Private Sub Text4_KeyPress(KeyAscii As Integer)If KeyAscii < 48 or KeyAscii > 58Then If KeyAscii = 8Then Else KeyAscii = 0MsgBox "it will contain number only"

    End If End If End Sub

    Private Sub Text4_Change()Text5.Text = Val(Text2.Text) - Val(Text4.Text)End Sub

    Private Sub Text5_KeyPress(KeyAscii As Integer)If KeyAscii < 48 or KeyAscii > 58Then If KeyAscii = 8Then Else KeyAscii = 0MsgBox "it will contain number only"End If

    End If End Sub

  • 8/13/2019 College e Eeeeeee

    72/102

    72

    Private Sub Command1_Click()If DataCombo1.Text = "" or Text1.Text = "" or Text2.Text = "" or Combo1.Text = "" or Combo2.Text = "" or Text3.Text = "" or Text4.Text ="" Then MsgBox "please fill"Else '*******************************************Adodc3.RecordSource = "select * from Stu_att"Adodc3.RefreshWhile Adodc3.Recordset.EOF TrueIf Adodc3.Recordset.Fields(0).Value = DataCombo1.Text And Adodc3.Recordset.Fields(3).Value = Combo1.Text And Adodc3.Recordset.Fields(6).Value = Combo2.Text Then MsgBox "STUDENT ATTENDANCE Already ADDED"

    MsgBox "Please try another"Unload MeLoad Form6Form6.ShowExit SubEnd If Adodc3.Recordset.MoveNextWend Adodc3.Recordset.AddNewAdodc3.Recordset.Fields(0).Value = DataCombo1.TextAdodc3.Recordset.Fields(1).Value = Text1.Text'*********************************************Adodc3.Recordset.Fields(4) = Text2.TextAdodc3.Recordset.Fields(2) = Text4.TextAdodc3.Recordset.Fields(3) = Combo1.Text

    Adodc3.Recordset.Fields(5) = Text3.TextAdodc3.Recordset.Fields(6) = Combo2.TextAdodc3.Recordset.UpdateMsgBox "RECORD ADDED successfully"

  • 8/13/2019 College e Eeeeeee

    73/102

    73

    s1 = " Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\COLLGEMNG\STUDENT.mdb;Persist Security Info=False;Jet OLEDB:DatabasePassword=cms"A.Open s1, "", ""

    A.CloseUnload MeLoad Form6Form6.ShowEnd If End Sub

    Private Sub Command2_Click()Unload MeLoad Form6Form6.ShowEndEnd Sub

    Private Sub DataCombo1_Click(Area As Integer)Adodc1.RecordSource = "select * from Parents_details where UN_ID=" &Val(DataCombo1.Text)Adodc1.RefreshEnd Sub

    Private Sub DataCombo3_Click(Area As Integer)Adodc5.RecordSource = "select * from LEC_table where Subject='" &

    (DataCombo3.Text) & "'"Adodc5.RefreshEnd Sub

    Private Sub Text2_KeyPress(KeyAscii As Integer)If KeyAscii < 48 Or KeyAscii > 58Then If KeyAscii = 8Then Else KeyAscii = 0

  • 8/13/2019 College e Eeeeeee

    74/102

    74

    MsgBox "It will contain number only"End If End If End Sub

    Private Sub Text3_Change()If Val(Text2.Text) > 31 Then MsgBox "TOTAL ATTENDANCE CAN NOT BE GREATER THAN 31"Text2.Text = ""Text3.Text = ""Text2.SetFocus

    End If If Val(Text3.Text) > Val(Text2.Text) Then MsgBox "Student Attendance ERROR"Text3.Text = ""End If End Sub

    Private Sub Text3_KeyPress(KeyAscii As Integer)If KeyAscii < 48 Or KeyAscii > 58Then If KeyAscii = 8ThenElse KeyAscii = 0MsgBox "It will contain number only"End If End If

    End Sub

  • 8/13/2019 College e Eeeeeee

    75/102

    75

    Private Sub Calendar1_Click()Dim da As Date da = DateIf Calendar1.object > da Then A = MsgBox("Future Admission not possible", vbInformation, "DateError")' Else If Calendar1.Object < da - 7 Then'a = MsgBox("Purchase Date should be within 7 days", vbInformation,"Date Error")Else Text4.Text = Calendar1.objectCalendar1.Visible = FalseEnd If End Sub

    Private Sub Command1_Click()If Text1.Text = "" Or Text2.Text = "" Or Text3.Text = "" Or Text4.Text ="" Or Combo1.Text = "" Or Combo2.Text = "" ThenMsgBox "Please fill inf ormation"Else Adodc1.Recordset.AddNewAdodc1.Recordset.Fields(0) = Text1.Text

    Adodc1.Recordset.Fields(1) = Text2.TextAdodc1.Recordset.Fields(2) = Text3.TextAdodc1.Recordset.Fields(3) = Combo1.TextAdodc1.Recordset.Fields(4) = Text4.TextAdodc1.Recordset.Fields(5) = Combo2.TextAdodc1.Recordset.UpdateAdodc1.Recordset.MoveNextUnload MeLoad Form9Form9.Show

  • 8/13/2019 College e Eeeeeee

    76/102

    76

    MsgBox "Data inserted successfully"End If End Sub

    Private Sub Command2_Click()Text1.Text = ""Text2.Text = ""Text3.Text = ""Text4.Text = ""Combo1.Text = ""

    Combo2.Text = ""End Sub

    Private Sub Command3_Click()EndEnd Sub

    Private Sub Form_Load()Combo1.ListIndex = 0Combo2.ListIndex = 0End Sub

    Private Sub Text4_Click()Calendar1.Visible = TrueCalendar1.Value = Date

    End Sub

  • 8/13/2019 College e Eeeeeee

    77/102

    77

    Private Sub Command1_Click()If Text1.Text = "" Or Combo1.Text = "" Or Combo2.Text = "" Then MsgBox "Please data insert"Else '************************************Adodc1.RecordSource = "select * from LEC_table"Adodc1.RefreshWhile Adodc1.Recordset.EOF TrueIf Adodc1.Recordset.Fields(0).Value = Combo1.Text AndAdodc1.Recordset.Fields(2).Value = Combo2.Text ThenMsgBox "STUDENT ATTENDANCE Already ADDED"MsgBox "Please try another"Unload MeLoad form12

    Form12.Show

    Exit SubEnd If Adodc1.Recordset.MoveNextWend

    Adodc1.Recordset.AddNewAdodc1.Recordset.Fields(0) = Combo1.TextAdodc1.Recordset.Fields(1) = Text1.TextAdodc1.Recordset.Fields(2) = Combo2.TextAdodc1.Recordset.UpdateAdodc1.Recordset.MoveNextMsgBox "Data inserted successfully"Unload MeLoad Form12

    Form12.ShowEnd If End Sub

  • 8/13/2019 College e Eeeeeee

    78/102

    78

    Private Sub Command2_Click()Adodc2.RecordSource = "select SUM(NO_of_Lect) from LEC_tablewhere Subject='" + Combo2.Text + "' "Adodc2.RefreshText2.DataField = "expr1000"End Sub

    Private Sub Form_Load()Combo1.ListIndex = 0Combo2.ListIndex = 0

    End Sub

    Private Sub Text1_Change()If Val(Text1.Text) > 31 Then MsgBox "TOTAL LECTURE CAN NOT BE GREATER THAN 31"Text1.Text = ""End If End Sub

    Private Sub Text1_KeyPress(KeyAscii As Integer)If KeyAscii < 48 Or KeyAscii > 58Then If KeyAscii = 8ThenElse KeyAscii = 0MsgBox "It will contain number only"

    End If End If End Sub

  • 8/13/2019 College e Eeeeeee

    79/102

    79

    Dim A As New ADODB.Connection Dim s1 As String Private Sub COMMAND4_CLICK()Combo1.Text = ""Text7.Text = ""Text8.Text = ""Text9.Text = ""

    Text11.Text = ""End Sub

    Private Sub Command1_Click()If Combo1.Text = "" or Text15.Text = "" or Text16.Text = "" or DataCombo1.Text = "" or Text1.Text = "" or Text2.Text = "" or Text3.Text = "" or Text5.Text = "" or Text6.Text = "" or Text7.Text = ""or Text8.Text = "" or Text9.Text = "" or Text10.Text = "" or Text11.Text= "" or Text12.Text = "" or Text13.Text = "" or Text14.Text = "" Then MsgBox "Please fill all details", vbInformation, "college managementsystem"Else '**************************************************Adodc1.RecordSource = "select * from Sessional"Adodc1.Refresh

    While Adodc1.Recordset.EOF TrueIf Adodc1.Recordset.Fields(4).Value = DataCombo1.Text And

    Adodc1.Recordset.Fields(1).Value = Combo2.Text Then MsgBox "STUDENT Sessional for this subject Already ADDED"MsgBox "Please try another"Unload MeLoad Form10Form10.ShowExit SubEnd If

  • 8/13/2019 College e Eeeeeee

    80/102

    80

    Adodc1.Recordset.MoveNextWend

    '*************************************************Adodc1.Recordset.AddNewAdodc1.Recordset.Fields(0).Value = Combo1.TextAdodc1.Recordset.Fields(1).Value = Combo2.TextAdodc1.Recordset.Fields(3).Value = Text15.TextAdodc1.Recordset.Fields(2).Value = Text16.TextAdodc1.Recordset.Fields(4).Value = DataCombo1.TextAdodc1.Recordset.Fields(5).Value = UCase$(Text1.Text)Adodc1.Recordset.Fields(6).Value = UCase$(Text2.Text

    Adodc1.Recordset.Fields(7).Value = UCase$(Text3.Text)Adodc1.Recordset.Fields(8).Value = UCase$(Text14.Text)Adodc1.Recordset.Fields(9).Value = UCase$(Text5.Text)Adodc1.Recordset.Fields(10).Value = UCase$(Text6.Text)Adodc1.Recordset.Fields(11).Value = UCase$(Text7.Text)Adodc1.Recordset.Fields(12).Value = UCase$(Text8.Text)Adodc1.Recordset.Fields(13).Value = UCase$(Text9.Text)Adodc1.Recordset.Fields(14).Value = UCase$(Text10.Text)Adodc1.Recordset.Fields(15).Value = UCase$(Text11.Text)Adodc1.Recordset.Fields(16).Value = UCase$(Text12.Text)Adodc1.Recordset.Fields(17).Value = UCase$(Text13.Text)Adodc1.Recordset.UpdateMsgBox "YOUR DATA INSERTED SUCCESSFULLY"Unload MeLoad Form10

    Form10.ShowEnd If End Sub

    Private Sub Command2_Click()EndEnd Sub

  • 8/13/2019 College e Eeeeeee

    81/102

    81

    Private Sub Command3_Click()Form16.ShowEnd Sub

    Private Sub DataCombo1_Click(Area As Integer)Adodc4.RecordSource = "select * from Stu_Info where UN_ID=" &Val(DataCombo1.Text)Adodc4.RefreshFrame3.Visible = TrueEnd Sub

    Private Sub combo2_click()Adodc5.RecordSource = "select SUM(NO_of_Lect) from LEC_tablewhere Subject='" + Combo2.Text + "' "Adodc5.RefreshText3.DataField = "expr1000"Text3.Visible = True

    Adodc6.RecordSource = "select SUM(STU_ATTENDANCE) from Stu_attwhere Subject='" + Combo2.Text + "' and UN_ID=" &Val(DataCombo1.Text) & ""Adodc6.RefreshText14.DataField = "expr1000"Frame1.Visible = TrueEnd Sub

    Private Sub Form_Load()Text14.Text = 0Text3.Text = 0End Sub

    Private Sub Text11_KeyPress(KeyAscii As Integer)If KeyAscii < 48 Or KeyAscii > 58Then If KeyAscii = 8ThenElse

  • 8/13/2019 College e Eeeeeee

    82/102

    82

    KeyAscii = 0MsgBox "It will contain number only"End If End If End Sub

    Private Sub Text12_Change()Text13.Text = Val(Text12.Text) / 10End Sub Private Sub Text14_Change()Text5.Text = (Val(Text14.Text) / Val(Text3.Text)) * 100

    End Sub

    Private Sub Text7_KeyPress(KeyAscii As Integer)If KeyAscii < 48 Or KeyAscii > 58Then If KeyAscii = 8Then Else KeyAscii = 0MsgBox "It will contain number only"End If End If End Sub

    Private Sub Text7_Change()If Val(Text7.Text) > 50 Then MsgBox "TOTAL MARKS CAN NOT BE GREATER THAN 50"

    Text7.Text = ""End If End Sub

    Private Sub Text8_Change()If Val(Text8.Text) > 50 Then MsgBox "TOTAL MARKS CAN NOT BE GREATER THAN 50"Text8.Text = ""End If End Sub

  • 8/13/2019 College e Eeeeeee

    83/102

    83

    Private Sub Text8_KeyPress(KeyAscii As Integer)If KeyAscii < 48 Or KeyAscii > 58Then If KeyAscii = 8ThenElse KeyAscii = 0MsgBox "It will contain number only"End If End If End Sub

    Private Sub Text9_Change()

    Text10.Text = (Val(Text7.Text) + Val(Text8.Text) + Val(Text9.Text)) / 3If Val(Text9.Text) > 50 Then MsgBox "TOTAL MARKS CAN NOT BE GREATER THAN 50"Text9.Text = ""End If End Sub

    Private Sub Text11_Change()Text12.Text = Val(Text6.Text) + Val(Text7.Text) + Val(Text8.Text)If Val(Text11.Text) > 30 Then MsgBox "TOTAL MARKS CAN NOT BE GREATER THAN 30"Text11.Text = ""End If End Sub

    Private Sub Text5_Change()Text6.Text = (Val(Text5.Text) * 20) / 100End Sub

  • 8/13/2019 College e Eeeeeee

    84/102

    84

    Private Sub Text9_KeyPress(KeyAscii As Integer)If KeyAscii < 48 Or KeyAscii > 58ThenIf KeyAscii = 8Then Else KeyAscii = 0MsgBox "It will contain number only"End If End If End Sub

  • 8/13/2019 College e Eeeeeee

    85/102

    85

    Private Sub Command1_Click()If Text1.Text = "" or Text2.Text = "" or Text3.Text = "" or Text5.Text = ""or Text6.Text = "" or Text7.Text = "" or Text8.Text = "" or Combo2.Text= "" or Combo1.Text = "" or Text9.Text = "" Then MsgBox "Please insert all details"

    Else Adodc1.Recordset.AddNewAdodc1.Recordset.Fields(0) = UCase$(Text1.Text)Adodc1.Recordset.Fields(1) = UCase$(Text5.Text)Adodc1.Recordset.Fields(2) = UCase$(Text2.Text)Adodc1.Recordset.Fields(3) = UCase$(Combo2.Text)Adodc1.Recordset.Fields(4) = UCase$(Text3.Text)Adodc1.Recordset.Fields(5) = UCase$(Text6.Text)

    Adodc1.Recordset.Fields(6) = UCase$(Text7.Text)Adodc1.Recordset.Fields(7) = UCase$(Combo1.Text)Adodc1.Recordset.Fields(8) = Text8.TextAdodc1.Recordset.Fields(9) = Text9.TextAdodc1.Recordset.UpdateAdodc1.Recordset.MoveNextUnload MeLoad Form11

    Form11.ShowMsgBox "Data inserted successfully"End If End Sub

  • 8/13/2019 College e Eeeeeee

    86/102

    86

    Private Sub Command2_Click()Text1.Text = ""Text2.Text = ""Text3.Text = ""Text5.Text = ""Text6.Text = ""Text7.Text = ""Text8.Text = ""Text9.Text = ""End Sub

    Private Sub Command3_Click()EndEnd Sub

    Private Sub Form_Load()RandomNumbers (6)Text1.Text = NumbersCombo1.ListIndex = 0Combo2.ListIndex = 0End Sub

    Private Sub Text2_Change()Adodc1.RecordSource = "select * from Library"Adodc1.RefreshWhile Adodc1.Recordset.EOF True

    If Adodc1.Recordset.Fields(0).Value = Text1.Text Then

    RandomNumbers (6)Text1.Text = NumbersEnd If Adodc1.Recordset.MoveNextWend End Sub

  • 8/13/2019 College e Eeeeeee

    87/102

    87

    Private Sub Text8_KeyPress(KeyAscii As Integer)If KeyAscii < 48 or KeyAscii > 58Then If KeyAscii = 8Then Else KeyAscii = 0MsgBox "It will contain number only"End If End If End Sub

    Private Sub Text9_KeyPress(KeyAscii As Integer)

    If KeyAscii < 48 or KeyAscii > 58Then If KeyAscii = 8Then Else KeyAscii = 0MsgBox "It will contain number only"End If End If End Sub

  • 8/13/2019 College e Eeeeeee

    88/102

    88

    Dim A As New ADODB.ConnectionDim b As New ADODB.Recordset Dim s As String Dim s1 As String Private Sub Command1_Click()If Text1.Text = "" or Text2.Text = "" or Text3.Text = "" or Text4.Text = ""or Text5.Text = "" or Text7.Text = "" or Text8.Text = "" or Text9.Text = ""

    or DataCombo1.Text = "" or DataCombo2.Text = "" ThenMsgBox "Please enter all details"Else Adodc1.Recordset.AddNewAdodc1.Recordset.Fields(0) = DataCombo1.TextAdodc1.Recordset.Fields(1) = Text1.TextAdodc1.Recordset.Fields(2) = Text2.TextAdodc1.Rec ordset.Fields(3) = Text3.TextAdodc1.Recordset.Fields(4) = Text4.TextAdodc1.Recordset.Fields(5) = DataCombo2.TextAdodc1.Recordset.Fields(6) = Text5.TextAdodc1.Recordset.Fields(7) = Text7.TextAdodc1.Recordset.Fields(8) = Text8.TextAdodc1.Recordset.Fields(9) = Text9.TextAdodc1.Recordset.Update

    Adodc1.Recordset.MoveNext'***************************************If Val(Text6.Text) > 0 And (Val(Text8.Text)

  • 8/13/2019 College e Eeeeeee

    89/102

    89

    MsgBox "Book Issued to & text5.text & "A.CloseElse MsgBox "Book Copies is not available in library"End If '***************************************Unload MeLoad Form13Form13.ShowEnd If End Sub

    Private Sub Command2_Click()Unload MeForm17.ShowEnd Sub

    Private Sub DataCombo1_Click(Area As Integer)Adodc4.RecordSource = "select * from Library where BOOK_ID=" &Val(DataCombo1.Text)Adodc4.RefreshEnd Sub

    Private Sub DataCombo2_Click(Area As Integer)Adodc5.RecordSource = "select * from Stu_Info where UN_ID=" &Val(DataCombo2.Text)

    Adodc5.RefreshEnd Sub

    Private Sub Form_Load()Text7.Text = DateEnd Sub

  • 8/13/2019 College e Eeeeeee

    90/102

    90

    Private Sub Text4_KeyPress(KeyAscii As Integer)If KeyAscii < 48 Or KeyAscii > 58Then If KeyAscii = 8Then Else KeyAscii = 0MsgBox "It will contain number only"End If End If End Sub

    Private Sub Text6_KeyPress(KeyAscii As Integer)

    If KeyAscii < 48 Or KeyAscii > 58ThenIf KeyAscii = 8ThenElse KeyAscii = 0MsgBox "It will contain number only"End If End If End Sub

  • 8/13/2019 College e Eeeeeee

    91/102

    91

    Dim A As New ADODB.Connection Dim b As New ADODB.Connection Dim s As String Dim s1 As String Dim r As Integer

    Private Sub Combo1_Click()If Combo1.ListIndex = 0 Then r = 1Text5.Text = rElse If Combo1.ListIndex = 1 Then r = 0Text5.Text = rEnd If

    End Sub

    Private Sub Command1_Click()If Combo1.ListIndex = 0 Thens1 = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\COLLGEMNG\STUDENT.mdb;Persist Security Info=False;Jet OLEDB:DatabasePassword=cms"

    A.Open s1, "", ""A.Execute "update Library set NO_OF_COPY= NO_OF_COPY + " &Val(Text5.Text) & " where BOOK_ID=" & Val(Text1.Text)MsgBox "Book RETURNED to LIBRARY "A.Close'****************************************************'for insertionAdodc1.Recordset.AddNew

    Adodc1.Recordset.Fields(0) = DataCombo1.TextAdodc1.Recordset.Fields(1) = Text6.TextAdodc1.Recordset.Fields(2) = Text1.Text

  • 8/13/2019 College e Eeeeeee

    92/102

    92

    Adodc1.Recordset.Fields(3) = Text2.TextAdodc1.Recordset.Fields(4) = Text3.TextAdodc1.Recordset.Fields(5) = Text4.TextAdodc1.Recordset.Fields(6) = Text7.TextAdodc1.Recordset.UpdateAdodc1.Recordset.MoveNext'**************************************************s = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\COLLGEMNG\STUDENT.mdb;Persist Security Info=False;Jet OLEDB:DatabasePassword=cms"b.Open s, "", ""

    b.Execute "delete from Book_issue where UN_ID=" &Val(DataCombo1.Text) & " And BOOK_ID = " & Val(Text1.Text)MsgBox "COmpleted successfully "b.CloseUnload MeForm17.Show'**************************************************Else MsgBox "BOOK IS NOT RETURNED TILL NOOW"End If End Sub

    Private Sub Command2_Click()Adodc2.RecordSource = "Select * from Book_issue where UN_ID=" &Val(DataCombo1.Text) & " And BOOK_ID = " & Val(Text1.Text)

    Adodc2.RefreshIf Adodc2.Recordset.BOF = True Then A = MsgBox("No Record Selected", vbInformation + vbOKOnly, "SaleEntry")Unload MeForm17.ShowElse Text6.Text = Adodc2.Recordset.Fields(6)Text2.Text = Adodc2.Recordset.Fields(1)

  • 8/13/2019 College e Eeeeeee

    93/102

    93

    Text3.Text = Adodc2.Recordset.Fields(2)Text4.Text = Adodc2.Recordset.Fields(3)End If End Sub

    Private Sub DataCombo1_Click(Area As Integer)Adodc3.RecordSource = "select * from Book_issue where UN_ID=" &Val(DataCombo1.Text)Adodc3.RefreshEnd Sub

    Private Sub Form_Load()Text7.Text = DateCombo1.ListIndex = 0End Sub

    Private Sub Text1_KeyPress(KeyAscii As Integer)If KeyAscii < 48 Or KeyAscii > 58Then If KeyAscii = 8Then Else KeyAscii = 0MsgBox "It will contain number only"End If End If End Sub

  • 8/13/2019 College e Eeeeeee

    94/102

    94

    Private Sub Command1_Click()Adodc1.RecordSource = "select * from Stu_att where UN_ID= " &Val(DataCombo1.Text)DataGrid1.Visible = TrueAdodc1.RefreshAdodc1.Caption = Adodc1.RecordSource

    End Sub

  • 8/13/2019 College e Eeeeeee

    95/102

    95

    Private Sub Command1_Click()Adodc1.RecordSource = "select * from Parents_details where UN_ID = "& Val(Text1.Text)DataGrid1.Visible = TrueAdodc1.RefreshAdodc1.Caption = Adodc1.RecordSource

    End Sub

  • 8/13/2019 College e Eeeeeee

    96/102

    96

    Private Sub Command1_Click()Adodc1.RecordSource = "select * from Stu_att where UN_ID= " &Val(DataCombo1.Text)DataGrid1.Visible = True

    Adodc1.RefreshAdodc1.Caption = Adodc1.RecordSourceEnd Sub

  • 8/13/2019 College e Eeeeeee

    97/102

    97

    Private Sub Command1_Click()Adodc1.RecordSource = "select * from Teacher_Info where NAME= '"& (Text1.Text) & " '"DataGrid1.Visible = TrueAdodc1.RefreshAdodc1.Caption = Adodc1.RecordSourceEnd Sub

  • 8/13/2019 College e Eeeeeee

    98/102

    98

    Dim A As New ADODB.ConnectionDim s1 As String Private Sub Command1_Click()Adodc1.RecordSource = "Select * from Sessional where SUBJECT='" &(Combo1.Text) & "'"Adodc1.Refresh

    Adodc1.Caption = Adodc1.RecordSourceAdodc1.RefreshIf Adodc1.Recordset.BOF = True Then A = MsgBox("No Record Selected", vbInformation + vbOKOnly, "SaleEntry")Else Adodc1.Recordset.MoveFirstWhile Adodc1.Recordset.EOF TrueAdodc2.Recordset.AddNewAdodc2.Recordset.Fields(0) = Adodc1.Recordset.Fields(0)Adodc2.Recordset.Fields(1) = Adodc1.Recordset.Fields(1)Adodc2.Recordset.Fields(2) = Adodc1.Recordset.Fields(2)Adodc2.Recordset.Fields(3) = Adodc1.Recordset.Fields(3)Adodc2.Recordset.Fields(4) = Adodc1.Recordset.Fields(4)Adodc2.Recordset.Fields(5) = Adodc1.Recordset.Fields(5)

    Adodc2.Recordset.Fields(6) = Adodc1.Recordset.Fields(6)Adodc2.Recordset.Fields(7) = Adodc1.Recordset.Fields(7)Adodc2.Recordset.Fields(8) = Adodc1.Recordset.Fields(8)Adodc2.Recordset.Fields(9) = Adodc1.Recordset.Fields(9)Adodc2.Recordset.Fields(10) = Adodc1.Recordset.Fields(10)Adodc2.Recordset.Fields(11) = Adodc1.Recordset.Fields(11)Adodc2.Recordset.Fields(12) = Adodc1.Recordset.Fields(12)Adodc2.Recordset.Fields(13) = Adodc1.Recordset.Fields(13)Adodc2.Recordset.Fields(14) = Adodc1.Recordset.Fields(14)Adodc2.Recordset.Fields(15) = Adodc1.Recordset.Fields(15)Adodc2.Recordset.Fields(16) = Adodc1.Recordset.Fields(16)

  • 8/13/2019 College e Eeeeeee

    99/102

    99

    Adodc2.Recordset.Fields(17) = Adodc1.Recordset.Fields(17)Adodc2.Recordset.UpdateAdodc1.Recordset.MoveNextWend A = MsgBox("Record Save", vbInformation + vbOKOnly, "Sale Entry")Command3.Visible = TrueEnd If End Sub

    Private Sub Command2_Click()If Adodc1.Recordset.BOF = True Then

    A = MsgBox("No Record Selected", vbInformation + vbOKOnly, "SaleEntry")Else Adodc1.Recordset.MoveFirstWhile Adodc1.Recordset.EOF TrueAdodc2.Recordset.AddNewAdodc2.Recordset.Fields(0) = Adodc1.Recordset.Fields(0)Adodc2.Recordset.Fields(1) = Adodc1.Recordset.Fields(1)Adodc2.Recordset.Fields(2) = Adodc1.Recordset.Fields(2)Adodc2.Recordset.Fields(3) = Adodc1.Recordset.Fields(3)Adodc2.Recordset.Fields(4) = Adodc1.Recordset.Fields(4)Adodc2.Recordset.Fields(5) = Adodc1.Recordset.Fields(5)Adodc2.Recordset.Fields(6) = Adodc1.Recordset.Fields(6)Adodc2.Recordset.Fields(7) = Adodc1.Recordset.Fields(7)Adodc2.Recordset.Fields(8) = Adodc1.Recordset.Fields(8)

    Adodc2.Recordset.Fields(9) = Adodc1.Recordset.Fields(9)Adodc2.Recordset.Fields(10) = Adodc1.Recordset.Fields(10)Adodc2.Recordset.Fields(11) = Adodc1.Recordset.Fields(11)Adodc2.Recordset.Fields(12) = Adodc1.Recordset.Fields(12)Adodc2.Recordset.Fields(13) = Adodc1.Recordset.Fields(13)Adodc2.Recordset.Fields(14) = Adodc1.Recordset.Fields(14)Adodc2.Recordset.Fields(15) = Adodc1.Recordset.Fields(15)Adodc2.Recordset.Fields(16) = Adodc1.Recordset.Fields(16)Adodc2.Recordset.Fields(17) = Adodc1.Recordset.Fields(17)Adodc2.Recordset.Update

  • 8/13/2019 College e Eeeeeee

    100/102

    100

    Adodc1.Recordset.MoveNextWend A = MsgBox("Record Save", vbInformation + vbOKOnly, "Sale Entry")End If End Sub

    Private Sub Command3_Click()DataReport1.RefreshDataReport1.Shows1 = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=F:\COLLGEMNG\STUDENT.mdb;Persist Security Info=False;Jet OLEDB:Database

    Password=cms"A.Open s1, "", ""A.Execute "delete from Sub_sessional"

    A.CloseUnload MeEnd Sub Private Sub Form_Load()Combo1.ListIndex = 0End Sub

  • 8/13/2019 College e Eeeeeee

    101/102

    101

    After we have completed the project we are sure the problems in theexisting system would overcome. The COLLEGE MANAGEMENTSYSTEM process made computerized to reduce human errors and toincrease the efficiency. The main focus of this project is to lessen human

    efforts. The maintenance of the records is made efficient, as all therecords are stored in the ACCESS database, through which data can beretrieved easily. The navigation control is provided in all the forms tonavigate through the large amount of records. If the numbers of recordsare very large then user has to just type in the search string and user getsthe results immediately. The editing is also made simpler. The user has to

    just type in the required field and press the update button to update thedesired field.

    The Books and Students are given a particular unique id no. So thatthey can be accessed correctly and without errors. Our main aim of the

    project is to get the correct information about a particular student and books available in the library.

    The problems, which existed in the earlier system, have been removedto a large extent. And it is expected that this project will go a long way in

    satisfying users requirements. The computerization of the LibraryManagement will not only improves the efficiency but will also reducehuman stress thereby indirectly improving human recourses.

  • 8/13/2019 College e Eeeeeee

    102/102

    Visual Basic 6.0 : By Gray Cornell

    Guide to Visual Basic 6 : By Peter Norton

    Website : www.w3schools.com

    Website : www.vbtutor.net