This action might not be possible to undo. Are you sure you want to continue?
OF BACHELOR OF COMPUTER APPLICATION
SUBMITTED BY: YASHVEER SINGH ENROLMENT NO:836086 ROLL NO: 802271
SUBMITTED TO MR. PRABHAT RANJAN SHARMA (H.O.D.) Department of computer science UNDER THE SUPERVISION OF MR. MOHIT KUMAR VARSHNEY (Lecturer)
INSTITUTE OF INFORMATIONMANAGMENT & TECHNOLOGY RAMGHAT ROAD, ALIGARH 202001 (AFFILIATED TO DR. B. R. AMBEDKAR UNIVERSITY, AGRA)
INSTITUTE OF INFORMATION MANAGEMENT AND TECHNOLOGY ALIGARH ACKNOWLEDGEMENT
We have great pleasure in acknowledgement the help from al those who favored me in having shape to the present project. We take the responsibility to express our sincere and deep sense of gratitude to our head of department Mr. Prabhat Ranjan Sharma director of our college Mr. D.S. Mahalwar and Dean S.K.N. Singh. Our facility members and all our friends. We pay our thanks to Mr. Mohit Kumar Varshney for providing a great support to us. They guided our project team efficient and good working.
We like to pay our wish and love to our all supporting friends who made their best efforts to help us. Words defeat us in expressing
thanks to our family members for providing moral support and encouragement during the tenure of the project.
We hope and wish to be blessed with the blessing and encouragement from all of the above in our future to accomplish all our endeavors. YASHVEER SINGH (B.C. A. VI Sem)
I Yashveer Singh Roll No. 802271 student of BCA 6 semester in institute of Information Management and technology (IIMT), Aligarh here by declare that the project report titled “BLOOD
DONATION SYSTEM” is not submitted for the award of any other diploma or degree. Place: Date: Name Yashveer Singh Document information: 4 .
Project code Project Name Location Submitted to Under the supervision of Technical Member B.C. PRABHAT RANJAN SHARMA Mr. BLOOD DONATION SYSTEM IIMT Mr. MOHIT KUMAR VARSHNEY YASHVEER SINGH 5 .A.
3) System Interface 3.1) 3.) SYSTEM ANALYSIS 3.2) Opportunities of the system: 3.1) Initial investigation 126.96.36.199.1) User Interface 3.3.2. INTRODUCTION 2. SYSTEM DEVELOPMENT 2.2) Feasibility Study 3.2) 3.3) Technical feasibility Economical feasibility Operational feasibility 3.2) Hardware Interface 6 .Table of contents: 1.1) what is the problem? 3.
4) Communication Interface 3.5) Object Modeling 3.5.6) Dynamic Model 4.) DATABASE TABLE 5.5) Memory Constraints 3.3) Software Interface 3.) CONCLUSION 7 .3.3.) CODING 7.1) Object Modeling 3.4) Problem Statement 3.3.3.) FORM DESIGNING 6.
) FUTURE SCOPE 9.8.) BIBLIOGRAPHY HISTORY OF VISUAL BASIC 8 .
The Ruby interface generator provided the "visual" part of Visual Basic and this was combined with the "EB" Embedded BASIC 9 . under the code name Ruby. Tripod did not include a programming language at all.0. Microsoft decided to combine Ruby with the Basic language to create Visual Basic.0 was introduced in 1991. Microsoft contracted with Cooper and his associates to develop Tripod into a programmable form system for Windows 3.HISTORY OF VISUAL BASIC VB 1. The drag and drop design for creating the user interface is derived from a prototype form generator developed by Alan Cooper and his company called Tripod.
Remote Data Objects. access to databases using Data Access Objects. but perform differently. Programs written in Visual Basic can also use the Windows API. which later became the VBX interface Visual Basic (VB) is the third-generation event-driven programming language and integrated development environment (IDE) from Microsoft for its COM programming model.engine designed for Microsoft's abandoned "Omega" database system. 10 . and creation of ActiveX controls and objects. but doing so requires external function declarations. or ActiveX Data Objects. A programmer can put together an application using the components provided with Visual Basic itself. Visual Basic is relatively easy to learn and use. Ruby also provided the ability to load dynamic link libraries containing additional controls (then called "gizmos"). Visual Basic was derived from BASIC and enables the rapid application development (RAD) of graphical user interface (GUI) applications. Scripting languages such as VBA and VBScript are syntactically similar to Visual Basic.
The programmer designs windows graphically. moves objects on the screen. drags program elements from the Visual Basic Toolbox and writes basic code for each element.Visual Basic is a "visual programming" environment for developing Windows (also Web now) applications. Visual Basic makes it possible to develop complicated applications very quickly. clicks the mouse. 11 . etc. Visual Basic is "event-driven" which means that procedures are called automatically when the end user chooses menu items.
BASIC means Beginners' All-purpose Symbolic Instruction Code. It is a very easy programming language to learn.CHARACTERSTICS OF VISUAL BASIC CHARACTERSTICS OF VISUAL BASIC VISUAL BASIC is a high level programming language which evolved from the earlier DOS version called BASIC. The code look a lot like English 12 .
However. 13 . you have to write program code for each graphical object you wish to display it on screen.IBM BASICA and so on. We also have VB. VB2008 and the latest VB2010. In the old BASIC. including its position and its color. such as Microsoft QBASIC. and you can change its color any time using the properties windows. the most popular one and still widely used by many VB programmers is none other than Visual Basic 6. VISUAL BASIC is a VISUAL and events driven Programming Language. QUICKBASIC. programming is done in a text-only environment and the program is executed sequentially. you just need to drag and drop any graphical object anywhere on the form. people prefer to use Microsoft Visual Basic today. However. In VB. as it is a well developed programming language and supporting resources are available everywhere. Now. GWBASIC . Different software companies produced different versions of BASIC. programming is done in a graphical environment. In BASIC. These are the main divergence from the old BASIC.net. In VB . there are many versions of VB exist in the market.Language. VB2005. Both Vb2008 and VB2010 are fully object oriented programming (OOP) language.
specifying attributes and actions of those components. The language not only allows programmers to create simple GUI applications. Programming in VB is a combination of visually arranging components or controls on a form. Performance problems were experienced by earlier versions. Visual Basic was designed to be easily learned and used by beginner programmers. a VB Program is made up of many subprograms. Since default attributes and actions are defined for the components. but can also develop complex applications. so each object has to be programmed independently to be able to response to those actions (events). and writing additional lines of code for more functionality.On the other hand. because the user may click on a certain object randomly. Therefore. 14 . and each can be executed independently and at the same time each can be linked together in one way or another. but with faster computers and native code compilation this has become less of an issue. a simple program can be created without the programmer having to write many lines of code. each has its own program code. Like the BASIC programming language.
For example. providing a dynamic application. etc.. which can then execute additional code created by the programmer to 15 . Many attribute values can be modified during run time based on user actions or changes in the environment. Default values are provided when the control is created. the program can automatically translate the case of the text being entered. ActiveX controls.g. etc.Forms are created using drag-and-drop techniques. Controls provide the basic functionality of the application. By inserting code into the event handler for a keypress in a text box. Controls have attributes and event handlers associated with them. expands to fill up the form. or DLL files. text boxes. buttons. Dialog boxes with less functionality can be used to provide pop-up capabilities. For example. a drop-down combination box will automatically display its list and allow the user to select any element. code can be inserted into the form resize event handler to reposition a control so that it remains centered on the form. An event handler is called when an item is selected. while programmers can insert additional logic within the appropriate event handlers.) on the form (window). Visual Basic can create executables (EXE files). but is primarily used to develop Windows applications and to interface database systems. but may be changed by the programmer. A tool is used to place controls (e. or even prevent certain characters from being inserted.
such as populating a related list. 1.) INTRODUCTION 16 .perform some action based on which element was selected.
7) ASSUMPTIONS AND DEPENDENCIES: 1.6) CONSTRAINT: 188.8.131.52.1) 1.3) External Interface Requirements: Functional Requirement / System features: Performance / Acceptance Requirements: 1.8) SPECIFIC REQUIREMENTS: 1.4) INTENDED AUDIENCE: 1.8.2) PURPOSE: 1.8.5) USER CHARACTERISTICS: 1.2) 1.4) Acceptance Criteria: 1.9) Software System Attributes: 17 .1.5) Design Constraints: 1.3) SCOPE: 1.
4) Security: 184.108.40.206.3) Maintainability: 1.2) Efficiency: 220.127.116.11) Reliability: 1.6) Performance: 18 .1) Usability: 1.9.1.
INTRODUCTION 1.1. The system is can also provide the reports about current state of the student Information. 19 .5) PURPOSE: The basic purpose of the system is to manage the transaction that occurs during the operation as well as performing calculation and updating database as and when necessary.
Faculty members 3. 2. Management of the college .(more) 1.5) USER CHARACTERISTICS: 20 . Student of the college 1. Administrative staff 4.1.7) INTENDED AUDIENCE: 1. • This project with the slight variations can be enhanced to be used in the other systems which need to manage the quick data processing.6) SCOPE: • The scope of this project is in the various Library that need to manage their data about their transaction and services efficiently and effectively.
8) ASSUMPTIONS AND DEPENDENCIES: 1) 2) Project will work for a long time and user will adopt it. Project will work with very less maintenance requirement. These include: 1) Developers should have Knowledge of Visual Basic to Develop a system Like this. 2) Developers should have known about all the main devices and there Specification. 1.The system requires he user to be familiar with the basic operations of computer.6) CONSTRAINT: This subsection of the Library Information system should describe any other books that will limit the developer’s options. 1. 21 .
and these will be removed easily.8) SPECIFIC REQUIREMENTS: 1. 1. The user of this project is any computer literate person handling the Information of the Library. The developer should be needed only when some problem occurs in the operation of the system.3) The database update made by the system will always leave the system in consistent state.4) External Interface Requirements: No External Interface Requirement 1. which will not affect the system performance.5) Functional Requirement / System features: Preferences This project is based upon Visual Basic user interfaces. 4) There may be some small problems.8.8. 22 .
8.Login Process This system interface is used to give access to the user for the system. 1.8. 2. The project works in its proper and specified way No Major problem. and mean while maintaining the security of th system.4) Acceptance Criteria: 23 . 1. Any problem reported due to requirements not clear.6) Performance / Acceptance Requirements: The project will be accepted if 1. expecting task. “good to have” Features and any enhancements/modification is not part of the system acceptance. suggestions. This means that there is a problem in performing a predefined.
The user will use the system if it is giving the functionality it promises (that is of automatically managing the data about the daily records) 1. 1.5) Design Constraints: 1) Work only in Standard conditions. (Fully efficient in the environments having less memory available and a reasonable speed of execution) 1.1) Usability: The system is fully usable and does not require any pre-specified constraint to work properly.9.9. 1.3) Maintainability: 24 .8.10) Software System Attributes: 1.2) Efficiency: Hardware should me min.9. Pentium with 196 MB RAM.
In case of any change in policies and rule of the institution using the system, required changes will be made to the module written by developer.
Only the super user can enter the system to use it.
System gives accurate result without any errors.
The system itself is quiet fast.
2.) SYSTEM DEVELOPMENT
2.1) Initial investigation 2.2) Opportunities of the system:
2.) SYSTEM DEVELOPMENT
2.1) Initial investigation:
There is a system, which is concerned with the student and their Information that is service and maintaining the record of the students.
2) Opportunities of the system: 28 . It means that some updating of data or the information changes. The problems in paper –based system were: 1) 2) 3) 4) slow and error prone data entry Difficulties in data retrieval Difficulties to manage a long record Calculations are made by human.In this system the data. which is about the student . therefore there is less accuracy in data transaction calculations. maintaining on the paper that is this system is based on paperwork. We will define a transaction as the occurrence due to which the current state of the system changes. 2.
) SYSTEM ANALYSIS 29 . The alternative computer based system can provide many facilities over present paper based system in the following manner. which can perform all the related tasks of business in a better and efficient way. which improve accuracy.The existing system can be replaced by computerbased system. 1) 2) 3) 4) The data entry in a new computer based system will be fast Easy and fast data retrieval Long records can be managed easily Computer does calculations. 3.
3) System Interface 18.104.22.168) Communication Interface 3.2) Feasibility Study 3.5) Object Modeling 3.3.3) Software Interface 3.2.1) what is the problem? 3.4) 3.5) 3.1) User Interface 22.214.171.124.6) Technical feasibility Economical feasibility Operational feasibility 3.5.1) Object Modeling 3.3.6) Dynamic Model 30 .2) Hardware Interface 3.4) Problem Statement 3.5) Memory Constraints 3.3.
To understand the user characteristics Design a system for a particular types of user 3. Design the system to develop the alternative computer based system 2.1. 3.1) What is the problem? In this way we realize that the new system is required and will certainly improve the performance of the exiting system over the exiting paper based system.) SYSTEM ANALYSIS 3.2) Information about student: 31 . 1.3.
Following feasibility analysis of our system are given below 3.1) Technical Feasibility: The key question of the technical feasibility is “can the work for the project be done with current equipment. exiting 32 .There is the following information required to store for student 3.2.2) Feasibility Study: Feasibility study is the most important work of an analyst in which the opportunities of problem solving are considered and it is mainly considered that the problem is solved for the organization or not.
2) Our front end of the computer system is visual Basic which is free of cost and sufficient to provide the user friendly environment. and available personnel? If new technology is required. what is the likelihood that it can be developed? Our system requirement in the direction of technical feasibility is feasible as per following: 1) Our system in run for a single user and it require no more knowledge about computer system and it can be run by the user with having small knowledge of computer. 3) For the back end of computer system as database Microsoft access is chosen that is not free of cost but it is fit in the expenditure of the origination and it can sufficiently manage the database in very efficiently and fast way. 3.2) Economical Feasibility: 33 .2.software technology.
The key question of the economical feasibility is ”Are there sufficient benefits In creating the system to make the costs acceptable? Are the cost of not creating the system so that the project must be undertaken?” Our system requirements in the direction of economical feasibility are feasible as per following: 2) Our system is developed in the Visual Basic which is a free source and available for everyone.3) Operational Feasibility: The key question of the operational feasibility is “Will the system be used if it is developed and 34 .2. 3) The back end used in our system is Microsoft Access that is not free of cost but it is fit in the expenditure of the organization. 3.
3) System Interfaces: 3.implemented? Will there be resistance from users that will undermine the possible application benefits?” Our system requirements in the direction of operational feasibility are feasible as per following: 1) The present system is paper based which have a lot of problems which can be overcome by replacing it by our new system and work with it 2) There may be some problems in the system faced by the user can communicate with the origination to inform the difficulties which will be solved immediately.1) User Interface: 35 . 3.3.
It is a multi user system these are the owner and other workers. (64) MB RAM Key Board Mouse 3. 3. 3.0 Microsoft Access used as back –end to store the database.2 Hardware Interface: Min.3 Software Interface: • • Visual Basic 6. as it will be implemented by easy software.4 Communication Interface: 36 .3. and efficiently.3.3. which can be used effectively.The Library is the system developed for the students to Providing the information’s. The user interface to the system is very easy.
Student will not directly communicate with the computer system but he/she will feel the effect of the computer System over existing paper-based system. (64) MB RAM Min.Verbal communication takes place between the system user (student) and student of the Library. 37 . The communication of user to the computer system will be very easy and user will get correct information. 3.5 Memory Constraints: • • Min. as it will provide fast processing and accurate calculations. 70 KB free hard disk 3.4 Problem Statement: This the very first phase of project development in this phase the user provides his requirements in the form of a problem statement specifying the features of required system.3.
Problem statement of our project is as follows: Design a system that will automate the transaction processing.5) Object Modeling: Object modeling is done by to handle the real life problems in which object and classes are mainly emphasized. This system will be used by single user of the Library information and this should provide for the entries of new student as well as keeping track of what service has been given to student and which of them are available. We insist upon what is being affected rather than what is being done. The sole user of the system will also enter records for the students and their information. This system should provide measures for maintaining the security and should be easy to use. 3. There are three phases of object modeling: 38 .
Students.) A) OBJECTS OF THE SYSTEM There are several objects of our system. Owner. generalization etc. which are given below after refining them and removing all other unnecessary objects. traction etc are our main objects of the system. Library. B) FINDING THE ASSOCIATIONS: 39 .1) Object Modeling: Object modeling is done to find all the objects and relation among them like (association.1) 2) 3) Object Modeling Dynamic modeling Functional Modeling 3. Service.5.
• Following associations are found in this system. • Transaction updates the record. • Library contains the record of the services provided to the Student. • Student returns the issues the books. • Owner issues the service. • Owner clears the record. • Owner initiates the transaction. 3. • Student goes to Library • Library floor has an owner ( they may be only one) • Student requests for the service to the owner • Owner asks information from the Student.6) Dynamic Model: 40 .
A state corresponds to the interval between two events received by an object. Steps taken in dynamic modeling are: Prepare scenarios of typical interaction sequences Identify events between objects Prepare an events trace for each scenario Build a state diagram match events between objects to verify consistency A state is an abstraction of the attribute value and links of an object. The dynamic model is important for interactive systems. A state has duration.Dynamic model show the time dependent behavior of the system and the objects in it. We begin dynamic analysis by looking for events external stimuli and responses. Events represents interval of time. it 41 . A state specifies the response of the object to input events.
A state is draw as a round box containing an optional name. A state is often associated with a continuous activity. a transaction is draw as an arrow from the receiving state to the target state. A state diagram is graph whose nodes are states and whose directed arcs are transitions leveled by event names. 42 .occupies an interval of time.
) FORM DESIGNING 43 .5.
) Coding: 52 .6.
Show Form1.Try Again" txtpassword = "" txtpassword.SetFocus End If End Sub 53 .Coding: FOR FORM-1 FOR PASSWORD:Private Sub command1_Click() If txtpassword = "" Then Form2.Hide Else MsgBox "Sorry!!Invalid Password.
Show End Sub Private Sub mnuexit_Click() End End Sub Private Sub mnunr_Click() Form2.Hide Form5.Hide Form3.Show End Sub Private Sub mnudeleted_Click() Form2.FOR FORM-2C:\Documents and Settings\GARIMA\My Documents\Session 3 Ex-2_files TO SHOW FORM’S:Private Sub mnubgwise_Click() Form2.Show End Sub 54 .Show End Sub Private Sub mnudd_Click() Form2.Hide Form6.Hide Form4.Show End Sub Private Sub mnudu_Click() Form2.Hide frmDeleteDeptt.
Text) rs.Text) rs.Fields("Hall") = UCase$(Combo5.Text) rs.Open strsql.Fields("Address") = UCase$(Text6.Text) rs.Text rs.Recordset rs.Fields("Department") = UCase$(Combo3.AddNew If Not rs.FOR FORM-3 FOR SAVE RECORD:Private Sub command1_Click() On Error GoTo myerror: If text1 = "" Or text2 = "" Or Text3 = "" Or Text4 = "" Or Text5 = "" Or Text6 = "" Or Combo1 = "" Or Combo2 = "" Or Combo3 = "" Or Combo4 = "" Or Combo5 = "" Then MsgBox "Fill up all fields" Exit Sub End If Dim strsql As String strsql = "Select * from registration" Set rs = New ADODB.Fields("Donor ID") = text1.Fields("Name") = UCase$(text2.Fields("Faculty") = UCase$(Combo4. adLockOptimistic If MsgBox(" Are you sure(Y/N)???".Text) 55 . 4) = 7 Then Exit Sub rs.Fields("Phone no") = (Text3.Fields("Blood Group") = UCase$(Combo2. con.Fields("Occupation") = UCase$(Combo1.Text) rs.Text) rs.Text) rs. adOpenForwardOnly.EOF Then rs.Fields("E-mail ID") = (Text4.Text) rs.
Text rs.Text = Clear Combo5.Text = Clear 56 .Text = Clear Text5.SetFocus End Sub FOR BACK:Private Sub Command3_Click() text2.Text = Clear Text3.Text = Clear Combo2.Text = Clear Text4.Text = Clear Combo1.Text = Clear Combo3.Text = Clear Text6.Text = Clear Text3.Update End If rs.rs.Text = Clear text2.Close myerror: Call error End Sub FOR CANCEL:Private Sub command2_Click() text2.Text = Clear Combo4.Text = Clear Text4.Fields("Enrollment no/Employee ID") = Text5.
adLockOptimistic Combo1.SetFocus Form3.Text = Clear Text6.EOF Combo3.AddItem "Student" Combo1.Text = Clear Combo1.Text = Clear Combo2.Text5.Text = Clear text2.oledb.0" con.4.Open App.Fields("Faculty") rs.Text = Clear Combo5.AddItem rs.Open strsql.Path & "\db1.Hide Form2.Text = Clear Combo4.AddItem "Others" While Not rs.jet.Provider = "Microsoft. con.Text = Clear Combo3.Recordset rs.MoveNext 57 .mdb" Dim strsql As String strsql = "Select distinct Faculty from registration" Set rs = New ADODB.connection") con. adOpenForwardOnly.AddItem "Employee" Combo1.Show End Sub FOR DATA LINK:Private Sub Form_Load() On Error GoTo myerror: Set con = CreateObject("Adodb.
MoveNext Wend rs2.Recordset rs2.Close text1. adOpenForwardOnly.MoveNext Wend rs1.Fields("Hall") rs2. con.Wend rs.Enabled = False 'Blood Group setting Combo2.AddItem "O+" Combo2.AddItem "B-" Combo2. con.AddItem "O-" 58 .AddItem rs2.AddItem "A+" Combo2.EOF Combo4.Recordset rs1.AddItem rs1. adLockOptimistic While Not rs2. adOpenForwardOnly.AddItem "A-" Combo2.Fields("Department") rs1.Close Dim strsql1 As String strsql1 = "Select distinct Department from registration" Set rs1 = New ADODB. adLockOptimistic While Not rs1.Open strsql2.Close Dim strsql2 As String strsql2 = "Select distinct Hall from registration" Set rs2 = New ADODB.EOF Combo5.Open strsql1.AddItem "B+" Combo2.
EOF = True Then text1.AddItem "AB+" Combo2.Close myerror: Call error End Sub Private Sub error() If Err.Description) 59 .1)) + 1 ext: rs3. Len(strcode) .Open "registration". adOpenForwardOnly.Combo2.Close End Sub Private Sub Text2_GotFocus() On Error GoTo myerror: Set rs3 = New ADODB.AddItem "AB-" myerror: Call error End Sub Private Sub Form_Unload(Cancel As Integer) con.Text = "D" & 1 GoTo ext: End If rs3.Text = "D" & Val(Mid$(strcode.Fields("Donor ID") text1. adLockOptimistic If rs3.Number <> 0 Then MsgBox ("Error: " & Err.Recordset rs3.MoveLast Dim strcode As String strcode = rs3. con. 2.
adOpenForwardOnly.Open strsql.Text & "'" Set rs = New ADODB.Update("Name") = text2.Update("Address") = Text5.Text rs.Text rs. con.Text rs.Update("Occupation") = Combo1.Connection FOR UPDATION:Private Sub command1_Click() On Error GoTo myerror: If text1 = "" Or text2 = "" Or Text3 = "" Or Text4 = "" Or Text5 = "" Or Text6 = "" Or Combo1 = "" Or Combo2 = "" Or Combo3 = "" Or Combo4 = "" Or Combo5 = "" Then MsgBox "Fill up all fields" Exit Sub End If Dim strsql As String strsql = "Select * from registration where [Donor ID]='" & text1.Exit Sub End If End Sub FOR FORM-4 GENERAL DECLARATION:Dim con As ADODB.Recordset rs.Update("E-mail ID") = Text4. adLockOptimistic If MsgBox(" Are you sure(Y/N)???".Update("Phone no") = Text3.Text rs.Text 60 . 4) = 7 Then Exit Sub rs.
Text = Clear 61 .Text = Clear Text4.Text = Clear Text3.Hide Form2.Text = Clear Combo1.Close MsgBox "Your change has been saved!!" myerror: Call error End Sub FOR CANCEL:Private Sub command2_Click() text1.Text = Clear Text3.Text = Clear text2.Show End Sub FOR BACK:Private Sub Command3_Click() text1.Text = Clear text1.Text = Clear Text5.Update("Blood Group") = Combo2.Text = Clear Text4.Text = Clear Text5.Text = Clear Combo2.Text = Clear text2.SetFocus Form4.Text rs.rs.
Text = Clear Combo2.connection") con.Fields("Department") 62 .0" con.Recordset rs. con.Text = Clear End Sub FOR FORM:Private Sub Form_Load() On Error GoTo myerror: Set con = CreateObject("Adodb.mdb" Dim strsql As String strsql = "Select distinct Faculty from registration" Set rs = New ADODB.AddItem "Student" Combo1.Open App.jet.4.EOF Combo4.AddItem "Employee" Combo1.Fields("Faculty") rs.AddItem rs1.MoveNext Wend rs.EOF Combo3. adLockOptimistic Combo1.Path & "\db1.AddItem "Others" While Not rs.Open strsql.Combo1.oledb. adOpenForwardOnly. adLockOptimistic While Not rs1.Close Dim strsql1 As String strsql1 = "Select distinct Department from registration" Set rs1 = New ADODB.Provider = "Microsoft.Open strsql1. con.Recordset rs1. adOpenForwardOnly.AddItem rs.
AddItem "A-" Combo2.AddItem "O-" Combo2. adOpenForwardOnly. con. adLockOptimistic While Not rs2.MoveNext Wend rs2.Close 'Blood Group setting Combo2.Number <> 0 Then MsgBox ("Error: " & Err.Open strsql2.AddItem "B-" Combo2.Fields("Hall") rs2.MoveNext Wend rs1.AddItem "A+" Combo2.AddItem "O+" Combo2.AddItem "B+" Combo2.AddItem "AB-" myerror: Call error End Sub Private Sub error() If Err.EOF Combo5.Close Dim strsql2 As String strsql2 = "Select distinct Hall from registration" Set rs2 = New ADODB.AddItem "AB+" Combo2.AddItem rs2.rs1.Description) Exit Sub 63 .Recordset rs2.
Enabled = True Text5.Enabled = True Label10.Enabled = True Label6.Enabled = True Dim strsql10 As String strsql10 = "Select * from registration where [Donor ID]='" & text1.Enabled = True Label4. con.Enabled = True Text3.Enabled = True Combo1. adLockOptimistic 64 .Enabled = True Label7.Enabled = True Label8.Enabled = True Label9.Recordset rs10.Enabled = True Label12.End If End Sub Private Sub Form_Unload(Cancel As Integer) con. adOpenForwardOnly.Close End Sub Private Sub Text1_Change() text2.Open strsql10.Enabled = True Label11.Enabled = True command1.Enabled = True Label5.Text & "'" Set rs10 = New ADODB.Enabled = True Text4.Enabled = True Combo2.
Fields("E-mail ID") Text5.Fields("Name") Text3.Fields("Occupation") Combo2.Enabled = True Dim strsql11 As String 65 .If Not rs10.Enabled = True Combo2.Fields("Blood Group") End†f rs10.Text = rs10.Enabled = True Label7.Text = rs10.EOF Then text2.Fields("Phone no") Text4.Text = rs10.Enabled = True Combo1.Enabled = True command1.Enabled = True Label4.Text = rs10.Enabled = True Text3.Enabled = True Label5.Fields("Address") Combo1.Text = rs10.Enabled = True label3.Enabled = True text2.Close End Sub Private Sub Text6_Change() text1.Enabled = True Label6.Enabled = True Label11.Text = rs10.Enabled = True Label10.Enabled = True Label12.Enabled = True Text4.
Text & "'" Set rs11 = New ADODB. con.CursorLocation = adUseClient 66 .Text = rs11.Fields("Phone no") Text4. adOpenForwardOnly.Recordset rs.Fields("Blood Group") End If rs11.Fields("Donor ID") text2.Recordset rs11.Open strsql11. adLockOptimistic If Not rs11.Connection FOR DELETION:Private Sub command1_Click() On Error GoTo myerror: Dim strsql As String strsql = "Select * from registration where [Donor ID]='" & text1.Fields("Occupation") Combo2.Fields("Name") Text3.Text = rs11.Text & "'" Set rs = New ADODB.strsql11 = "Select * from registration where [Enrollment no/Employee ID]='" & Text6.Text = rs11.Fields("E-mail ID") Combo1.Text = rs11.EOF Then text1.Text = rs11.Text = rs11.Close End Sub FOR FORM-5 GENERAL DECLARATION:Dim con As ADODB.
adOpenForwardOnly.Text = Clear Combo2.Text = Clear Text3.Text = Clear Combo1.Hide myerror: End Sub FOR BACK:Private Sub Command3_Click() text1.Show Form5. con.Text = Clear 67 . 4) = 7 Then Exit Sub rs.Close MsgBox "Record Deleted!!" Form2.Text = Clear Text6.Text = Clear text2.Text = Clear text1.Open strsql.Hide Form2.Text = Clear Text4.Text = Clear text2.Delete rs.SetFocus Form4.rs.Show End Sub FOR CANCEL:Private Sub command2_Click() text1.Text = Clear Text3. adLockOptimistic If MsgBox(" Are you sure(Y/N)???".
Provider = "Microsoft.Enabled = True 68 .Text = Clear Combo1.Description) Exit Sub End If End Sub Private Sub Form_Unload(Cancel As Integer) con.0" con.Close End Sub Private Sub Image2_Click() End Sub Private Sub Text1_Change() text2.Open App.Text = Clear Combo2.jet.Text = Clear End Sub Private Sub Form_Load() On Error GoTo myerror: Set con = CreateObject("Adodb.4.oledb.Number <> 0 Then MsgBox ("Error: " & Err.Path & "\db1.Enabled = True Text3.connection") con.mdb" myerror: Call error End Sub Private Sub error() If Err.Text = Clear Text5.Enabled = True Text4.Text4.
Recordset rs10.Enabled = True Label8.Open strsql10.Fields("E-mail ID") Text5.Fields("Name") Text3.Enabled = True Label6.Enabled = True Label10.Enabled = True Combo1.Fields("Blood Group") End If 69 . con.Text = rs10.Enabled = True command1.Text5.Text = rs10. adOpenForwardOnly.Enabled = True Label12.Text = rs10.Text = rs10.Fields("Phone no") Text4.Text & "'" Set rs10 = New ADODB.Fields("Address") Combo1.Enabled = True Combo2.Enabled = True Dim strsql10 As String strsql10 = "Select * from registration where [Donor ID]='" & text1.Enabled = True Label7. adLockOptimistic If Not rs10.Text = rs10.Enabled = True Label11.Enabled = True Label9.Enabled = True Label4.EOF Then text2.Text = rs10.Fields("Occupation") Combo2.Enabled = True Label5.
Enabled = True Label6.Enabled = True command1.Text & "'" Set rs11 = New ADODB.rs10.Enabled = True Label7.Enabled = True text2.Close End Sub Private Sub Text6_Change() text1. adOpenForwardOnly.Enabled = True Combo2.Fields("Donor ID") text2.Enabled = True Label4.Enabled = True Label10.Enabled = True Label12.EOF Then text1.Enabled = True Text5.Enabled = True Dim strsql11 As String strsql11 = "Select * from registration where [Enrollment no/Employee ID]='" & Text6. adLockOptimistic If Not rs11.Enabled = True Text3.Enabled = True Combo1. con.Fields("Name") 70 .Enabled = True Text4.Enabled = True label3.Enabled = True Label5.Recordset rs11.Enabled = True Label11.Open strsql11.Text = rs11.Enabled = True Label8.Text = rs11.
registration.Text3.[Donor ID].Text = rs11. adOpenForwardOnly.Text = rs11.Fields("E-mail ID") Text5.Fields("Address") Combo1.Fields("Occupation") Combo2.Name.[Phone no]. adLockOptimistic Set DataGrid1.registration.Fields("Blood Group") End If rs11.Recordset rs.Occupation.Text = rs11. registration.[Blood Group] FROM registration WHERE [Blood Group]='" & Combo1.[E-mail ID].Text & "'" End If Set rs = New ADODB.Fields("Phone no") Text4.DataSource = rs 71 .registration.Text = "" Then strsql = "SELECT registration.Address.Open strsql.Text = rs11.CursorLocation = adUseClient rs. con.Text = rs11. registration.registration.Close End Sub FOR FORM-6 Dim con As ADODB.Connection Dim selec As Integer FOR SEARCH:Private Sub command1_Click() On Error GoTo myerror: Dim strsql As String If Not Combo1.
Width = 1500 DataGrid1.Width = 2500 DataGrid1.Columns(4).Columns(9).Columns(1).Columns(0).Width = 700 DataGrid1.Hide Form2.Show End Sub 72 .Columns(10).Columns(2).Columns(3).Caption = "D.Width = 1500 DataGrid1.Columns(7).Columns(6).Width = 500 DataGrid1.ID" DataGrid1.Width = 900 DataGrid1.Width = 2200 DataGrid1.Columns(0).Width = 500 DataGrid1.Width = 2200 DataGrid1.Columns(8).Show End Sub FOR BACK:Private Sub Command3_Click() Form8.Close myerror: Call error End Sub FOR DONOR DETAILS:Private Sub command2_Click() Form6.Width = 2500 DataGrid1.Refresh 'rs.Width = 900 DataGrid1.Columns(5).DataGrid1.
Description) Exit Sub End If End Sub Sub datashow() On Error GoTo myerror: Set con = CreateObject("Adodb.Show Call datashow End Sub Private Sub Form_Load() Call datashow End Sub Private Sub error() If Err.AddItem "O-" Combo1.Open App.Private Sub DataGrid1_DblClick() Form4.AddItem "B-" Combo1.AddItem "B+" Combo1.Number <> 0 Then MsgBox ("Error: " & Err.Path & "\db1.AddItem "O+" Combo1.AddItem "A+" Combo1.4.Provider = "Microsoft.mdb" 'Blood Group setting Combo1.oledb.AddItem "A-" Combo1.jet.connection") con.AddItem "AB+" Combo1.AddItem "AB-" Dim strsql As String 73 .0" con.
Width = 500 DataGrid1.registration.Columns(0).Columns(9).[Blood Group].[Enrollment no/Employee ID].Width = 900 DataGrid1.Columns(8).Columns(7).Width = 1500 DataGrid1.Width = 2200 DataGrid1.registration.Columns(2). adOpenForwardOnly. con.Address.Columns(4).registration. adLockOptimistic Set DataGrid1.Close selec = 0 myerror: Call error End Sub 74 .Width = 1500 DataGrid1.strsql = "SELECT registration.Width = 900 DataGrid1.registration.Width = 2500 DataGrid1.Columns(3).registration.Faculty.[Phone no].Occupation.Width = 700 DataGrid1.Caption = "D.Refresh 'rs.Department.[Donor ID].Hall FROM registration " Set rs = New ADODB.Name. registration.DataSource = rs DataGrid1.[E-mail ID]. registration.Open strsql.ID" DataGrid1.Columns(10).Recordset rs.Columns(0).CursorLocation = adUseClient rs.Columns(6).Columns(5).Columns(1).registration.registration.Width = 2200 DataGrid1.registration.Width = 2500 DataGrid1.Width = 500 DataGrid1.
Private Sub Form_Unload(Cancel As Integer) con.Close End Sub 75 .
) CONCLUSION 76 .7.
Overall conclusion is that the efficiency and quality are bet served by the project. by going proper software development phase step by step through the each phases. Proper testing of the project, its modularity & simplicity increases its productivity of the project in many ways. And its visual environment plays the major role in this. This project has been developed to enable users to manage their daily work efficiency.
8.) FUTURE SCOPE
Suppose in the future activities or the method associated with the Blood Donation System. System is changed or they want some more activities to be automated, then is such cases this project can be easily to handle and anyone can operate it. It will not only reduce the cost of
maintenance of records but it will be also. Improve the efficiency of work. 80 .
9.) BIBLIOGRAPHY: 81 .
bloodbank.BIBLIOGRAPHY: • Mastering Visual Basic 6.0 • Visual Basic 6.M Awad • www.com 82 .0 programming • Microsoft Access • Software Engineering BY Evangelos Petroutsos BY Steven Holzner BY Harkins. ETAL BY Pankaj Jalote • Analysis and Design of Information BY E.