Вы находитесь на странице: 1из 56

INTRODUCTION OF THE PROJECT

(COMPUTERIZED HOSTEL INFORMATION SYSTEM)

Our objective to design this Hostel Information System project is to provide the

facilities to users to perform tasks such as Opening new accounts, editing the

existing accounts, withdrawing/depositing the money easily. All these facilities are

provided in the Hostel Information system with so easy steps that anyone knows

little about the computer can use the software easily. The following are the

objectives that are taken into account while preparing the project:-

Better Performance.

Ease of Use.

Easily availability.

Compact coding.

Nice look.

Easily understandable.

Proper sequence of commands.

A Computerized Information system (CIS) is a software application for

Hostel Information systems to manage customers data. Computerized Hostel

Information systems provide capabilities for entering customer details and other

1
assessment scores through an electronic pass book, building customer details, and

managing many other customer-related data that needs in a bank.

2
OBJECTIVE OF THE PROJECT

The main objective of the work is to demonstrate how tedious work can be

made easy by computer capabilities.

The main objective is to keep all the records in a particular file and

performing various operations on that file. There are many points, which need

special attention while developing the software.

# How to create the database files which contains all the records of our project.

# How to manage all the records in the database (SQLServer)

# How to find out the various information from the database.

# How are the calculation and sum assured can be maintained.

The project Computerized Hostel Information System in Java provides such

facilities to the Hostel such as:-

New Student (New Record)

Updating the exiting record (Changing Details of the A/C)

Deleting the existing record

Searching the record

View all records

3
DEFINITION OF THE PROBLEM

To keep records of the Student record in a computerized manner. Every record

must contains the students matric No, Name, course, and year,.

To find the record as and when we want with the help of roon No and/or name of

the student.

To delete the record of the student as needed.

4
HARDWARE AND SOFTWARE PLATFORM USED

This project has been developed on an assembled computer having following

Hardware and Software specifications.

Hardware Specification:

Processor Pentium III 733 MHz.

Cache Size 512KB

Main Memory 128 MB

Hard Disk 20 GB

Software Specification:

Operating System MS DOS /WINDOWS 98 or higher

version

Language Visual Basic 6.0 or higher

5
ABOUT THE LANGUAGE USED IN PROJECT (VB)

Visual basic is an object-based language, which provides graphical user

interface just like Microsoft windows. Visual basic provides integrated development

environment. Visual basic provides three editions i.e. learning edition, professional

edition & enterprise edition. Visual basic integrated development environment

provides editor, designing, compiler & debugging capabilities. Visual basic provides

Internet features, object linking and embedding & various other capabilities to

develop robust windows applications.

Visual basic applications provide excellent user interface & VB developer is

capable of being connected to various databases. Visual basic is derived from the

language Basic.

Control

A control is an object, which we place on the form to create a user interface.

Examples of controls are command button, textbox control, label, picture box etc.

We can add more controls by right clicking on the toolbox and then by selecting

components from pop up menu. All the controls can be accessed from the toolbox.

Nearly every control has its own properties & methods. We can set the properties of

a control at design time and through coding. We can make controls responding to the

happening of events. For example: change method of textbox responds to the code

written in change method whenever the text in the textbox changes.

6
We can create our own controls in visual Basic & these are called ActiveX

controls. User can design their own controls or can extend the properties of existing

controls. For example: you can design a textbox control that accepts only numeric

data.

Concept of Event Driven Programming

In event driven programming the flow of program execution is controlled by

the events that occur as the program run. Each time an event occurs, it causes a

message to be sent to the operating system. The system processes the message and

broadcasts it to the other windows. Each window can then take the appropriate

action based on its own instructions for dealing with that particular message.

Events can be triggered by users actions, by messages from the system or

other application, or even from the application itself. The sequence of these events

determines the sequence in which the code executes. Thus the path through

applications code differs each time the program runs.

The ToolBox

Toolbox: - It contains a set of controls that are used to place in a form at design time

thereby creating the user interface area. User can include additional controls in the

