58
APARTMENT MANAGEMENT SYSTEM Synopsis This project entitled “Apartment management system” is developed by u VB.NET as front end and !.A""E!! as bac# end. $n present trend this soft%a application is used in our day to day life. This application is used to red manual %or# and complete %or# in short time and the data %ill be secure. Al %or# to be maintained and updates the database as time to time apartment management system contains the admin form& apartment details& blo details& maintenance details& personal details and billing details. The first module is the admin to enter the username and pass%ord. The username and pass%ord is it %ill go to the ne't module. The second module customer can vie% the info about the apartment details li#e apartment name& facilities& total number o number of bloc#s& vacant flats& rent amount& o%ner name& age and se'. The t module is the first bloc# details has contain total flats& rented flats& va flats& rent amount& service charge& ta' and first bloc# monthly e'panses. T module is the second bloc# details has contain total flats& rented flats& v o%n flats& rent amount& service charge& ta' and second bloc# monthly e'pans fifth module is the second bloc# details has contain total flats& rented fl flats& o%n flats& rent amount& service charge& ta' and second bloc# monthly The si'th module is the maintenance has contain first bloc# monthly e'panse bloc# monthly e'panses third bloc# monthly e'panses and total amount .The module is the personal details has contain name& age& address& family membe mobile number and flats. The final module of apartment management system is billing has contain name& flats& amount paying date and signature of the o

appartment managementDocument

Embed Size (px)

DESCRIPTION

apartment management with vb

Citation preview

APARTMENT MANAGEMENT SYSTEMSynopsisThis 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.INTRODUCTIONApartment 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 Specification1.1.1 Hardware ConfigurationProcessor : Intel dual coreBoard : Intel ChipsetRAM: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 DescriptionVB.NETThe 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 known as managed code, while code that dose not target the

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 SystemCTS Common Type SystemThis 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 SpecificationThis 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 LanguageAll 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 CompilerThe 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 SystemVirtual 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 LibraryThe .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 effectivelyMS ACCESS:Microsoft office database management system is fromMicrosoftthat combines thenwith graphical user interfaceandsoftware-development tools. It is a member of theMicrosoft Officesuite 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 DatabaseEngine. It can also import or link directly to datastored in other applications and databases.

Software developersanddata architectscan use Microsoft Access to applications. Like otherOffice applications, Access is supported byVisual Basic for Applications, anobject-orientedprogramming language that can reference a variety of objects including DAO (Data Access Objects),ActiveXData Objects, and many other ActiveX components. Visual objects used in forms and reports expose their methods and properties in the VBA programming environment, and VBA code modules may declare and callWindowsoperating-systemfunctions

2. SYSTEM STUDY2.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 DEVELOPMENT3.1 Input DesignInput 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 DesignOutput 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 DesignThe 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 detailsDatabase Name : db3

Data FieldData Types

Total flatsNumber

Tented flatsNumber

Vacant flatsNumber

Own flatsNumber

Rent amountNumber

Service chargeNumber

TaxNumber

First block monthly expansesNumber

Table Name : Second block detailsDatabase Name :db3

Data FieldData Types

Total flatsNumber

Tented flatsNumber

Vacant flatsNumber

Own flatsNumber

Rent amountNumber

Service chargeNumber

TaxNumber

Second block monthly expansesNumber

Table Name : Third block detailsDatabase Name : db3Data FieldData Types

Total flatsNumber

Tented flatsNumber

Vacant flatsNumber

Own flatsNumber

Rent amountNumber

Service chargeNumber

TaxNumber

Third block monthly expansesNumber

Table name :maintenance detailsDatabase name :db3

Data FieldData Types

First block monthly expansesNumber

Second block monthly expansesNumber

Third block monthly expansesNumber

Total amountNumber

Table name :personal detailsDatabase name :db3

Data FieldData Types

NameText

Family membersNumber

AddressText

AgeNumber

SexText

FlatsText

Mobile numberNumber

Table name :Billing detailsDatabase name : db3Data FieldData Types

NameText

FlatsText

Rent amountNumber

