0% found this document useful (0 votes)
975 views58 pages

Appartment Managementdocument

1. The apartment management system was developed using VB.NET as the front end and MS Access as the back end to automate manual tasks. 2. It contains modules for admin, apartment details, block details, maintenance, personal details, and billing to track information. 3. The system allows viewing apartment and block details, calculating expenses, and generating reports to facilitate management of an apartment complex.

Uploaded by

KingShankar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
975 views58 pages

Appartment Managementdocument

1. The apartment management system was developed using VB.NET as the front end and MS Access as the back end to automate manual tasks. 2. It contains modules for admin, apartment details, block details, maintenance, personal details, and billing to track information. 3. The system allows viewing apartment and block details, calculating expenses, and generating reports to facilitate management of an apartment complex.

Uploaded by

KingShankar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 58

APARTMENT MANAGEMENT SYSTEM

Synopsis
This project entitled Apartment management system is developed by using
VB.NET as front end and MS.ACCESS as back end. In present trend this software
application is used in our day to day life. This application is used to reduce the
manual work and complete work in short time and the data will be secure. All the
work to be maintained and updates the database as time to time process. The
apartment management system contains the admin form, apartment details, block
details, maintenance details, personal details and billing details. The first module is
the admin to enter the username and password. The username and password is correct
it will go to the next module. The second module customer can view the information
about the apartment details like apartment name, facilities, total number of flats, total
number of blocks, vacant flats, rent amount, owner name, age and sex. The third
module is the first block details has contain total flats, rented flats, vacant flats, own
flats, rent amount, service charge, tax and first block monthly expanses. The fourth
module is the second block details has contain total flats, rented flats, vacant flats,
own flats, rent amount, service charge, tax and second block monthly expanses. The
fifth module is the second block details has contain total flats, rented flats, vacant
flats, own flats, rent amount, service charge, tax and second block monthly expanse.
The sixth module is the maintenance has contain first block monthly expanses second
block monthly expanses third block monthly expanses and total amount .The seventh
module is the personal details has contain name, age, address, family members, sex,
mobile number and flats. The final module of apartment management system is
billing has contain name, flats, amount paying date and signature of the owner.

1.INTRODUCTION
Apartment management system is design in vb.net. In this apartment management system
is used for monitoring and controlling the transaction in apartment. This software is useful
for the promoters. Which mainly focus on basic operations like admin, apartment details,
block details, maintenance details, personal details and billing details. The apartment module
has contain information about the apartment like apartment name, facilities, owner name,
age, sex, total number of flats weather that flats are rented flats or own flats and rent
amount. Give the total number of flats and rented flats it will automatically calculate and
display on the vacant flats. The block details is contain in three modules like first block
details, second block details, third block details. These blocks are also included in total flats,
rented flats, vacant flats, own flats, service charge, rent amount and tax. The service charge,
rent amount and tax will be calculated and display in the form of first block monthly
expanses. These operations are same as the second block details and third block details. The
fourth module of apartment management system is maintenance. This is contain in fields like
first block monthly expanses second block monthly expanses, third block monthly expanses
and total amount. The first block, second block and third block monthly expanses are
calculated and display in the form of total amount. The personal module is contain new
customer information like name, age, sex, address, flats weather having rented flats or own
flats, mobile number and rent amount. The bill module provide authority to the customer.
This module having name, rent amount, amount paying date and signature of the owner and
all those information are contain in the form of reports.

1.1 System Specification


1.1.1 Hardware Configuration
Processor : Intel dual core
Board : Intel Chipset
RAM:1 GB
Hard disk:40 GB

1.1.2 Software Configuration


Operating system: windows XP
Frame work: dot net
Front end: vb.net
Back end: ms access

1.2.3 Software Description


VB.NET
The system is developed using VB.NET, which is a very popular Microsoft Product
developed by Microsoft Corporation. This is one of the improved languages from basic
language. VB.NET includes a variety of open active controls for user interfaces to design
application forms.
VB.NET is the multiple document inter face format (MDI).The user interface is the
part of the program that responds to the key press and mouse clicks. The action is referred to
as events of the form and controls in the form. VB.NET provides vast properties and methods
for each control, which helps to utilize all those, functions for record manipulations.

Menu driven is one of the most effective controls in the VB.NET. In this menu driven
the menu names in a program appear in the menu bar when the user selects a menu, that
menu open. Each menu usually contains items arranged in a vertical list.
These items are often grouped into functional groups with menu separators. When the
user