toolbox by using the Components menu item on the project menu. A Toolbox

contains the following controls-

The pointer helps to move and resize the control and Forms.

7
Label displays a text that user cannot modify or interact with. Label often used to

display messages for the users

Frame control serves as a visual and functional container for controls.

Check Box displays a True/False or Yes/No option.

Textbox is a control used to display message and enter text. User can edit text

placed in the text box as and when he want but it depends on the property of the text

box if it set as not editable then user cannot change the text placed in the text box.

The List Box displays a list of items from which a user can select one.

Combo Box contains a Textbox and a List Box. This allows the user to select an

item from the dropdown List Box or to type a selection in the Textbox.

HScroll Bar and VScrollbar controls allow the user to select a value within the

specified range of values.

Timer control executes timer events at specified intervals of time.

DirListBox allows the user to select directories and paths, which are displayed.

Shape control adds a shape (rectangle, square or circle) to a Form.

Image control is used to display icon, bitmaps, metafiles, etc.

OLE controls used to link or embed an object display and manipulate data from

other Windows based applications.

8
PictureBox displays icons/ bitmaps and metafiles. It displays text or acts as a visual

container for other control.

CommandButton carries out the specified action when the user chooses it.

The OptionButton control, which is a part of an option group, allows the user to

select one option even if it displays multiple choices.

The DriveListBox displays the valid disk drives and allows the user to select one of

them.

The FileListBox displays a set of files from which a user can select the desired one.

Line control draws a straight line to the Form.

Data control enables the user to connect to an existing database and display

information from it.

All the controls in the Toolbox except the Pointer are objects in Visual

Basic. These objects have associated properties. For example, a flower is loaded

with certain colour, shape and fragrance. Similarly, programming objects are loaded

with properties.

A property is a named attribute of a programming object. Properties define

the characteristic of an object such as size, color, etc. or sometimes the way in which

it behaves. For example, a Textbox accepts properties such as Enabled, Font, Multi

Line, Text, Visible, Width, etc. These are discussed below:

9
Enabled property allows the Textbox to be enabled or disabled at run time depending

on the condition set to True or False.

Font property sets a particular font allows the Textbox.

Multi Line property allows the Textbox to accept and display multiple lines at run

time.

Text property of the Textbox control sets a particular text in the control.

Visible property is used to hide the object at run time.

Width property sets the Textbox to the desired width at design time.

The properties that are discussed above are design time properties that can be set at

the design time by selection the Properties window. But certain properties cannot be

set at design time.

A method is an action that can be performed on objects. For example, a cat is an

object. Its properties might include long white hair, blue eyes, three pounds weight,

etc. A complete definition of cat must not only encompass on its looks, but should

also include a complete itemization of its activities. Therefore, a cat's methods might

be move, jump, play, breathe, etc.

Similarly, in object-oriented programming, a method is a connected or built-in

procedure, a block of code that can be invoked to impart some action on a particular

object. A method requires an object to provide them with a context. For example, the

10
word Move has no meaning in Visual Basic, but the following statement, performs a

very precise action.

Text1. Move 700, 400

The textbox control has other associated methods such as Refresh, Set Focus, etc.

The Refresh method enforces a complete repaint of the control or a Form. For

example, Text1. Refresh refreshes the Text Box.

The Set Focus method moves the focus to the control .For example , Tex1. Set Focus

sets the focus to Textbox control Text1.

IDE is integrated development environment, which is commonly used in the

programming world to describe the interface and environment that we use to create

our applications. It is called integrated because we can access virtually all the

development tools that we need from one screen called an interface.

Integrated Development Environment

Visual Basic is an integrated development environment in which we can

develop, run, test and debug our applications. With visual basic, following types of

applications can be created:-

Standard Exe: Standard EXE project is a typical application created using

VB.

ActiveX EXE:- Active X controls are the part of COM technology. COM

stands for component object model. In this technology, programmer can

11
design individual components and code for these components. These

components can also be used in different application. All the ActiveX

Controls have user specific properties.

