ON
(V.B Project)
BY
BASAVARAJU.S ASHWINI.G.M MANJESH.K
Mrs. SATYASHREE
1
2
CERTIFICATE
------------------ ------------------
(Signature) (Signature)
(Mrs.Satyashree) (Mrs.Satyashree)
…………………… .............................
3
Our first experience of project has been successfully, thanks to the
support friends with gratitude. We wish to acknowledge all of them. However,
we wish to make special mention of the following.
Participates
BASAVARAJU.S (09AAS75003)
MANJESH.K (09AAS75015)
ASHWINI.G.M (09AAS75002)
4
5
CONTENTS Page Numbers
SYNOPSIS 7
PROJECT OVERVIEW 8
SYSTEM REQUIREMENTS 10
E-R DIAGRAM 16
INTRODUCTION TO DBMS 17
INTRODUCTION TO MS-ACCESS 22
INTRODUCTION TO VB 6.0 25
DATA TABLE 31
FORMS 36
CODING 55
FUTURE ENHANCEMENT 76
CONCLUSION 78
BIBLOGRAPHY 80
6
SYNOPSIS OF A CRIME FILE SYSTEM
Complaint registration
FIR Management
7
PROJECT OVERVIEW
Existing System
Time consuming.
8
Proposed System
Security of data.
Greater efficiency.
Better service.
9
SYSTEM REQUIREMENTS
HARDWARE REQUIREMENTS
Pentium 4(2.40GHz)
256 MB RAM
80 GB HDD
SOFTWARE REQUIREMENTS
Windows-XP Professional
10
11
LEVEL 0 DFD
fig(i)
LEVEL 1 DFD
fig(ii)
12
LEVEL 2 DFD
fig(iii)
13
LEVEL 3 DFD
fig(iv)
14
LEVEL4DFD
fig(v)
15
E-R Diagram
CRIME
LOGIN LOGIN USER
FILE
ADMINISTRATOR
SYSTEM
CFS CFS
COMPLAINT REGISTRATION
VIEW COMPLAINTS
COMPLAINT DETAILS
COMPLAINT ID COMPLAINT DETAILS
COMPLAINT ID
COMPLAINT STATUS
CFS
REPORT GENERATION
FIR NO FIR DETAILS
CFS
ADD REPORT VIEW REPORT
MORTEM NO
DETAILS
16
17
INTRODUCTION TO DBMS
Normalization
Normalization is a step by step decomposition of complex records into
simple ones by reducing redundancies, inconsistencies and removes anomalies.
20
CHARACTERISTICS OF RELATIONAL DBMS MODEL
i. All parent child relationships are eliminated and data is
instead represented as simple row/column tables of data
values.
ii. A relation is similar to a table with rows/columns of data
values.
iii. The rows of a table are referred t as tuples and columns
called as attributes.
21
22
MS-ACCESS
TABLES
A Table is a collection of information about something specific
within the database. You can have more than one table in the
database. A table consists of Fields and Records.
FORMS
23
QUERIES
A query allows you to find information based on your specified
criteria for example you could find all people in your mailing list who
live in a particular state.
REPORTS
A reports allows you to perform calculation and create
summaries of the information on your table.
24
25
VISUAL BASIC 6.0
FORM MODULES:
Form modules can contain textual descriptions of the form and its
property settings. They can also contain form-level declarations of
constants, variables, and procedures, event procedures, and general
procedures.
26
CLASS MODULES:
Class modules are similar to form modules, expect that they have no
visible user interface. You can use modules to create your own
objects, including code for methods and properties.
STANDARD MODULES:
Standard modules can contain public or module level declaration of
type, constants, variable external procedures, and public procedures.
ODBC CONNECTIVITY
ADODC features
The ADO object model has three main object that are required t
access data from an existing database:
Connection
Record set
Command
27
ADODB
28
TOOLBARS
PROJECT EXPLORER WINDOW
PROPERTIES WINDOWS
OBJECT BROWSER
FORM DESIGNER
CODE EDITOR WINDOW
FORM LAYOUT WINDOWS
IMMEDIATE, LOCALS AND WATCH WINDOWS
MENU BAR
Menu bar consists of File, View, windows and help menus are
provided to access functions specific to programming such as project,
format or debug.
Context menus:
Context menus provide certain short cuts to frequently
performed actions. The specific list of shorts cuts available from
context menus depends on the environment.
Tool bars:
Tool bars provide quick access to commonly used commands in
the programming environment and is located below the menu bar.
Tool box:
29
Tool box provide a set of controls that you use at design time to
place them on the form and is located on the left side.
Project Explorer windows:
A properties windows displays the different properties of the
different objects, such as size, caption, colour etc.
KINDS OF OBJECTS
Objects can be used to form the interface, store data, and share
functionality across applications.
Controls
Data Base
ActiveX
30
31
DATA TABLES
Admin login:
User Login:
Criminal Register:
32
Prisoners Register:
Post Mortem:
Most Wanted:
33
FIR:
Charge Sheet:
34
Case History:
Complaint Status:
Complaint Registration:
35
36
SPLASH FORM
37
LOGIN FORM
38
WELCOM FORM
39
MENU FORM
40
ADD USER
DELETE USER
41
ADD COMPLAINT STATUS
42
CRIMINAL REGISTER
43
PRISONERS REGISTER
44
POSTMORTEM
45
MOST WANTED CRIMINALS
46
FIR
47
CHARGE SHEET
48
HISTORY SHEET
49
COMPLAINT STATUS
50
COMPLAINT REGISTRATION
51
DATA REPORT
CRIME REPORT
52
MOST WANTED CRIMINALS REPORT
53
POSTMORTEM REPORT
54
55
SPLASH FORM
Dim i As Integer
Dim x As Integer
Option Explicit
Private Sub Form_Load()
File1.FileName = App.Path
x = File1.ListCount
End Sub
56
Label2.Caption = File1.List(i)
i=i+1
Else
Load frmMDI
frmAdminlogin.Show
Unload Me
End If
End Sub
57
LOGIN FORM
Option Explicit
Public LoginSucceeded As Boolean
Private Sub cmdAdminLogin_Click()
If Text2.Text = "CFS" Then
LoginSucceeded = "True"
Me.Hide
MsgBox "Login Success", vbInformation, "Crime File
system"
frmWelcome.Show
Else
MsgBox "Failure", vbCritical, "Crime File System"
Text2.SetFocus
SendKeys "{home}+{end}"
End If
End Sub
58
WELCOME FORM
Option Explicit
Private Sub Form_Load()
frmWelcome.Show
frmMDI.Hide
End Sub
59
MENU FORM
61
Private Sub mnuPostmortem_Click()
Load frmPostmortem
frmPostmortem.Show
End Sub
62
ADD USER
63
DELETE USER
64
ADD COMPLAINT STATUS
65
CRIMINAL REGISTER
66
PRISONERS REGISTER
67
POSTMORTEM
68
Combo1.AddItem "13"
Combo1.AddItem "14"
Combo1.AddItem "15"
Combo2.AddItem "Male"
Combo2.AddItem "Female"
End Sub
69
MOSTWANTED CRIMINALS
70
FIR
Private Sub cmdAddNew_Click()
Adodc1.Recordset.AddNew
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
Text9.Text = ""
Text10.Text = ""
Text11.Text = ""
End Sub
Private Sub cmdCancel_Click()
frmMDI.Show
End Sub
Private Sub cmdSave_Click()
Adodc1.Recordset.Save
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
Text9.Text = ""
Text10.Text = ""
Text11.Text = ""
End Sub
Private Sub Form_Load()
Combo1.AddItem "10"
Combo1.AddItem "11"
Combo1.AddItem "12"
Combo2.AddItem "local"
Combo2.AddItem "foreign"
Combo3.AddItem "murder"
Combo3.AddItem "accident"
End Sub
71
CHARGESHEET
Private Sub cmdAddNew_Click()
Adodc1.Recordset. AddNew
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
Text9.Text = ""
Text10.Text = ""
Combo1.SetFocus
End Sub
Private Sub cmdCancel_Click()
frmMDI.Show
End Sub
Private Sub cmdSave_Click()
Adodc1.Recordset.Save
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
Text9.Text = ""
Text10.Text = ""
Combo1.SetFocus
End Sub
Private Sub Form_Load()
Combo1.AddItem "111"
Combo1.AddItem "112"
Combo1.AddItem "113"
Combo1.AddItem "114"
Combo1.AddItem "115"
End Sub
72
CASEHISTORY
Private Sub cmdAddNew_Click()
Adodc1.Recordset.AddNew
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Combo1.SetFocus
Combo2.SetFocus
End Sub
73
COMPLAINT STATUS
74
COMPLAINT REGISTRATION
77
78
CONCLUSION
analysis and design phase are fully met, thus resulting in the
79
80
BIBILOGREAPHY
ADVANCED VB PROJECT
:Ivan Bayross
81
82