selects a menu item, that item appears highlighted; pressing enter or releasing the

mouse button opens that item. Each item should have a unique access character for users to
choose commands with keyboards. The user reaches the menu or menu item by pressing alt
key and access character. Short cuts are also useful to the user these keys are faster than
access character in that the user only needs to enter a shortcut to execute the corresponding
menu item.
The .NET framework has two main components

Common Language Runtime (CLR).

NET framework class library.

Common Language Runtime (CLR).

The common language runtime is the foundation of the .NET framework


.you can think of the runtime as an agent that manages code at execution
time, providing core services such as memory management and thread
management while also enforcing strict type safety and other forms of code
accuracy that ensure security and robustness.

In fact, the concept of code management is a fundamental principal of the


runtime .Code that targets the runtime is
code that dose not target the

known as managed code, while

Internet explore is an example of an unmanaged application that runtime


(in the form of a mime type extension).Using internet explorer to host the
runtime enables you to embed managed components or windows from
controls in the HTML documents.

The Components Of CLR Are:

CTS =>Common Type System.

CLS =>Common Language Specification

CLS =>Common Language Specification

CIL =>Common Intermediate Language

JIT =>Just In Time Compiler

VES =>Virtual Execution System

CTS Common Type System


This is the range of types that the .NET runtime understands, and therefore that .NET
application can use. The common type system supports both object oriented programming
like java as well as procedural languages like c .It deals with two kinds of entities such
objects and values.
CLS-Common Language Specification
This is a subset of the CTS that all .NET languages are expected to support. The idea
is the any program that uses CLS-compliant types can interoperate with any .NET program
written in any language. If a component written in one language (say c#) is to be used from
another language (say VB.NET) then the component writer must adhere to type and
structures defined by CLS.

CIL-Common Intermediate Language


All compilers complying with CLR must generate an intermediate language
representation called common intermediate language (CIL). The CIL uses this intermediate
language to either generate native code or use just in compiler (JIT) complication to execute
the intermediate code on the fly.
JIT-Just In Time Compiler
The JIT or just in time compiler is the part of the runtime execution environment,
which is used to convert the intermediate language contained in the execution file, called
assemblies , into native executable code.
VES-Virtual Execution System
Virtual execution system (VES) is more or less equivalent to the JVM (Java Virtual
Machine).VES loads, links and runs the programs written for common language
infrastructure contained in portable executable (PE) files.VES fulfill its loader function by
using information contained in the metadata and uses late binding (or linking) to integrate
modules compiled separately, which may even be written in different languages
.NET Framework Class Library
The .NET framework library is a collection of reused types that tightly with the
common language runtime (CLR). The class library is object-oriented, providing type from
which your own managed code can derive functionality. Managed codes are intermediate
language codes along with metadata contained in portable executable (PE) files. This not
only makes the .NET framework type easy to use, but also reduces the associated with
learning new features of the .NET framework.
One can use the .NET framework to develop the following types of application and
services.

Console application

Scripted and hosted application

Windows GUI application (windows forms)

VB.NET application

SPECIAL FEATURES IN VB.NET:

VB.NET is an ideal programming language for developing sophisticated


professional application for Microsoft windows

It makes use of the graphical user interface for creating powerful applications,
which enables the user to interact easily within an application.

VB.NET provides many aspects such as easier comprehension, user


friendliness and faster application development, which help the developer to
design the application more effectively.

VB.NET provides the facilities such as log in dialog form, browser form,
query form ,option dialog form and wizard from which enable the developer
design the application more effectively

MS ACCESS:
Microsoft office database management system is from Microsoft that combines
the n with graphical user interface and software-development tools. It is a member of
the Microsoft Office suite of applications, included in the Professional and higher editions or
sold separately.
Microsoft Access stores data in its own format based on the Access Jet
Database Engine. It can also import or link directly to data stored in other applications and
databases.

Software developers and data architects can use Microsoft Access to applications.
Like other Office applications, Access is supported by Visual Basic for Applications,
an object-oriented programming language that can reference a variety of objects including
DAO (Data Access Objects), ActiveX Data Objects, and many other ActiveX components.
Visual objects used in forms and reports expose their methods and properties in the VBA
programming

environment,

and

call Windows operating-system functions

VBA

code

modules

may

declare

and

2. SYSTEM STUDY
2.1 Existing system
The apartment details also not easy task for organizing all these detail manually. So
the software was developed. It is used only storing the data. This software is could not view
the single user information.

All the information had contain in the single form..The

apartment details also not easy task for organizing all these details manually. So not update
any kind of information. The existing system could not provide any reports. Did not provide
any bill. It is not easy way to handle work related to many apartments at a time. Data can
easily use unauthorized person.

2.1.1 Drawbacks

Could not update the details


Could not provide the security
Manual calculation lead to error
It take more time consumption
No proper coordination for fetching the data from the database. It requires a
large database.

2.2 Proposed System


Proposed system open an easy way for viewing and update the information has to be
allocated in the module to apartment details. This system is carefully designed to provide
flexibility with regard to existing system. This proposed system help to view the apartment
details to the customer very easily.

This software enable to keep records of the daily transactions in a electronic manner
which serve as a lot of energy, time and money. All the information are contain in the
separate form. It is easy to handle works related to many apartments at a time without
confusion. Data is secured easy to retrieve old record in a short period.

2.2.1 Features

Updating and monitoring the flats details easily by the admin


Customer can easily view the all information with report format
Provide high security for database and design
This project save time and effort
This project provide the service of printing the bill

3. SYSTEM DESIGN AND DEVELOPMENT


3.1 Input Design

Input design is one of the most expensive phases of the operation of computerized
system and is often the major problem of a system. A large number of problems with the
system can usually be traced back to fault input design and method. Needless to say,
therefore that the input data is the life block of a system and has to be analyzed and designed
with the most consideration.
The decisions made during the input design are

To provide cost effective method of input.


To achieve the highest possible level of accuracy.
To ensure that input is understood by the user.
System analysts decide the following input design details like, what data item to
input, what medium to use, how the data should be arranged or coded data items and
transaction needing validations to detect errors and at last the dialogue to guide users in
providing input. Input data of a system may not be entering the data to the system for
processing. necessarily a raw data captured in the system from scratch. These can also be the
output of another system sub system. The design of input covers all phases of input from the
certain of initial data to actual.

3.2 Output Design


Output design generally refers to the results and information that are generated by the
system. For many end-users, output is the main reason for developing the system and the
basis on which they evaluate the usefulness of the application.

The objective of a system finds its shape in terms of output. The analysis of the
objective of a system leads to determination of outputs. Outputs of a system can take various
forms. The most common are reports, screens displays printed form, graphical drawing etc.
the outputs vary in terms of their contents, frequency, timing and format.

When designing output, the system analyst must accomplish things like, to determine
what information to be present, to decide whether to display or print the information and
select the output medium to distribute the output to intended recipients.
External outputs are those, whose destination will be outside the organization and
which require special attention as the project image of the organization. Internal outputs are
those, whose destination is within the organization. It is to be carefully designed, as they are
the users main interface with the system. Interactive outputs are those, which the user uses in
communication directly with the computer.
A quality output is one, which meets the requirements of the end user and presents the
information clearly. In any system results of processing are communicated to the users and to
other system through outputs. In output design it is determined how the information is to be
Designing computer output should proceed in an organized, well thought out manner;
the right output must be developed while ensuring that each output element is designed so
that people will find the system can use easily and effectively.

3.3 Database Design


The database design is a must for any application developed especially more for the
data store projects. In the project, login table is designed to be unique in accepting the
username and the length of the username and password should be greater than zero. The
complete listing of the tables and their fields are provided in the annexure under the title
Table Structure.

Design is multi-step process that focuses on data structure software architecture,


procedural details, (algorithms etc.) and interface between modules. The design process also
translates the requirements into the presentation of software that can be accessed for quality
before coding begins.

Therefore, Software Design methodology lacks the depth, flexibility and quantitative
nature that are normally associated with more classical engineering disciplines. However
techniques for software designs do exist, criteria for design qualities are available and design
notation can be applied.

Table Name

: First block details

Database Name

: db3

Data Field

Data Types

Total flats

Number

Tented flats

Number

Vacant flats

Number

Own flats

Number

Rent amount

Number

Service charge

Number

Tax

Number

First block monthly expanses

Number

Table Name

: Second block details

Database Name

:db3

Data Field

Data Types

Total flats

Number

Tented flats
Vacant flats

Number
Number

Own flats
Rent amount
Service charge

Number
Number
Number

Tax

Number

Second
expanses

block

monthly Number

Table Name

: Third block details

Database Name

: db3

Data Field

Data Types

Total flats

Number

Tented flats

Number

Vacant flats

Number

Own flats

Number

Rent amount

Number

Service charge
Tax

Number
Number

Third

block

monthly Number

expanses

Table name
Database

:maintenance details

Data Field

Data Types

First block monthly expanses

Number

Second block monthly expanses

Number

Third block monthly expanses

Number

Total amount

Number

name

:db3

Table name

:personal details

Database name

:db3

Data Field

Data Types

Name

Text

Family members

Number

Address

Text

Age

Number

Sex

Text

Flats

Text

Mobile number

Number

Table name

:Billing details

Database name

: db3

Data Field

Data Types

Name

Text

Flats

Text

Rent amount

Number

3.5 System Development


3.5.1 Description of modules
The apartment management system project contain several modules. All
the module are could be contain in separated form. The forms like apartment details, first
block details, second block details, third block details, maintenance details, personal details
and billing details.

Apartment Details
This module provide some kind of operations like add, delete, update,
first, next, last and submit. This is used to manage all kind of information
about the apartment details like apartment name, facilities, total number of
flats, total no rented flats, total no own flats and rent amount.

First Block Details


The first block details contain in the operations are add, delete, update,
first, next, last and submit. This is used to manage the all kind of information
about the first block details like total flats, rented flats, vacant flats, own flats,
rent amount, service charge, tax and first block monthly expenses.

Second Block Details


The second block details contain in the operations are add, delete,
update, first, next, last and submit. This is used to manage the all kind of

information about the first block details like total flats, rented flats, vacant
flats, own flats, rent amount, service charge, tax and first block monthly
expenses.

Third Block Details


The third block details contain in the operations are add, delete, update,
first, next, last and submit. This is used to manage the all kind of information
about the first block details like total flats, rented flats, vacant flats, own flats,
rent amount, service charge, tax and first block monthly expenses.

4.TESTING AND IMPLEMENTATION


Unit Testing

Unit testing focuses verification effort on the smallest unit of software design module.
Using the detailed design description as a guide, important control paths are tested to uncover
errors within the boundary of the module. In this project, unit testing is performed in modules
such as apartment details, maintenance details and personal details.

System Testing
Text case scenario
Login Form
Successful scenario
Step1: Login into the Form
Step2: Enter the username
Step3: Enter the password
Step4: Click on the Submit Button
Step5: This will be move to the next Form
Unsuccessful scenario
Step1: Login into the Form
Step2: Enter the user name

Step3: Enter the incorrect password


Step4: Click on the Submit Button

Step5: This should be prompt the message Your password is Incorrect


Apartment Details
Successful scenario
Step1: Login into the apartment details
Step2: Enter the apartment name
Step3: The facilities will be display on the screen
Step4: Enter the owner name
Step5: Enter the age
Step6: Enter the gender
Step7: Enter the total flats
Step8: Enter the total blocks
Step9: Enter the total number of rented flats
Step10: This will be automatically calculate and display on the vacant flats. The customer
can view on the how many vacant flats are available.
Step11: Click on add Button
Step12: This information are save in the database
Unsuccessful scenario
Step1: Login into the apartment details
Step2: Enter the apartment name

Step3: The facilities will be display on the screen


Step4: Enter the owner name
Step5: Enter the age

Step6: Enter the gender


Step7: Enter the total flats as text
Step8: This should prompt the message Enter the total flats as Number
Step9: Enter the block details
Step10: Enter the total number of rented flats
First Block Details
Successful scenario
Step1: Enter the first block details
Step2: Enter the total flats
Step3; Enter the rented flats
Step4: Enter the own flats
Step5: Enter the service charge Step7: Enter the rent amount
Step8: The rent amount, service charge and tax these will be calculate and display in the form
first block monthly expanses
Step9: Click the add Button the information are save on the database
Step10: If any changes to those fields just view the information and replace the data.
Step 11: Click on update Button the information will be update on the database.
Unsuccessful scenario
Step1: Enter the first block details

Step2: Enter the total flats


Step3; Enter the rented flats
Step4: Enter the own flats

Step5: Enter the service charge


Step6: Enter the tax
Step7: Enter the rent amount as text
Step8: This should prompt the message Enter rent amount as Number
Step9: : The rent amount, service charge and tax these will be calculate and display in the
form first block monthly expanses
Step10: Click the add Button the information are save on the database
Step11: If any changes to those fields just view the information and replace the data.
Step 12: Click on update Button the information will be update on the database
Billing Details
Successful scenario
Step1: Enter the billing From
Step2: Enter the name as text
Step3: Choose the flats weather that flats are rented flats or own flats
Step4:If the flats are rented flats choose the rent amount to that field
Step5: Click the add Button. This information will be store on the database
Step6: Click on the print Button. The bill will be printed
Unsuccessful scenario
Step1: Enter the billing From

Step2: Enter the name as text as Number


Step3: This should prompt message Enter the name as string
Step4: Choose the flats weather that flats are rented flats or own flats

Step5:If the flats are rented flats choose the rent amount to that field
Step6: Click the add Button. This information will be store on the database
Step7: Click the print Button. If the printer is not available. This should prompt the message
printer is not available
Step6: Click on the print Button. The bill will be printed
Personal Details
Successful scenario
Step1: Login into the personal details
Step2: Enter the customer name
Step4:Enter the family members
Step5: Enter the address
Step6: Enter the customer age
Step7: Enter the gender weather that person is male or female
Step8: Choose the flats weather that flats are rented flats or own flats
Step9: Enter the mobile number
Step10: Click add Button the information will be save on the database
Unsuccessful scenario
Step1: Login into the personal details
Step2: Enter the customer name

Step4:Enter the family members


Step5: Enter the address
Step6: Enter the customer age

Step7: Enter the gender weather that person is male or female


Step8: Choose the flats weather that flats are rented flats or own flats
Step9: Enter the mobile number as text
Step10:This should prompt the message Enter the mobile number as Number
Step11: Click on the add Button the information will be save on the database
Implementation
Implementation is the stage in the project where the theoretical design in turned into a
working system and is giving confidence and the new system for the users that it in work
efficiently and effectively. It involves careful planning, investigation of the current system
and its constrains on implementation, design of methods to achieve the change over, and
evaluation of change over methods. Apart from planning major task of preparing the
implementation are education and training of users. The implementation process begins with
preparing a plan for implementation of the system. According to this plan the activities are to
be carried out, discussions made regarding the equipment and resources and the additional
equipment as to be acquired to implement the new system. In network backup system no
additional resources are needed.

5. CONCLUSION

The conclusion arrived at, is that the maintenance of this project which has been
developed is totally beneficial in all aspects, considering the data accuracy or data security or
data access speed or even in case of usage. The project has met its objectives. The system has
been thoroughly tested with various test and found to be fit for implementation. The system
reliability is high and enough security has been provided. The objectives of the system have
been achieved.
The goals that have been achieved are:

Ensure process time and increase throughput.


Simplifies the operation.
Avoid some manual work in the existing system.
Reduce data redundancy and inconsistency.
User friendly input screens to enter data.
Provide uniformity among all screen formats
The system works in high speed and accuracy
It handles bulk amount of data
Immunization of the system from unauthorized user accesses

BIBILOGRAPHY
The following books were referred the analysis and execution phase of the
project.

REFFERENCE BOOK

WEB REFERENCES

1. www. Vb.net tutorial.com


2. www.vb.net-msacces-tutorial.com
3. www.tutorialspoint.com
4. www.vb.net
5. www.w3schools.com

Appendices
a) Data Flow Diagram
Level 0