ActiveX Control:- Intrinsic controls are those controls, which are there in the

toolbox of visual basic whereas ActiveX controls are custom made controls,

which can be build, by the users. Intrinsic controls are standard visual basic

controls whereas you can make controls that have user specific properties.

E.g. You can design a text box control which accepts only numeric values.

The following are the steps to create ActiveX controls:-

1. Start a new project. Select ActiveX control as the project type.

2. Set the name property of the Project.

3. Set the name property of the UserControl

4. From the toolbox add the controls for your ActiveX control.

5. Set the properties of the controls according to the function you want to be

performed.

6. Code for your UserControl.

7. Save the UserControl form and Project

8. Before a control can be used, appropriate entries must be created for it in the

Windows registration database. Selecting the FileMake menu command

12
can do compilation. After it is compiled, the Control is registered on the

computer.

ActiveX Document:- ActiveX documents (.dob) are similar to forms, but are

displayable in an Internet browser such as Internet Explorer. The Professional

and Enterprise editions of Visual Basic are capable of creating ActiveX

documents

Following steps are used to create ActiveX document.

Determine the features your document will provide.

Design the appearance of your document.

Design the interface for your document; that is, the properties, methods, and

events your document will expose.

Create a project consisting of your user document and any auxiliary forms.

Add controls and/or code to the UserDocument object.

Implement the interface and features of your document.

Compile your document to create a .vbd file and test it with all potential

target applications

Data Project: - This is a feature of an Enterprise edition. It is essential

to the standard EXE project type. But it automatically adds the controls that are

necessary to access database in the VB. It also adds the database ACTIVEX
13
designers to the project Explorer window which are the tools for accessing and

manipulating the database and its report. So the data project is helpful whenever we

want to create project which needs data and database access.

14
COMPONENTS OF VB WINDOW

Project explorer: This is simply a list of all the forms. Which make up

your VB project? The project explorer displays a list of all forms and modules

making up your application.

Property window: VB allows you to enter parameter for central,

which are called properties of that control. Some properties can be entered at design

time using this property window while other must be entered with code while the

program is owning.

Code window: This is where you type in the code that VB executes.

Notice that the heading of the window indicates which events the code is associated.

Form layout window: The form layout window shows where your

form will be displayed relative to your monitors screen.

Object Browsers: It lists objects available for use in your project and

gives you a quick way to navigate through your code. You can use the object.

Browser to explorer objects in VB and other applications.

15
DESIGN PHASE

Design Phase is the most challenging and creative phase of

software development. The more time devoted in design less time required in

coding.

Designing software is not like a cook book recipe but is more

precisely defined. As the term implies, a Data Flow Diagram is a diagram which

depicts the precise flow of computer actions. The Data flow diagram depicts the

logic involved in the problem solution and therefore, is a step by step sequence

which the program will describe to the computer through the higher level

language instructions.

Input Design: The process of converting user-oriented inputs to a computer

based format. It includes determining the record media, method of input, speed

of capture and entry into the system.

Output Design: Efficient, intelligible output design should improve the systems

relationship with the user help in decision making.

16
SYSTEM DOCUMENTATION

This stage is the documentation of the program so that those who use

and maintain it can understand it, so that the program can be extended to further

applications. Documentation is the stage of software development that is often

overlooked. Yet proper documentation is not only in the debugging and testing

phases, it also essential in the maintenance and redesign stage. A properly document

program can easily be used again when needed and undocumented program usually

requires so much extra work that the programmer might as well start from scratch.

Among the techniques common found in documentation are

Flowcharts, Data Flow Diagram, Comments and definition lists.

17
CODING FOR BLOCK FORM

Private Sub Command1_Click()

blockstatus = "A"

Info.Show

Unload Me

18
End Sub

Private Sub Command2_Click()

blockstatus = "B"

Info.Show

Unload Me

End Sub

Private Sub Command3_Click()

blockstatus = "C"

Info.Show

Unload Me

Unload Me

End Sub

Private Sub Form_Load()

End Sub

19
CODING FOR FRMSPLASH FORM