3.5 System Development3.5.1 Description of modulesThe 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 DetailsThis 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 DetailsThe 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 DetailsThe 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 DetailsThe 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 IMPLEMENTATIONUnit TestingUnit 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 TestingText case scenarioLogin FormSuccessful scenarioStep1: Login into the Form Step2: Enter the usernameStep3: Enter the passwordStep4: Click on the Submit ButtonStep5: This will be move to the next FormUnsuccessful scenarioStep1: Login into the Form Step2: Enter the user name

Step3: Enter the incorrect passwordStep4: Click on the Submit Button Step5: This should be prompt the message Your password is IncorrectApartment DetailsSuccessful 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 flatsStep8: Enter the total blocksStep9: Enter the total number of rented flatsStep10: 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 ButtonStep12: This information are save in the databaseUnsuccessful scenarioStep1: Login into the apartment detailsStep2: Enter the apartment name

Step3: The facilities will be display on the screenStep4: Enter the owner nameStep5: Enter the ageStep6: Enter the genderStep7: Enter the total flats as textStep8: This should prompt the message Enter the total flats as NumberStep9: Enter the block detailsStep10: Enter the total number of rented flatsFirst Block DetailsSuccessful scenarioStep1: Enter the first block detailsStep2: Enter the total flatsStep3; Enter the rented flatsStep4: Enter the own flatsStep5: Enter the service charge Step7: Enter the rent amountStep8: The rent amount, service charge and tax these will be calculate and display in the form first block monthly expansesStep9: Click the add Button the information are save on the databaseStep10: 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 scenarioStep1: Enter the first block details

Step2: Enter the total flatsStep3; Enter the rented flatsStep4: Enter the own flatsStep5: Enter the service chargeStep6: Enter the taxStep7: Enter the rent amount as textStep8: This should prompt the message Enter rent amount as NumberStep9: : The rent amount, service charge and tax these will be calculate and display in the form first block monthly expansesStep10: Click the add Button the information are save on the databaseStep11: 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 databaseBilling DetailsSuccessful scenarioStep1: Enter the billing FromStep2: Enter the name as textStep3: Choose the flats weather that flats are rented flats or own flatsStep4:If the flats are rented flats choose the rent amount to that fieldStep5: Click the add Button. This information will be store on the databaseStep6: Click on the print Button. The bill will be printedUnsuccessful scenarioStep1: Enter the billing From

Step2: Enter the name as text as NumberStep3: This should prompt message Enter the name as stringStep4: Choose the flats weather that flats are rented flats or own flatsStep5:If the flats are rented flats choose the rent amount to that fieldStep6: Click the add Button. This information will be store on the databaseStep7: Click the print Button. If the printer is not available. This should prompt the message printer is not availableStep6: Click on the print Button. The bill will be printedPersonal DetailsSuccessful scenarioStep1: Login into the personal detailsStep2: Enter the customer nameStep4:Enter the family membersStep5: Enter the addressStep6: Enter the customer ageStep7: Enter the gender weather that person is male or femaleStep8: Choose the flats weather that flats are rented flats or own flatsStep9: Enter the mobile number Step10: Click add Button the information will be save on the databaseUnsuccessful scenarioStep1: Login into the personal detailsStep2: Enter the customer name

Step4:Enter the family membersStep5: Enter the addressStep6: Enter the customer ageStep7: Enter the gender weather that person is male or femaleStep8: Choose the flats weather that flats are rented flats or own flatsStep9: Enter the mobile number as textStep10:This should prompt the message Enter the mobile number as NumberStep11: Click on the add Button the information will be save on the databaseImplementationImplementation 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. CONCLUSIONThe 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 accessesBIBILOGRAPHYThe 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.net5. www.w3schools.comAppendicesa) Data Flow DiagramLevel 0

Login Report Adminn

Main FormLevel 1

Billing details

Third block details DEdetailsSecond block detail details ==ddetailsFirst block detailsPersonal detailsApartment details

Maintenance details

ReportReportReport

b) Sample Coding LoginPublic Class Form2

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 detailsPublicClass Form3

Dim inc AsIntegerDim 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 As System.Object, ByVal e As System.EventArgs) Handles cmd_next.Click

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 As System.Object, ByVal e As System.EventArgs) Handles cmd_submit.Click

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)

EndSubEndClass