Admin

Login

Level 1
Main Form

Report

Apartment
details

First block
details

Second block
detail details
==ddetails

Third block
details
DEdetails

Personal
details

Billing
details

Maintenance
details

Report

b) Sample Coding
Login
Public Class Form2

Report

Report

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles cmd_submit.Click
If (txt_username.Text = "emperors" And txt_password.Text = "msccs") Then
Form3.Show()
Else
MsgBox("enter correct password")
End If
End Sub
Private Sub cmd_quit_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles cmd_quit.Click
End
End Sub
End Class

Apartment details
PublicClass Form3
Dim inc AsInteger
Dim maxrows AsInteger
Dim con AsNew OleDb.OleDbConnection
Dim cmd AsNew OleDb.OleDbCommand

Dim dbprovider AsString


Dim dbsource AsString
Dim ds AsNew DataSet
Dim da As OleDb.OleDbDataAdapter
Dim sql AsString
PrivateSub Form3_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)
HandlesMyBase.Load
Dim con AsNew OleDb.OleDbConnection
con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\project\db3.mdb"
con.Open()
sql = "SELECT * FROM apartment"
da = New OleDb.OleDbDataAdapter(sql, con)
da.Fill(ds, "db3")
con.Close()
maxrows = ds.Tables("db3").Rows.Count
inc = 1
rft.Text = "WIFI CONNECTION
WATER CAR PARKING
LIFT"
EndSub