Private Sub cmdok_Click()

Menu.Show

Unload Me

End Sub

20
Private Sub Frame1_DragDrop(Source As Control, X As Single, Y As Single)

End Sub

Private Sub Label1_Click()

End Sub

CODING FOR INFO FORM

Option Explicit

Dim WithEvents Con As ADODB.Connection

Dim WithEvents rekod As ADODB.Recordset

Dim WithEvents rekod2 As ADODB.Recordset

21
Private cmd As New ADODB.Command

Private rs As New ADODB.Recordset

Private Sub cmdexit_Click()

Menu.Show

Unload Me

End Sub

Private Sub cmdreport_Click()

Report1.Show

Unload Me

End Sub

Private Sub cmdrefresh_Click()

If blockstatus = "A" Then

Call Report(blockstatus)

ElseIf blockstatus = "B" Then

Call Report(blockstatus)

ElseIf blockstatus = "C" Then

Call Report(blockstatus)

22
End If

End Sub

Private Sub cmdclear_Click()

If MsgBox("Are you sure to fill in again?", vbYesNo + vbQuestion) = vbYes Then

txtname = ""

cbomatric.Text = "Choose one"

cbocourse.Text = "Choose one"

cbosemester.Text = "Choose one"

cboyear.Text = "Choose one"

intake = ""

position = ""

cboroom.Text = "Choose one"

cbobed.Text = "Choose one"

date = ""

cbofee.Text = "Choose one"

comment = ""

End If

23
End Sub

Private Sub cmdsave_Click()

Set rekod = New ADODB.Recordset

rekod.Open "Select * From Studentinfo", Con, adOpenStatic, adLockOptimistic

If check Then

rekod.AddNew

rekod.Fields!Name = txtname

rekod.Fields!Matricnum = cbomatric

rekod.Fields!Course = cbocourse

rekod.Fields!Semester = cbosemester

rekod.Fields!Year = cboyear

rekod.Fields!intake = intake

rekod.Fields!Post = position

rekod.Fields!block = block

rekod.Fields!Room = cboroom

rekod.Fields!Bed = cbobed

24
rekod.Fields!date = date

rekod.Fields!Fee = cbofee

rekod.Fields!comment = comment

If check2 Then

If check3 Then

rekod.Update

MsgBox "Your records have been saved !!", vbOKOnly

txtname = ""

cbomatric.Text = "Choose one"

cbocourse.Text = "Choose one"

cbosemester.Text = "Choose one"

cboyear.Text = "Choose one"

intake = ""

position = ""

cboroom.Text = "Choose one"

cbobed.Text = "Choose one"

date = ""

25
cbofee.Text = "Choose one"

comment = ""

End If

End If

End If

Set rekod = Nothing

Call cmdrefresh_Click

End Sub

Private Sub Form_Load()

If blockstatus = "A" Then

block.Caption = "A"

ElseIf blockstatus = "B" Then

block.Caption = "B"

ElseIf blockstatus = "C" Then

block.Caption = "C"

26
End If

Set Con = New ADODB.Connection

Con.CursorLocation = adUseClient

Con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" _

& App.Path & "\hostel.mdb"

Call cmdrefresh_Click

End Sub

Private Function check() As Boolean

If txtname = "" Then

txtname.SetFocus

MsgBox "Please fill your name.", vbExclamation

ElseIf cbomatric = "Choose one" Then

cbomatric.SetFocus

MsgBox "Please select matric number.", vbExclamation

ElseIf cbocourse = "Choose one" Then

cbocourse.SetFocus

MsgBox "Please select student course.", vbExclamation

27
ElseIf cbocourse = "" Then

cbocourse.SetFocus

MsgBox "Please fill the student course.", vbExclamation

ElseIf cbosemester = "Sila pilih" Then

cbosemester.SetFocus

MsgBox "Please select semester.", vbExclamation

ElseIf cbosemester = "" Then

cbosemester.SetFocus

MsgBox "Please fill the semester.", vbExclamation

ElseIf cboyear = "Choose one" Then

cboyear.SetFocus

MsgBox "Please select year.", vbExclamation

ElseIf cboyear = "Choose one" Then

cboyear.SetFocus

MsgBox "Please select year.", vbExclamation

ElseIf intake = "" Then

intake.SetFocus

28
MsgBox "Please fill student intake.", vbExclamation

ElseIf cboroom.Text = "Choose one" Then

cboroom.SetFocus

MsgBox "Please select student room", vbExclamation

ElseIf cbobed = "" Then

cbobed.SetFocus

MsgBox "Please fill student bed.", vbExclamation

ElseIf date = "" Then

date.SetFocus

MsgBox "Please fill the date.", vbExclamation

ElseIf cbofee = "Choose one" Then

cbofee.SetFocus

MsgBox "Please select the status.", vbExclamation

Else

check = True

End If

End Function

29
Private Function check2() As Boolean

Set rekod2 = New ADODB.Recordset

rekod2.Open "Select * From Studentinfo where Matricnum= '" & cbomatric & "'",

Con, adOpenStatic, adLockOptimistic

If Not rekod2.EOF Then

cbomatric.SetFocus

MsgBox "SORRY, that number is already have in database"

Else

check2 = True

End If

End Function

Private Function check3() As Boolean

Set rekod2 = New ADODB.Recordset

rekod2.Open "Select * From Studentinfo where Block= '" & block.Caption & "'

and Room= '" & cboroom & "' and Bed= '" & cbobed & "'", Con, adOpenStatic,

adLockOptimistic

If Not rekod2.EOF Then

cboroom.SetFocus

30
MsgBox "SORRY, that bed is already chose"

Else

check3 = True

End If

End Function

Public Function Report(papar As String)

Dim sql As String

Set rekod = New ADODB.Recordset

sql = "Select * From Studentinfo where Block='" & papar & "'"

cmd.CommandType = adCmdText

cmd.CommandText = "Select * from Studentinfo where Block='" & papar & "'"

Set cmd.ActiveConnection = Con

rs.Open cmd, , adOpenDynamic, adLockOptimistic

Label20.Caption = "Total record = " & rs.RecordCount

rs.Close

MSFlexGrid1.Rows = 1

Set rekod = New ADODB.Recordset

31
rekod.ActiveConnection = Con

rekod.CursorLocation = adUseClient

rekod.CursorType = adOpenDynamic

rekod.LockType = adLockOptimistic

rekod.Source = sql

rekod.Open

If rekod.EOF Then

MsgBox "There are no record(s) so far"

End If

While Not rekod.EOF()

MSFlexGrid1.AddItem _

rekod!Name & vbTab & _

rekod!Matricnum & vbTab & _

rekod!block & vbTab & _

rekod!Room & vbTab & _

rekod!Bed

rekod.MoveNext

32
Wend

Set rekod = Nothing

End Function

CODING FOR MENU FORM

Option Explicit

Dim WithEvents Con As ADODB.Connection

Dim WithEvents rekod As ADODB.Recordset

Private Sub cmdadd_Click()

Blockinfo.Show

33
Unload Me

End Sub

End

End Sub

Private Sub cmdreport1_Click()

Report1.Show

Unload Me

End Sub

Private Sub Form_Load()

End Sub

CODING FOR REPORT FORM

Option Explicit

Dim WithEvents Con As ADODB.Connection

Dim WithEvents rekod As ADODB.Recordset

Dim WithEvents rekod2 As ADODB.Recordset

Dim WithEvents rekod3 As ADODB.Recordset

34
Dim tugas As ADODB.Command

Public Function lapor_msflex(sql As String)

MSFlexGrid1.Rows = 1

Set rekod = New ADODB.Recordset

rekod.ActiveConnection = Con

rekod.CursorLocation = adUseClient

rekod.CursorType = adOpenDynamic

rekod.LockType = adLockOptimistic

rekod.Source = sql

rekod.Open

If rekod.EOF Then

MsgBox "SORRY, there are no record"

End If

While Not rekod.EOF()