PrivateSub navigate()
txt_apname.Text = ds.Tables("db3").Rows(inc).Item(0)
rft.Text = ds.Tables("db3").Rows(inc).Item(1)
txt_ownername.Text = ds.Tables("db3").Rows(inc).Item(2)
txt_age.Text = ds.Tables("db3").Rows(inc).Item(3)
combo1.Text = ds.Tables("db3").Rows(inc).Item(4)
txt_totalflats.Text = ds.Tables("db3").Rows(inc).Item(5)
txt_totalblocks.Text = ds.Tables("db3").Rows(inc).Item(6)
txt_totalnoofrentedflats.Text = ds.Tables("db3").Rows(inc).Item(7)

txt_vacantflats.Text = ds.Tables("db3").Rows(inc).Item(8)
Combo2.Text = ds.Tables("db3").Rows(inc).Item(9)
EndSub
PrivateSub add_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles cmd_add.Click
Dim con AsNew OleDb.OleDbConnection
con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\project\db3.mdb"
con.Open()
sql = "insert into apartment values('"& txt_apname.Text &"', '"& rft.Text &"', '"&
txt_ownername.Text &"','"& txt_age.Text &"','"& combo1.Text &"','"& txt_totalflats.Text
&"','"& txt_totalblocks.Text &"','"& txt_totalnoofrentedflats.Text &"','"& txt_vacantflats.Text
&"','"& Combo2.Text &"')"
cmd = New OleDb.OleDbCommand(sql, con)
cmd.ExecuteNonQuery()
MsgBox("Record Added")
con.Close()
EndSub