MSFlexGrid1.AddItem rekod!Name & vbTab & _

rekod!Matricnum & vbTab & _

rekod!Course & vbTab & _

35
rekod!Semester & vbTab & _

rekod!Year & vbTab & _

rekod!intake & vbTab & _

rekod!Post & vbTab & _

rekod!block & vbTab & _

rekod!Room & vbTab & _

rekod!Bed & vbTab & _

rekod!date & vbTab & _

rekod!Fee & vbTab & _

rekod!comment

rekod.MoveNext

Wend

Set rekod = Nothing

End Function

Private Sub cmdexit_Click()

Menu.Show

Unload Me

36
End Sub

Private Sub cmdviewall_Click()

Dim sql As String

Set rekod = New ADODB.Recordset

sql = "Select * From Studentinfo"

Call lapor_msflex(sql)

End Sub

Private Sub cmddelete_Click()

Set tugas = New ADODB.Command

tugas.ActiveConnection = Con

tugas.CommandType = adCmdText

tugas.CommandText = "delete from Studentinfo where Name='" & txtname.Text &

"'"

tugas.Execute

Call cmdviewall_Click

End Sub

Private Sub cmdview_Click()

37
Dim sql As String

Set rekod = New ADODB.Recordset

If cbosearch = "Name" Then

sql = "Select * From Studentinfo where Name LIKE '" & search & "'"

Call lapor_msflex(sql)

ElseIf cbosearch = "Matric num" Then

sql = "Select * From Studentinfo where Matricnum LIKE '" & search & "'"

Call lapor_msflex(sql)

ElseIf cbosearch = "Block" Then

sql = "Select * From Studentinfo where Block LIKE '" & search & "'"

Call lapor_msflex(sql)

ElseIf cbosearch = "Room" Then

sql = "Select * From Studentinfo where Room LIKE '" & search & "'"

Call lapor_msflex(sql)

End If

End Sub

Private Sub cmdrefresh_Click()

38
txtname.Text = ""

matric.Caption = ""

cbocourse.Text = "Choose one"

cbosemester.Text = "Choose one"

cboyear.Text = "Choose one"

intake = ""

position = ""

block.Text = ""

cboroom.Text = "Choose one"

cbobed.Text = "Choose one"

date = ""

cbofee.Text = "Choose one"

comment = ""

Call cmdviewall_Click

End Sub

Private Sub cmdclear_Click()

If MsgBox("Are you sure to fill in again ??", vbYesNo + vbQuestion) = vbYes Then

39
txtname = ""

'cbomatric.Text = "Choose one"

cbocourse.Text = "Choose one"

cbosemester.Text = "Choose one"

cboyear.Text = "Choose one"

intake = ""

position = ""

block.Text = ""

cboroom.Text = "Choose one"

cbobed.Text = "Choose one"

date = ""

cbofee.Text = "Choose one"

comment = ""

End If

End Sub

Private Sub cmdupdate_Click()

Set rekod = New ADODB.Recordset

40
rekod.Open "Select * From Studentinfo where Matricnum= '" & matric.Caption &

"'", Con, adOpenStatic, adLockOptimistic

If check Then

rekod.Fields!Name = txtname

rekod.Fields!Matricnum = matric

rekod.Fields!Course = cbocourse

rekod.Fields!Semester = cbosemester

rekod.Fields!Year = cboyear

rekod.Fields!intake = intake

rekod.Fields!Post = position

rekod.Fields!block = block

rekod.Fields!Room = cboroom

rekod.Fields!Bed = cbobed

rekod.Fields!date = date

rekod.Fields!Fee = cbofee

rekod.Fields!comment = comment

If check3 Then

41
rekod.Update

MsgBox "Your record updated !!", vbOKOnly

End If

End If

Set rekod = Nothing

End Sub

Private Sub cmdaddnew_Click()

Blockinfo.Show

Unload Me

End Sub

Private Sub Form_Load()

matric.Enabled = False

Set Con = New ADODB.Connection

Con.CursorLocation = adUseClient

Con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Persist Security Info =False;Data

Source=" _

& App.Path & "\hostel.mdb"

42
End Sub

Private Sub MSFlexGrid1_Click()

With MSFlexGrid1

.Col = 0

txtname = .Text

.Col = 1

matric = .Text

.Col = 2

cbocourse = .Text

.Col = 3

cbosemester = .Text

.Col = 4

cboyear = .Text

.Col = 5

intake = .Text

.Col = 6

43
position = .Text

.Col = 7

block = .Text

.Col = 8

cboroom = .Text

.Col = 9

cbobed = .Text

.Col = 10

date = .Text

.Col = 11

cbofee = .Text

.Col = 12

comment = .Text

End With

End Sub

Private Function check() As Boolean

If txtname = "" Then

44
txtname.SetFocus

MsgBox "Please fill your name.", vbExclamation

'ElseIf cbomatric = "Choose one" Then

'cbomatric.SetFocus

'MsgBox "Please select matric number.", vbExclamation

ElseIf cbocourse = "Choose one" Then

cbocourse.SetFocus

MsgBox "Please select student course.", vbExclamation

ElseIf cbocourse = "" Then

cbocourse.SetFocus

MsgBox "Please fill the student course.", vbExclamation

ElseIf cbosemester = "Sila pilih" Then

cbosemester.SetFocus

MsgBox "Please select semester.", vbExclamation

ElseIf cbosemester = "" Then

cbosemester.SetFocus

MsgBox "Please fill the semester.", vbExclamation

45
ElseIf cboyear = "Choose one" Then

cboyear.SetFocus

MsgBox "Please select year.", vbExclamation

ElseIf cboyear = "Choose one" Then

cboyear.SetFocus

MsgBox "Please select year.", vbExclamation

ElseIf intake = "" Then

intake.SetFocus

MsgBox "Please fill student intake.", vbExclamation

ElseIf cboroom.Text = "Choose one" Then

cboroom.SetFocus

MsgBox "Please select student room", vbExclamation

ElseIf cbobed = "" Then

cbobed.SetFocus

MsgBox "Please fill student bed.", vbExclamation

ElseIf date = "" Then

date.SetFocus

46
MsgBox "Please fill the date.", vbExclamation

ElseIf cbofee = "Choose one" Then

cbofee.SetFocus

MsgBox "Please select the status.", vbExclamation

Else

check = True

End If

End Function

Private Function check3() As Boolean

Set rekod3 = New ADODB.Recordset

rekod3.Open "Select * From Studentinfo where Block= '" & block.Text & "' and

Room= '" & cboroom & "' and Bed= '" & cbobed & "'", Con, adOpenStatic,

adLockOptimistic

If Not rekod3.EOF Then

If MsgBox("Are you sure the bed is right ?", vbYesNo + vbQuestion) = vbYes

Then

check3 = True

Else

47
cbobed.SetFocus

MsgBox "SORRY, the bed chose by someoone"

End If

Else

check3 = True

End If

End Function

48
SPLASH FORM

49
50
BLOCKFORM

51
PERSONAL DETAIL FORM

52
REPORT FORM

53
FURTHER SCOPE OF THE PROJECT

As in todays world of IT, computerization of any system is added as an

advantage to its growth and for better development, same is the case with this

system also. Computerization of this system will reduce manual workload, time

consumption and errors that are generally found in manual systems. This will help in

searching records in a better way and will also help in business growth for this

branch. If we consider the system for future basis, then we can say that in the

coming era, as computer literacy is must for everyone and market is also increasing

and growing at its peak speed, hence this system will work efficiently and step to

step with the coming world of IT.

54
CONCLUSION

We conclude with

As we have seen throughout the project, that Computerized Hostel

Information System is an ultimate application to this work. This application works

with speed and efficiency. We certainly can conclude that it will suffice all the needs

of our application.

55
REFERENCES

1. Programming In VB by McGraw

2. VB Complete Reference

3. Syllabus Text Books

4. Internet

56

Вам также может понравиться