PrivateSub delete_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles cmd_delete.Click
con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\project\db3.mdb"
con.Open()
sql = "delete * from apartment where apartmentname='"& txt_apname.Text &"'"
cmd = New OleDb.OleDbCommand(sql, con)
cmd.ExecuteNonQuery()

MsgBox("records successfully deleted")


con.Close()
EndSub
PrivateSub update_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles cmd_update.Click
Dim con AsNew OleDb.OleDbConnection
con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\project\db3.mdb"
con.Open()
sql = "update apartment set apartmentname='"& txt_apname.Text &"',facilities='"&
rft.Text &"',ownername='"& txt_ownername.Text &"',age='"& txt_age.Text &"',sex='"&
combo1.Text &"',totalflats='"& txt_totalflats.Text &"',toalblocks='"& txt_totalblocks.Text
&"',totalnoofrentedflats='"&
txt_totalnoofrentedflats.Text
&"',vacantflats='"&
txt_vacantflats.Text &"',rentamount='"& Combo2.Text &"' where apartmentname='"&
txt_apname.Text &"'"
cmd = New OleDb.OleDbCommand(sql, con)
cmd.ExecuteNonQuery()
MsgBox("Record update")
con.Close()
EndSub

PrivateSub clear_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles cmd_clear.Click
txt_apname.Clear()
rft.Clear()
txt_ownername.Clear()
txt_age.Clear()
txt_totalflats.Clear()
txt_totalblocks.Clear()
txt_totalnoofrentedflats.Clear()

txt_vacantflats.Clear()
EndSub
PrivateSub cmd_exit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles cmd_exit.Click
Close()
EndSub

PrivateSub cmd_next_Click(ByVal sender


System.EventArgs) Handles cmd_next.Click

As

System.Object,

ByVal

As

If inc <> maxrows - 1 Then


inc = inc + 1
navigate()
Else
MsgBox(" no more rows", MsgBoxStyle.Exclamation)
EndIf
EndSub

PrivateSub cmd_first_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles cmd_first.Click
If inc <> 0 Then
inc = 0
navigate()
EndIf
EndSub

PrivateSub cmd_submit_Click(ByVal sender


System.EventArgs) Handles cmd_submit.Click

As

System.Object,

ByVal

As

Form4.Show()
EndSub

PrivateSub cmd_last_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles cmd_last.Click
If inc <> maxrows - 1 Then
inc = maxrows - 1
navigate()
EndIf
EnPrivateSub TextBox4_TextChanged(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles txt_vacantflats.TextChanged
txt_vacantflats.Text = Val(txt_totalflats.Text) - Val(txt_totalnoofrentedflats.Text)
EndSub
EndClass

You might also like