CRM (A Client Relationship Management System) 1.

Introduction Of Visual Basic
What is Visual Basic: Visual Basic is not just a language it's an Integrated Development Environment in which you can develop, run, test and debug your applications. Standard EXE: A standard E E project is a typical application most o! the application in this language art standard E E project. Active X EXE, Active DLL: Active components are basic code"building components that do not have a visible inter!ace and that can add special !unctionality to your application. Active X !ontrol: Active control such as a #e$t Bo$ or %ommand Button control is a basic element o! the user inter!ace.I! the Active control, that come with visual basic do not provide the !unctionality you need, you can build your own custom controls . Active X Docu"ent EXE, Active X Docu"ent DLL: #hat can run in the environments o! a container that supports hyper lin&ing. VB A##lication Wi$ard, VB Wi$ard %ana&er: #he application wi'ard ta&es you through the stenos o! setting up the (&elton o! a new application. Data 'ro(ect: It is identical to the (tandard E E project type, but it automatically

96

CRM (A Client Relationship Management System)
adds the controls that are used in accessing databases to the toolbo$. D)*% A##lication: VB) allows you to build dynamic *#+, page that can be displayed in the browser's window on a client computer.Instead o! showing you how to use VB's tool to automate the process o! designing"D*#+, pages. )S A##lication: VB) allows you to build applications that run on the web server and interact with client over the internet with the internet in!ormation server. VB Enter#rise Edition !ontrols: It simply creates a new standard E E project and load all the tools o! the enterprise edition o! VB. 'ro(ect E+#lorer: #he window tootled project e$plorer displays the components o! the project .#he project window is called project e$plorer because it has the loo& o! the window e$plorer. 'ro#erties Windo,: #he property window contains the property o! setting !or the selected control properties are attributes o! an object ,such as its si'e, caption and color . -ou can adjust the appearance o! the controls and the !orm with point and clic& operations. -or" Desi&ner: #he !orm designer is the main window in the middle o! the screen ,and in it you design and edit the applications user inter!ace .#he same windows display a test editor in which you can enter and edit the application's code.

96

CRM (A Client Relationship Management System)
-or" La.out: -ou use the !orm layout window, which is in the lower right corner o! the VB ID,, to determine the initial positions o! the !orms in your application. -ou can move !orms around and place them on too o! each other. I""ediate Windo,: #he immediate window, the bottom o! the IDE is a debugging while an application is running, you can stop it and use the immediate window to e$amine the change in value o! the application variable and to e$ecute VB commands in immediate mode. *he %enu Bar: #he menu bar contains the commands you need wor& with Visual Basic. #he basics menu are"""""" • -ile: #hat contains the commands !or opening and saving projects and creating e$ecutable !iles and list o! recent projects. • Edit: Edit contains the editing commands .e.g."/ndo, %opy, 0aste1 plus a number o! commands !or !ormatting and editing your code .e.g 2ind, 3eplace1. • Vie,: View contains commands !or showing o! hiding components o! the IDE. 'ro(ect: 0roject contains commands that add components to current project, re!erences to windows and new tools to the tool bo$.

96

*ools: #ools contains the tools you need in building Active components and Active controls contains the commands to start the +enu Editor and the options commands. Windo. 96 .: 4uery contains commands that simpli!y the design o! structures 4uery .1. De/u&: Debug contains the usual debugging commands. )el#: *elp contains !ormation to help you as you wor&.CRM (A Client Relationship Management System) -or"at: 2ormat contains commands !or aligning the control on the !orm. brea& an e$ecution o! the current application. *)E ELE%E2* 3SE I2 *)E I2-O1%A*IO2 #he toolbo$ o! the visual IDE and let6s 7uic&ie run through controls shown in the #oolbo$.: 5indows is the standard 5indows menu o! an application that contains commands it arrange on the screen. 0uer.anguage.(4. 1un: 3un contains commands that start. Dia&ra": Diagram contains commands !or e!!ecting database diagrams. which lets the customi'e the environment.

!o""and Button: %ommand button6s represented an action that is carried out when the user clic& the button. and 2alse otherwise. O#tion Button: #he 8ption Button6s main property is chec&ed.ist bo$ control can contains many lines and the user can scroll the list to locate an item. -ra"e: #his control is used to draw bo$es on the !orm and to group other elements. which can set the te$t on the control or read the te$t that the user enters.CRM (A Client Relationship Management System) La/el: #he .abel te$t appears to be placed directly on the !orm. #he item selected !rom the list. #he selected item in a list bo$ control is given by the te$t property. *e+t Bo+: #he #e$tbo$ control is a mini te$t editor.1 List Bo+: . Sha#e: 96 .or entered in the Edit !ield. and its most important property is the te$t property. -ou set the label6s te$t with the caption property. #he user can choose an item !rom the list oriented a new string in the Edit !ield. and it is #rue i! the control is chec&ed. !o"/o Bo+: It contains an Edit !ields.

" < *a/le: It holds in!ormation. < 'a&es: 0ages are *#+. 96 . -our phone boo& is a simple database and so is your chec&boo&. Access is a !le$ible program that wor&s !or both simple and comple$ database projects. *ere the &inds o! the objects are.*yperte$t +ar&up .et you as& 7uestion about your data or ma&e changes to data. %S-le+ 4rid !ontrol: #he +(2le$ 9rid %ontrol is an e$tremely used tool !or displaying in!ormation in a tabular !orm. but not !or data entry. %icrosoft Access Data/ase: A database is a collection o! data. which means it lets you de!ine relationships between di!!erent types o! in!ormation. < 0ueries: .anguage1 !iles that let you view access database with internet e$plorer. in an access database. . It6s also a relational database.CRM (A Client Relationship Management System) #his control is used to draw graphical element such as bo$es and circles. on the sur!ace o! a !orm. A history o! a companies order. as is a log o! a sale persons contacts with clients and any related !ollows"up plans. But there are other important elements. usually re!errers to as objects.li&e customers and their orders1 so you can use them together. < -or"s: 2orms are !or viewing and editing in!ormation. invoice: and payments is an e$ample o! a more complicated database. O/(ects Of An Access Data/ase: #he heart o! a database is the in!ormation it holds.

: 0rovides security through password when the database is opened in E$clusive mode. #he 0rogramming .CRM (A Client Relationship Management System) < 1e#orts: 3eports is !or summari'ing and printing data.Visual Basic.anguage included with 8!!ice =>>>1 to automate and customi'e database !unctions. < %ulti 3ser: Allows multi"user access to database !or users created in Access. < Securit. 96 . < %acros: +acros per!orms one or more database actions automatically. %odules are another type o! access object that you may or may not wor& with. A module is a program you write using VB.

96 . design cast and populated with data !or a speci!ic purpose. the objects. build and populated data !or a speci!ic purpose. Identi!y a relationship between objects *ence. Identi!y what speci!ic objects in that part o! the world data are o! interest to us. #o be able to success!ully design and maintain database we have to do the !ollowing"""" Identi!y which part o! the world data is o! interest to us. #his data is only part o! the entire data available in the world around us.+(Access is a power !ull tool o! ms o!!ice which allow to create data base and also have ability to maintain a data base. I2*1OD3!*IO2 *O %S A!!ESS It is a coherent connection o! data with some minaret meaning. A data base stores data that is use!ul to us.CRM (A Client Relationship Management System) 5. their attributes and the relationship between them that are o! interest to us are stored in data base that is designed. +( Access is developed by +icroso!t according to above consideration .

which is sometimes also called top" level design. #he design activity is o!ten divided into two separate phases. which is independent o! the target language in which the so!tware will eventually be implemented. In other words. #he design o! a system is perhaps the most critical !actor a!!ecting the 7uality o! the so!tware: it has a major impact on the later phases? particularly testing and maintenance." @1 (ystem Design =1 Detail Design @1 S. During this phase !urther set ails o! the data structures and algorithmic design o! each o! the modules is speci!ied. #his phase is the !irst step in moving !rom the problem domain to the solution domain. =1 Detail Desi&n: During the detail design? the internal logic o! each o! the modules speci!ied in system design is decided.ste" Desi&n: (ystem Design. At the end o! system design all major data structures. !ile !ormats. testing and maintenance. starting with what is needed. the speci!ication o! these modules. S. 96 . aims to identi!y the modules that should be in the system. #his document is similar to a blueprint or plans !or the solution and is used later during implementation. #he logic o! a module usually speci!ied in a high"level design description language. and the major modules in the system and their speci!ications are decided.CRM (A Client Relationship Management System) 6. #he output o! this phase is the design document. and how they interact with other to produce results.ste" Desi&n #he purpose o! the design phase is to plan a solution o! the problem speci!ied by the re7uirements document. design ta&es us toward how to satis!y the needs. output !ormats.

5 Validation 1ules #his so!tware !ollows the several validation rules. you can6t e$ceed them.. Each !ield having the ma$imum length. Acc." A Account Detail +odule A #ransaction Detail +odule A %reate account +odule 6. =. (ome !ield li&e B0in %ode." @. by avoiding them user can6t ma&e the entries possible.CRM (A Client Relationship Management System) 6."#he ban&ing system is organi'ed into the !ollowing modules. and 0hone Co.1 %odule Brea7u# 8 Descri#tion < %odules of the 'ro(ect. #he validation rules are as !ollows. Co. 96 . can accept numbers. (o &eep in mind all these rules during the data entry process.

these re7uirements are . -easi/ilit. • #he data entered by the user should be stored in a particular !ile permanently. description D the selection o! the best system !or the job. 9. 2easibility study is a test o! the system o! the system proposals according to its wor& ability and to meet the user needs and the e!!ective use o! the resources. • 5hat resources are available !or the given system is the problem worth solving. which entails the identi!ication. • At the time o! deletion and modi!ication o! a particular record the record corresponding to its will be displayed on the screen with alternation. • 5hat are the users6 demonstrable needs and how does a candidate system meet them. It is carried out to select the best system that meets the per!ormance re7uirements. 96 . • 5hat is the li&ely impact o! the candidate system on the organi'ation how well does it !it within the organi'ation master +I( planE 9.1 *his stud. Stud.we develop a suitable project to !ul!ill these re7uirements. focuses on three "a(or :uestions.5 3ser de"onstra/le needs : It means seeing all the user re7uirements and by considering these re7uirements . • At any point o! time the user can e$it !rom the program.CRM (A Client Relationship Management System) 9.

CRM (A Client Relationship Management System)
9.6 'ro/le" ,orth solvin&:
#he problem studies lead to three candidate solutions; • Do nothing • Improve the e$isting manual redundancy. • %omputeri'e the manual system

system by reducing

duplicity

and

By thoroughly studying the three options, the third solution technically is most !easible.

9.9 -easi/ilit. !onsideration:
#hree &ey consideration are involved in the !easibility analysis; economic, technical, and behavioral.

i;Econo"ic -easi/ilit.; Economic analysis is the most !re7uently used
method !or evaluating the e!!ectiveness o! a candidate system . +ore commonly Fnown as costGbene!it analysis, the procedure is to determine the bene!its and savings that are e$pected !rom a candidate the decision is mind to design and implement the system. 8therwise !urther justi!ication or alterations in the proposed system will have to be made i! it is to have a chance o! being approved. #his is an ongoing e!!ort that improves in accuracy o! each phase o! the system li!e cycle. • #he records displayed should be page wise.

96

CRM (A Client Relationship Management System)
ii;*echnical -easi/ilit.: #echnical !easibility centers around the
e$isting computer system .hardware, so!tware etc1 and to what e$tent it can support the proposed addition. 2or e$ample, i! the current computer is operating at H> per cent capacity" an arbitrary ceiling then running another application could overload the system or re7uire additional hardware. #his involves !inancial considerations to accommodate technical enhancements. I! the budget is a serious constraint, then the project is judged not !easible.

9.< Ste#s in -easi/ilit. Anal.sis
2easibility analysis encompasses eight steps; @1 2orm a project team and appoint a project leader. =1 0repare systems !low charts. I1 Enumerate potential candidate system. J1 Describe and identi!y characteristics o! candidate systems. K1 Determine and evaluate per!ormance and cost e!!ectiveness o! each candidate system. )1 5eight system per!ormance and cost data. L1 (elect the best candidate system. H1 0repare and report !inal project directive to management.

96

CRM (A Client Relationship Management System)

96

• Document the business re7uirement clearly in a concise and easily understood manner to business Gend user.S1S: #he document covers the detailed description o! the di!!erent process. #he details include. < Description o! process." • Document the di!!erent business process o! department . • (erve as a basis !or !uture enhancements.CRM (A Client Relationship Management System) 5. < Assumptions dependencies and constraints.1'ur#ose of S1S: #he purpose o! this document is to. • (erve as a baseline document !or development team.in detail . • (erve as baseline !or validation and veri!ication. < proposed process model.5 S!O'E O. SOFTWARE REQUIRMENT SPECIFICATION <. 96 . <.

-1X -or"1. data .fr" %od1.fr" -or"5. D-D>Data -lo.O!X 96 . Dia&ra".CRM (A Client Relationship Management System) =.BAS Standard "odules .!LS !lass "odule .-1% ./as !lass1. -or" %odules Binar.cls : : .

e+e 1esources files .1ES 'ro(ect file V#/ 96 .CRM (A Client Relationship Management System) !usto" controls A##.

CRM (A Client Relationship Management System) 7. FORM DESIGN AND FORM CODING 96 .

(et2ocus End I! End (ub 0rivate (ub %mdE$itN%lic&.PO.#ag #hen +DI2orm@.1 /nload +e End (ub 0rivate (ub %md8&N%lic&.#e$t M OO #$t0assword.CRM (A Client Relationship Management System) 0rivate (ub . vbIn!ormation.FeyAscii As Integer1 I! FeyAscii M @I #hen #$t0assword..(et2ocus E$it (ub 96 ..1 I! %bo/serCame..%aption #$t0assword.#e$t M #$t0assword... +e.Visible M #rue +DI2orm@.(et2ocus /nload +e Else +sgBo$ O0lease 2ill #he %orrect /ser Came D 0assword.#e$t M OAdministratorO And #$t0assword.

e!t #hen .e!t M .1 I! .Auto0lay M #rue Ani5ait.8pen App.(et2ocus End I! End (ub 96 .FeyAscii As Integer1 I! FeyAscii M @I #hen %md8&.blData.blCew.blData..Enabled M #rue Ani5ait.e!t R .3e!resh E$it (ub errh..e!t " => End I! End (ub 0rivate (ub #$t0asswordNFey0ress..oad.5idth S ..0ath D OQ2ile%omm.AVIO +e.e!t M K>J> Else .blData.. 3esume Ce$t End (ub 0rivate (ub #imer@N#imer.CRM (A Client Relationship Management System) End I! End (ub 0rivate (ub 2ormN.1 8n Err 9o#o errh #imer@.blData.blData.

CRM (A Client Relationship Management System) 96 .

Visible M #rue !rm%on!iguration+gmt.%aption E$it (ub Else Dr%lient.%onnection(tring M gstrmasterconn myde.1 Dim myde As De3eports (et myde M Cew De3eports Dim lconn As AD8DB. vbIn!ormation.1 2rm%lient+aster.oad.Visible M #rue 2rm%lient+aster.1 !rmBac&ground.rs%md%lient.Visible M #rue End (ub 0rivate (ub +nu%%+N%lic&. +e.1 !rm%on!iguration+gmt.(et2ocus End (ub 0rivate (ub +Cu%lientN%lic&.%onnection (et lconn M 8pen%on.(how End I! End (ub 0rivate (ub +nu%+N%lic&.rs%md%lient.CRM (A Client Relationship Management System) 0rivate (ub +DI2ormN.%onn3eports.O.8pen myde.1 96 .3ecord%ount S @ #hen +sgBo$ OCothing to (ave.8pen I! myde.%onn3eports.lconn1 myde.3e!resh Dr%lient.(et2ocus End (ub 0rivate (ub +nu%lients3eportsN%lic&.

(et2ocus End (ub 0rivate (ub +nudailyN%lic&.1 Dim myde As De3eports (et myde M Cew De3eports Dim lconn As AD8DB.%onn3eports.%onn3eports.(how End I! End (ub 0rivate (ub +nuD53N%lic&.%onn3eports. vbIn!ormation.CRM (A Client Relationship Management System) !rm%all+gmt.lconn1 myde.3ecord%ount S @ #hen +sgBo$ OCothing to (ave.%onnection(tring M gstrmasterconn myde.(et2ocus End (ub 0rivate (ub +nuE3N%lic&.8pen myde.O.1 !rmdailyreport.rs%mdDaily.Visible M #rue !rmdailyreport.rs%mdEmployee.rs%mdDaily. +e.%onnection(tring M gstrmasterconn myde.%onn3eports.rs%mdEmployee.8pen I! myde.lconn1 myde.8pen I! myde.%aption E$it (ub Else DrDaily.%onnection (et lconn M 8pen%on.1 Dim myde As De3eports (et myde M Cew De3eports Dim lconn As AD8DB.3e!resh DrDaily.%onnection (et lconn M 8pen%on.8pen myde.3ecord%ount S @ #hen 96 .Visible M #rue !rm%all+gmt.

3ecord%ount S @ #hen +sgBo$ OCothing to (ave.CRM (A Client Relationship Management System) +sgBo$ OCothing to (ave.O.rs%md0rojects.rs%md0rojects.O.(et2ocus End (ub 0rivate (ub +nu0I3N%lic&.Visible M #rue !rm0endency.%onnection (et lconn M 8pen%on.(how End I! End (ub 0rivate (ub +nu+50(N%lic&.Visible M #rue !rm+odule(tatus.ine(upport. +e.(et2ocus End (ub 0rivate (ub +nu8C(+N%lic&.(et2ocus End (ub 0rivate (ub +nu0rojectsN%lic&.1 !rm+odule(tatus.lconn1 myde.3e!resh DrEmployee.%aption E$it (ub Else 96 .1 Dim myde As De3eports (et myde M Cew De3eports Dim lconn As AD8DB.%onnection(tring M gstrmasterconn myde.8pen I! myde.1 !rm0endency.%onn3eports.ine(upport.8pen myde. +e.%aption E$it (ub Else DrEmployee. vbIn!ormation.Visible M #rue !rm8n.1 !rm8n. vbIn!ormation.%onn3eports.

(how End I! End (ub 0rivate (ub +nu#eamN%lic&.3e!resh Dr0rojects.1 2rmwee&ly(chedule.1 !rmemployee.Visible M #rue !rmproject.Visible M #rue !rmemployee.(et2ocus End (ub 0rivate (ub +nu0rojectN%lic&.(et2ocus End (ub 0rivate (ub +nu5(N%lic&.Visible M #rue 2rmwee&ly(chedule.1 !rmproject.1 2rm3eports.(et2ocus End (ub 0rivate (ub +nu5ee&lyN%lic&.CRM (A Client Relationship Management System) Dr0rojects.Visible M #rue 2rm3eports.(et2ocus End (ub 96 .

ist !illNlistp 96 .CRM (A Client Relationship Management System) 0rivate (ub .1 2illN.

Add.#e$t M #$t%add.3ecord%ount (et l$ M lstNproj.%lear (et rs M lconn.istItems.#e$t Else t$tNadd.#NnameO1 I! rs.#e$t t$tNadd..#Nname.1 8n Err 9o#o errh Dim l$ As .+oveCe$t Ce$t i End I! E$it (ub errh.O(E.lconn1 lstNproj..E$ecute.#e$t M #$t%0in.#e$t t$tNdis. vb%ritical R vbApplication+odal.CRM (A Client Relationship Management System) End (ub 0rivate (ub !illNlistp.#e$t M t$tNadd.E%# project.#e$t M #$t%district.#ag M rsPCNcode rs.#e$t t$tNcountr.3ecordset (et lconn M 8pen%on.CNcode 2rom project 83DE3 B. .istItem Dim lconn As AD8DB. project.Description.B82 8r rs. +sgBo$ Err.istItems.#e$t M #$t%country.#e$t t$tNstate.#ag 96 . rsP#Nname1 l$.1 I! %hec&@.%onnection Dim rs As AD8DB.#e$t M #$t%city.E82 #hen Else 2or i M @ #o rs. OErrorO E$it (ub 3esume End (ub 0rivate (ub %hec&@N%lic&.project..#e$t M #$t%(tate.Value M @ #hen t$tNcity.#e$t t$tNpin.

CRM (A Client Relationship Management System)
t$tNcity.#e$t M t$tNcity.#ag t$tNdis.#e$t M t$tNdis.#ag t$tNpin.#e$t M t$tNpin.#ag t$tNstate.#e$t M t$tNstate.#ag t$tNcountr.#e$t M t$tNcountr.#ag End I! End (ub 0rivate (ub 2illN,ist.1 8n Err 9o#o errh Dim l$ As ,istItem Dim lconn As AD8DB.%onnection Dim rs As AD8DB.3ecordset (et lconn M 8pen%on.lconn1 listNrec.,istItems.%lear (et rs M lconn.E$ecute.O(E,E%# A 2rom client 83DE3 B- client.CNIDO1 I! rs.B82 8r rs.E82 #hen Else 2or i M @ #o rs.3ecord%ount (et l$ M listNrec.,istItems.Add., , listNrec.,istItems.%ount R @1 l$.(ubItems.@1 M II!.IsCull.rsPCNId1, OO, rsPCNId1 l$.(ubItems.=1 M II!.IsCull.rsP#Nname1, OO, rsP#Nname1 l$.(ubItems.I1 M II!.IsCull.rsP#Nclientcoordinators1, OO, rsP#Nclientcoordinators1 l$.(ubItems.J1 M II!.IsCull.rsPDNdate1, OO, rsPDNdate1 l$.(ubItems.K1 M II!.IsCull.rsP#Nlocaladd1, OO, rsP#Nlocaladd1 l$.(ubItems.)1 M II!.IsCull.rsP#N%ity1, OO, rsP#N%ity1 l$.(ubItems.L1 M II!.IsCull.rsP#NphoneNno1, OO, rsP#NphoneNno1 rs.+oveCe$t Ce$t i End I! E$it (ub errh; +sgBo$ Err.Description, vb%ritical R vbApplication+odal, OErrorO E$it (ub 3esume End (ub

96

CRM (A Client Relationship Management System)
0rivate (ub cmdNdelN%lic&.1 8n Err 9o#o errh Dim lconn As AD8DB.%onnection (et lconn M 8pen%on.lconn1 ans M +sgBo$.ODo -ou 3eally 5ant #o Delete #he (elected Data.O, vb4uestion R vb-esCo, +e.%aption1 I! ans M ) #hen lconn.E$ecute ODelete A2rom client where CNIDM'O D t$tNid.#e$t D O'O lconn.E$ecute ODelete A 2rom clientNproject where clientNIdM'O D t$tNid.#e$t D O'O +sgBo$ OData Delete (uccess!ully.O, vbIn!ormation, +e.%aption End I! %learN%ontrols 2illN,ist E$it (ub errh; +sgBo$ Err.Description, vb%ritical R vbApplication+odal, OErrorO E$it (ub 3esume End (ub 0rivate (ub %mdE$itN%lic&.1 I! cmde$it.%aption S< OD%ancelO #hen /nload +e Else save.%aption M OsaveO %learN%ontrols cmde$it.%aption M ODe$itO End I! End (ub

0rivate (ub saveN%lic&.1 8n Err 9o#o errh Dim lconn As AD8DB.%onnection Dim l$ As ,istItem

96

CRM (A Client Relationship Management System)
(et lconn M 8pen%on.lconn1 I! t$tNid.#e$t M OO #hen +sgBo$ O0lease !ill the id valueO, vb%ritical t$tNid.(et2ocus E$it (ub End I! I! t$tNname.#e$t M OO #hen +sgBo$ O0lease !ill the nameO, vb%ritical t$tNname.(et2ocus E$it (ub End I! I! save.%aption S< OD+odi!yO #hen (et rs M lconn.E$ecute.O(E,E%# client.CNId !rom client O1 2or i M @ #o rs.3ecord%ount (et l$@ M listNrec.,istItems j M II!.IsCull.rsPCNId1, OO, rsPCNId1 I! .t$tNid.#e$t M j1 #hen +sgBo$ OId E$istP 0lease !ill another id valueO, vb%ritical t$tNid.#e$t M OO t$tNid.(et2ocus E$it (ub End I! rs.+oveCe$t Ce$t i lconn.Begin#rans lconn.E$ecute OIC(E3# IC#8 client .CNId, #Nname, #NphoneNno, #Ndomain, #NemailNid, #Nclientcoordinators, DNdate, #Nlocaladd, #Ncity, #Ndis, CNpin, #Nstate, #Ncountry, #N!a$, #Nwebadd, #Nintroducer, #Nclass, #Ncategory, #Nremar&s, #Ncoadd, #Ncity@, #Ndis@, CNpin@, #Nstate@, #Ncountry@1O D N OVA,/E(.'O D t$tNid.#e$t D O','O D t$tNname.#e$t D O','O D t$tNph.#e$t D O','O D t$tNdomain.#e$t D O','O D t$tNemail.#e$t D O','O D t$tNclientco.#e$t D O',TO D %Date.II!.dtNdate.Value M OO, Date, dtNdate.Value11 D OT,'O D t$tNadd.#e$t D O','O D t$tNcity.#e$t D O','O D t$tNdis.#e$t D O',O D Val.t$tNpin.#e$t1 D O,'O D t$tNstate.#e$t D O','O D t$tNcountr.#e$t D O','O D t$tN!a$.#e$t D O','O D t$tNweb.#e$t D O','O D t$tNintro.#e$t D O','O D

96

O D Val. #NcategoryM'O D t$tNcategory.#e$t D O'. #NstateM'O D t$tNstate. #NclassM'O D t$tNclass.#e$t D O'.#e$t1 D O. #NclientcoordinatorsM'O D t$tNclientco.istItems.Value11 D OT.#e$t D O'.l$.'O D #$t%city.#e$t D O'.%hec&ed M #rue #hen 96 .%ommit#rans 2or j M @ #o lstNproj.#ag1 D O1O End I! Ce$t j +sgBo$ OData (aved (uccess!ully. #NdisM'O D t$tNdis.E$ecute ODelete A 2rom clientNproject where clientNIdM'O D t$tNid.#e$t D O'.istItems.#e$t D O'.%ount (et l$ M lstNproj. #Nproject1 O D N OVA.#e$t D O'. #NlocaladdM'O D t$tNadd.O D Val.#e$t D O'.%ommit#rans 2or j M @ #o lstNproj. CNpin@MO D Val. #NcityM'O D t$tNcity.#e$t D O'O lconn.#e$t D O'. #NnameM'O D t$tNname.#e$t D O'.#e$t1 D O.#e$t D O'.j1 I! l$.#e$t D O'..#e$t D O'.E$ecute O/pdate client set CNIdM'O D t$tNid.#e$t D O'.O.#e$t D O'.E$ecute OIC(E3# IC#8 clientNproject . +e.'O D #$t%(tate.#e$t D O'. DNdateMTO D %Date. Date.#e$t D O'. #Ncountry@M'O D #$t%country. CNpinMO D Val.#e$t D O'.#e$t D O'. #NwebaddM'O D t$tNweb. #Ndis@M'O D #$t%district.#$t%0in.#e$t D O'.#e$t D O'1O lconn.clientNId. dtNdate.istItems.j1 I! l$..#e$t D O'. #Nremar&sM'O D t$tNremar&. #NcountryM'O D t$tNcountr. #NphoneNnoM'O D t$tNph./E(.%ount (et l$ M lstNproj.#e$t D O' where CNIdM'O D t$tNid.#e$t D O'.O D N O#Ncity@M'O D #$t%city.%aption Else lconn.'O D t$tNid.'O D #$t%country.dtNdate.'O D #$t%add. #NdomainM'O D t$tNdomain.#e$t D O'. #NcoaddM'O D #$t%add.%ommit#rans lconn.#e$t D O'O lconn.'O D t$tNremar&. #Nstate@M'O D #$t%(tate.#e$t D O'. vbIn!ormation.#e$t D O'.#$t%0in.%hec&ed M #rue #hen lconn.'O D #$t%district.CRM (A Client Relationship Management System) t$tNclass.#e$t D O'.istItems.#e$t D O'.. #NemailNidM'O D t$tNemail..Begin#rans lconn.Begin#rans lconn. #N!a$M'O D t$tN!a$. #NintroducerM'O D t$tNintro.Value M OO.'O D t$tNcategory.t$tNpin.II!.#e$t D O'.#e$t1 D O.#e$t D O'.

(ubItems.@1 (et rs M lconn.IsCull.CNIDO./E(.#e$t M II!.1 2ill%ombo@ O(E. vb%ritical R vbApplication+odal. +sgBo$ Err. OErrorO E$it (ub 3esume End (ub 0rivate (ub %ombo@N9ot2ocus.l$.O. #Nproject1 O D N OVA.B82 #hen Else t$tNid.%onnection (et lconn M 8pen%on.%aption M OD+odi!yO cmdNdel.3ecordset Dim lconn As AD8DB.istItem (et l$ M listNrec. +e.E$ecute.%aption M OD%ancelO Dim l$ As .O(elect A !rom client where CNID M 'O D t$tNid. vbIn!ormation.E$ecute OIC(E3# IC#8 clientNproject .ist E$it (ub errh.#e$t M l$.t$tNid.1 Dim rs As AD8DB. OO.O D Val.clientNId.(electedItem t$tNid.Enabled M #rue cmde$it.lconn1 save.Description.E82 8r rs.E%# CNID 2rom client 83DE3 B.#e$t D O'O1 I! rs. rsPCNId1 96 . combo@ End (ub 0rivate (ub listNrecNDbl%lic&.#e$t1 D O.rsPCNId1.%aption End I! %learN%ontrols 2illN.O D Val.#ag1 D O1O End I! Ce$t +sgBo$ OData +odi!y (uccess!ully.CRM (A Client Relationship Management System) lconn.

rsP#Nremar&s1.rsP#NemailNid1. OO.#e$t M II!.#e$t M II!.rsP#NphoneNno1.rsP#Ndis1.IsCull. OO. OO.rsP#Ncategory1.rsP#Nstate@1.IsCull. OO. rsP#Ndis1 t$tNpin.IsCull.rsP#Nstate1. OO.#e$t M II!.IsCull. OO.rsP#Ncoadd1.rsP#N%ity1.#e$t M II!.#e$t M II!. rsP#NemailNid1 t$tNclientco.IsCull. rsP#Ncoadd1 #$t%city.rsP#Ncountry1.3ecordset Dim lconn As AD8DB.IsCull. OO.#e$t M II!.CRM (A Client Relationship Management System) t$tNname. rsP#Nwebadd1 t$tNintro. rsP#Ndomain1 t$tNemail.#e$t M II!.#e$t M II!. OO. OO.#e$t M II!. rsP#Nintroducer1 t$tNclass.IsCull.rsP#Nclientcoordinators1. rsP#N%ity1 t$tNdis. OO.IsCull. OO.rsP#Ndis@1.rsP#N%ity@1.IsCull.IsCull.1 8n Err 9o#o errh Dim l$ As .rsPCNpin@1. rsPCNpin1 t$tNadd.IsCull.#e$t M II!.Value M II!. rsPCNpin@1 #$t%(tate.rsP#Nintroducer1.IsCull.#e$t M II!.IsCull.IsCull. rsP#Nname1 t$tNph.rsP#Nname1. rsP#Nremar&s1 #$t%add. rsP#N!a$1 t$tNweb.IsCull.IsCull.IsCull. rsP#N%ity@1 #$t%district.rsP#Nclass1. rsP#Nstate@1 #$t%country. OO.#e$t M II!.IsCull. rsPDNdate1 t$tNcity.rsP#Ncoadd1.#e$t M II!.#e$t M II!. OO.%onnection OdateO.rsP#Ncountry@1.IsCull. rsP#Nstate1 t$tNcountr.#e$t M II!.#e$t M II!.#e$t M II!. rsP#NphoneNno1 t$tNdomain. rsP 96 . OO. OO. rsP#Ncoadd1 t$tNstate. OO.#e$t M II!.#e$t M II!.rsPDNdate1.rsP#N!a$1. OO.rsP#Nwebadd1.IsCull. rsP#Nclass1 t$tNcategory.#e$t M II!. OO.IsCull. rsP#Ndis@1 #$t%0in.#e$t M II!. OO. #Nclientcoordinators1 dtNdate. rsP#Ncountry@1 !illNlistp 8penN%lientN0rojects End I! End (ub 0rivate (ub 8penN%lientN0rojects.IsCull.#e$t M II!.rsP#Ndomain1. OO.IsCull. OO. rsP#Ncountry1 t$tN!a$. rsP#Ncategory1 t$tNremar&. OO. OO.IsCull.istItem Dim rs As AD8DB.#e$t M II!.rsPCNpin1.

+oveCe$t Ce$t i End I! E$it (ub errh.clientNid.clientNidM'O D t$tNid.istItems.B82 8r rs.istItems.E$ecute.Value M Date t$tNadd.lconn1 (et rs M lconn.O(E.#e$t M OO t$tNph.l$.#Nproject.#ag1 #hen l$..#e$t M OO t$tNname.E82 #hen Else 2or i M @ #o rs.%hec&ed M #rue End I! Ce$t j rs.#e$t M OO t$tNemail.#e$t M OO t$tNcity. vb%ritical R vbApplication+odal.#e$t M OO 96 .Description.#Nproject M 0roject. OErrorO E$it (ub 3esume End (ub 0rivate (ub %learN%ontrols. 0roject.j1 I! rsP#N0roject M Val.3ecord%ount 2or j M @ #o lstNproj..1 t$tNid.#e$t M OO t$tNdis. clientNproject.%ount (et l$ M lstNproj. +sgBo$ Err.#e$t D O'O1 I! rs.#e$t M OO t$tNclientco.CNcode 5*E3E clientNproject.#e$t M OO t$tNdomain.E%# clientNproject.CRM (A Client Relationship Management System) (et lconn M 8pen%on.#e$t M OO dtNdate.#Nname 238+ clientNproject ICCE3 U8IC 0roject 8C clientNproject.

FeyAscii As Integer1 I! FeyAscii M @I #hen 96 .CRM (A Client Relationship Management System) t$tNpin.#e$t M OO t$tNweb.#e$t M OO #$t%district.#e$t M OO #$t%country.(et2ocus End I! End (ub 0rivate (ub t$tNidNFey0ress.#e$t M OO #$t%0in.#e$t M OO save.#e$t M OO t$tNcountr.(et2ocus End I! End (ub 0rivate (ub t$tNaddNFey0ress.#e$t M OO t$tNstate.#e$t M OO t$tNcategory.#e$t M OO #$t%(tate.#e$t M OO t$tNremar&.#e$t M OO t$tN!a$.%aption M OD(aveO cmde$it.#e$t M OO #$t%city.#e$t M OO t$tNintro.#e$t M OO #$t%add.Enabled M 2alse End (ub 0rivate (ub t$tNnameNFey0ress.#e$t M OO t$tNclass.FeyAscii As Integer1 I! FeyAscii M @I #hen t$tNclientco.%aption M OED$itO cmdNdel.FeyAscii As Integer1 I! FeyAscii M @I #hen t$tNname.

CRM (A Client Relationship Management System) t$tNcity.(et2ocus End I! End (ub 0rivate (ub t$tNclientcoNFey0ress.FeyAscii As Integer1 I! FeyAscii M @I #hen t$tNclass.FeyAscii As Integer1 I! FeyAscii M @I #hen #$t%add.FeyAscii As Integer1 I! FeyAscii M @I #hen t$tN!a$.(et2ocus End I! End (ub 0rivate (ub t$tNcityNFey0ress.(et2ocus End I! End (ub 0rivate (ub t$tNphNFey0ress.(et2ocus End I! End (ub 0rivate (ub t$tNemailNFey0ress.FeyAscii As Integer1 I! FeyAscii M @I #hen t$tNweb.(et2ocus End I! End (ub 0rivate (ub t$tNdomainNFey0ress.FeyAscii As Integer1 I! FeyAscii M @I #hen dtNdate.FeyAscii As Integer1 I! FeyAscii M @I #hen 96 .(et2ocus End I! End (ub 0rivate (ub dtNdateNFey0ress.

FeyAscii As Integer1 I! FeyAscii M @I #hen 96 .CRM (A Client Relationship Management System) t$tNdis.(et2ocus End I! End (ub 0rivate (ub t$tNwebNFey0ress.FeyAscii As Integer1 I! FeyAscii M @I #hen t$tNemail.FeyAscii As Integer1 I! FeyAscii M @I #hen t$tNph.FeyAscii As Integer1 I! FeyAscii M @I #hen t$tNcountr.FeyAscii As Integer1 I! FeyAscii M @I #hen t$tNpin.(et2ocus End I! End (ub 0rivate (ub t$tNpinNFey0ress.(et2ocus End I! End (ub 0rivate (ub t$tNcountrNFey0ress.(et2ocus End I! End (ub 0rivate (ub t$tN!a$NFey0ress.(et2ocus End I! End (ub 0rivate (ub t$tNstateNFey0ress.(et2ocus End I! End (ub 0rivate (ub t$tNdisNFey0ress.FeyAscii As Integer1 I! FeyAscii M @I #hen t$tNstate.

FeyAscii As Integer1 I! FeyAscii M @I #hen t$tNremar&.FeyAscii As Integer1 I! FeyAscii M @I #hen #$t%city.FeyAscii As Integer1 I! FeyAscii M @I #hen save.FeyAscii As Integer1 I! FeyAscii M @I #hen 96 .(et2ocus End I! End (ub 0rivate (ub t$tNclassNFey0ress.FeyAscii As Integer1 I! FeyAscii M @I #hen t$tNcategory.(et2ocus End I! End (ub 0rivate (ub #$t%cityNFey0ress.FeyAscii As Integer1 I! FeyAscii M @I #hen t$tNdomain.(et2ocus End I! End (ub 0rivate (ub #$t%addNFey0ress.(et2ocus End I! End (ub 0rivate (ub t$tNintroNFey0ress.(et2ocus End I! End (ub 0rivate (ub t$tNremar&NFey0ress.(et2ocus End I! End (ub 0rivate (ub t$tNcategoryNFey0ress.CRM (A Client Relationship Management System) t$tNintro.

(et2ocus End I! End (ub 0rivate (ub #$t%countryNFey0ress.(et2ocus End I! End (ub 0rivate (ub #$t%stateNFey0ress.FeyAscii As Integer1 I! FeyAscii M @I #hen t$tNadd.FeyAscii As Integer1 I! FeyAscii M @I #hen #$t%0in.(et2ocus End I! End (ub 0rivate (ub #$t%pinNFey0ress.FeyAscii As Integer1 I! FeyAscii M @I #hen #$t%country.CRM (A Client Relationship Management System) #$t%district.(et2ocus End I! End (ub 96 .FeyAscii As Integer1 I! FeyAscii M @I #hen #$t%(tate.(et2ocus End I! End (ub 0rivate (ub #$t%districtNFey0ress.

cbNprojNcoord 96 .#NnameO.1 2ill%ombo@ O(E.E%# #Nname 2rom employee 83DE3 B.CRM (A Client Relationship Management System) 0rivate (ub cbNprojNcoordN9ot2ocus.

Value1 D OT.%aption S< OD+odi!yO #hen lconn. vb%ritical t$tNname.O./E(.O. #Nname.#e$t D O'.Value1 D OT. #NprojNlead.1 Dim lconn As AD8DB.CRM (A Client Relationship Management System) End (ub 0rivate (ub cbNprojNleaderN9ot2ocus.%aption 96 .TO D %Date.E$ecute O/0DA#E project (E# CNcodeM'O D t$tNcode.Value1 D OT.'O D t$tNcode.%onnection (et lconn M 8pen%on.#e$t D O'.#e$t D O'1O lconn.dtNdelNdt. vbIn!ormation.#e$t M OO #hen +sgBo$ O0lease !ill the code valueO.'O D t$tNname.(et2ocus E$it (ub End I! I! t$tNname.#e$t M OO #hen +sgBo$ O0lease !ill the project nameO.DNdelvrNdtMTO D %Date. vbIn!ormation. +e.lconn1 I! t$tNcode.#e$t D O' O +sgBo$ OData +odi!y (uccess!ully.(et2ocus E$it (ub End I! I! cmdNsave.#NprojNleadM'O D cbNprojNleader.'O D cbNprojNleader.'O D cbNprojNcoord.TO D %Date.#e$t D O'.'O D t$tNdomain. vb%ritical t$tNcode. DNdelvrNdt.%ommit#rans +sgBo$ OData (aved (uccess!ully.E$ecute OIC(E3# IC#8 project .DNstartNdt.1 2ill%ombo@ O(E. #NprojN%oordinatorsM' O D cbNprojNcoord.dtNdelNdt.#NnameO.#Ndomain.E%# #Nname 2rom employee 83DE3 B. #NnameM'O D t$tNname.Begin#rans lconn. #NprojN%oordinators1O D N OVA.#e$t D O'. cbNprojNleader End (ub 0rivate (ub .%aption Else lconn.#e$t D O'.Value1 D OT.#e$t D O ' where CNcodeM'O D t$tNcode. +e.#e$t D O'.dtNstNdt.#e$t D O'. DNstartNdtMTO D %Date.dtNstNdt.CNcode.

project.rsP#NprojNlead1. project.rsP#Nname1.IsCull. OO.(ubItems.#Nname.istItems.I1 M II!. rsPDNdelvrNdt1 l$.(ubItems.IsCull. rsP#Nname1 l$. OO.lconn1 lstvNproj.%lear (et rs M lconn. lstvNproj.(ubItems..3ecordset (et lconn M 8pen%on.project.istItems. OO.(ubItems.DNdelvrNdt.CRM (A Client Relationship Management System) End I! %learN%ontrols lstvNmod. vb%ritical R vbApplication+odal.=1 M II!.%onnection Dim rs As AD8DB.rsPCNcode1. OO.@1 M II!. rsP#NprojNlead1 rs.%lear 2illN.IsCull.O(E..project.J1 M II!. OErrorO E$it (ub 3esume 96 .1 8n Err 9o#o errh Dim l$ As .DNstartNdt.(ubItems. .IsCull. project.rsPDNdelvrNdt1.E%# project.ist..IsCull.B82 8r rs.Enabled M #rue E$it (ub End (ub 0rivate (ub 2illN.+oveCe$t Ce$t i End I! E$it (ub errh.Description. +sgBo$ Err..E$ecute. rsPCNcode1 l$.#NprojNlead !rom project 83DE3 B.%ount R @1 l$.istItem Dim lconn As AD8DB.CNcode.E82 #hen Else 2or i M @ #o rs. rsPDNstartNdt1 l$.rsPDNstartNdt1. OO.istItems.Add..3ecord%ount (et l$ M lstvNproj.#NnameO1 I! rs.istItems.K1 M II!.ist cmdNdel.

%aption M ODe$itO End I! End (ub 0rivate (ub cmdNdelN%lic&.#e$t D O'O lconn.ist E$it (ub errh.CRM (A Client Relationship Management System) End (ub 0rivate (ub cmdNe$itN%lic&.O..istItems.E$ecute ODelete A 238+ moduleN@ where 2FNcodeM'O D t$tNcode. vb%ritical R vbApplication+odal. vbIn!ormation.%lear %learN%ontrols 2illN.1 I! cmdNe$it.%aption S< OD%ancelO #hen /nload +e Else cmdNsave. vb4uestion R vb-esCo.O. OErrorO E$it (ub 3esume End (ub 0rivate (ub lstvNprojNDbl%lic&.%aption M OsaveO %learN%ontrols cmdNe$it.lconn1 ans M +sgBo$. +e.ODo -ou 3eally 5ant #o Delete #he (elected Data.#e$t D O'O +sgBo$ OData Delete (uccess!ully.1 96 . +e.E$ecute ODelete A 2rom project where CNcodeM'O D t$tNcode.%aption1 I! ans M ) #hen lconn.1 8n Err 9o#o errh Dim lconn As AD8DB.%aption End I! lstvNmod.%onnection (et lconn M 8pen%on. +sgBo$ Err.Description.

rsP#Ndomain1.rsP#Ndescription1.E82 8r rs.rsPCNpriority1. rsP#Ndescription1 rs. rsPCNpriority1 l$.#e$t M II!. OO.rsPDNdelvrNdt1.Enabled M #rue cmdNe$it. OO.%aption M OD%ancelO Dim l$ As .IsCull.rsP#NprojN%oordinators1.Value M II!.IsCull.B82 #hen Else 2or i M @ #o rs.#e$t D O'O1 I! rs.E$ecute..E$ecute.(ubItems.IsCull. . rsP#Nname1 t$tNdomain.#e$t M II!. OO.istItems.#e$t M II!.IsCull.E82 8r rs.%onnection (et lconn M 8pen%on.%ount R @1 l$.Add.IsCull.(ubItems. OO. OO. OO. OO.istItems. rsP#NprojNlead1 cbNprojNcoord.#e$t M l$.Oselect A 2rom moduleN@ where 2FNcode M 'O D t$tNcode.rsP#Nname1.IsCull.Value M II!. rsP #NprojN%oordinators1 End I! lstvNmod. OO..istItem (et l$ M lstvNproj.(ubItems.@1 M II!.3ecordset Dim lconn As AD8DB.#e$t D O'O1 I! rs.%aption M OD+odi!yO cmdNdel. rsP#Nmodule1 l$.=1 M II!.I1 M II!. OO.@1 (et rs M lconn.B82 #hen Else t$tNname.rsP#Nmodule1.rsP#NprojNlead1.#e$t M II!..%lear (et rs M lconn. rsPDNstartNdt1 dtNdelNdt.IsCull.IsCull. lstvNmod.+oveCe$t Ce$t i End I! End (ub 96 ..IsCull.istItems.rsPDNstartNdt1. rsP#Ndomain1 dtNstNdt.O(elect A !rom project where CN%ode M 'O D t$tNcode.(ubItems.CRM (A Client Relationship Management System) Dim rs As AD8DB.lconn1 cmdNsave.(electedItem t$tNcode. rsPDNdelvrNdt1 cbNprojNleader.3ecord%ount (et l$ M lstvNmod.

#e$t M OO #hen +sgBo$ O0lease !ill the moduleO.3ecordset Dim l$ As .#e$t M OO t$tNdescr.%onnection Dim lrs As AD8DB.istItems.1 2illN.istItem Dim i As (tring (et lconn M 8pen%on.istItem (et lconn M 8pen%on.#e$t S< OO #hen t$tNmodule.#e$t M OO t$tNprior. vb%ritical t$tNmodule.%ount M > #hen E$it (ub Dim lconn As AD8DB.1 Dim lconn As AD8DB.oad.lconn1 96 .3ecordset Dim l$ As .(et2ocus End I! End (ub 0rivate (ub 2ormN.(et2ocus E$it (ub End I! !illNlistm End (ub 0rivate (ub cmdNremoveN%lic&.1 I! t$tNmodule.%onnection Dim lrs As AD8DB..lconn1 (et l$ M lstvNmod.ist End (ub 0rivate (ub lstvNmodNDbl%lic&.#e$t M OO t$tNmodule.CRM (A Client Relationship Management System) 0rivate (ub cmdNaddN%lic&.1 I! lstvNmod.(electedItem I! t$tNmodule.

Value M Date cbNprojNleader.lstvNmod.=1 t$tNdescr.E$ecute.istItems.istItem Dim lconn As AD8DB.Inde$1 lconn.(electedItem t$tNmodule.CRM (A Client Relationship Management System) (et lrs M lconn.1 8n Err 9o#o errh Dim l$ As .#e$t M OO t$tNname.#e$t M OO t$tNdomain.3ecordset (et lconn M 8pen%on.#e$t M l$.#e$t M OO End (ub 0rivate (ub !illNlistm.#e$t M OO t$tNprior.%onnection Dim rs As AD8DB.#e$t M OO t$tNmodule.#e$t M l$.#e$t M OO t$tNdescr.O(elect A !rom moduleN@ where 2FN%ode M 'O D t$tNcode.#e$t D O'O1 I! lrs.Begin#rans 96 .(ubItems.3emove .#e$t D O'O End I! End (ub 0rivate (ub %learN%ontrols.E$ecute ODelete A 2rom moduleN@ where #Nmodule M 'O D t$tNmodule.(electedItem.E82 8r lrs.Value M Date dtNstNdt.lconn1 lconn.#e$t M OO dtNdelNdt.#e$t M OO cbNprojNcoord.I1 lstvNmod.@1 t$tNprior..#e$t M l$.B82 #hen Else (et l$ M lstvNmod.1 t$tNcode.(ubItems.(ubItems.

IsCull.@1 M II!.istItems.IsCull.E%# A 2rom moduleN@ where 2FNcodeM'O D t$tNcode.CNpriority.B82 8r rs. .(ubItems.moduleN@.#e$t1 D O.istItems.#e$t D O' 83DE3 B.#e$t D O'1O lconn.+oveCe$t Ce$t i End I! E$it (ub errh.'O D t$tNdescr. rsPCNpriority1 l$. vb%ritical R vbApplication+odal. OO.CRM (A Client Relationship Management System) lconn.E82 #hen Else 2or i M @ #o rs.rsPCNpriority1. rsP#Nmodule1 l$.. +sgBo$ Err.3ecord%ount (et l$ M lstvNmod. 2FNcode1O D N OVA.t$tNprior.'O D t$tNmodule.I1 M II!. lstvNmod.(et2ocus rs.%lear (et rs M lconn.#e$t M OO t$tNmodule.istItems.Add.#Nmodule.=1 M II!. rsP#Ndescription1 t$tNmodule.IsCull.%ount R @1 l$.Description.CNpriorityO1 I! rs.rsP#Nmodule1.(ubItems. OO.'O D t$tNcode..#e$t M OO t$tNprior.E$ecute.#e$t D O'. OO. OErrorO E$it (ub 3esume End (ub 96 . #Ndescription.%ommit#rans lstvNmod.E$ecute OIC(E3# IC#8 moduleN@ .#e$t D O'.rsP#Ndescription1.O(E./E(.O D Val.#e$t M OO t$tNdescr..(ubItems..

1 2ill%ombo@ O(E.1 t$tNcode.E%# #Nstate 2rom state 83DE3 B. cbNstate End (ub 0rivate (ub %learN%ontrols.#NstateO.CRM (A Client Relationship Management System) 0rivate (ub .#e$t M OO 96 .

#e$t M OO t$tNuniv.1 8n Err 9o#o errh Dim lconn As AD8DB.ist E$it (ub 96 . +e.O.%onnection (et lconn M 8pen%on.%aption M OsaveO lstvN7uali.lconn1 ans M +sgBo$.#e$t M OO t$tN!a$.#e$t M OO t$tNrem. +e. vbIn!ormation.ODo -ou 3eally 5ant #o Delete #he (elected Data.#e$t M OO t$tNcity.istItems.#e$t M OO t$tNprt.%aption1 I! ans M ) #hen lconn.#e$t M OO t$tNph.#e$t M OO t$tNdsgn M OO End (ub 0rivate (ub cmdNdelN%lic&.O.#e$t D O'O +sgBo$ OData Delete (uccess!ully.#e$t M OO cbNstate. vb4uestion R vb-esCo.#e$t M OO t$tNadd..#e$t M OO t$tNemail.#e$t D O'O lconn.#e$t M OO t$tNyear.#e$t M OO t$tN!Nname.#e$t M OO t$tNper.E$ecute ODelete A 2rom 7uali!ication where 2FNempcodeM'O D t$tNcode.%lear %learN%ontrols 2illN.CRM (A Client Relationship Management System) t$tNname.#e$t M OO t$tNpin.#e$t M OO t$tNgrd.E$ecute ODelete A 2rom employee where CNcodeM'O D t$tNcode.%aption End I! cmdNsave.

%aption M OD%ancelO End (ub 0rivate (ub cmdNsaveN%lic&.Description.1 cmdNsave.CRM (A Client Relationship Management System) errh.O(E.%aption M ODe$itO End I! End (ub 0rivate (ub cmdNopenN%lic&.CNcode !rom employee O1 I! 8ptNmale.Value M #rue #hen ms M OmarriedO 96 .%aption S< OD%ancelO #hen /nload +e Else cmdNsave.lconn1 Dim gnd. ms As (tring (et rs M lconn.E$ecute.1 I! cmdNe$it.%aption M OsaveO %learN%ontrols cmdNe$it. vb%ritical R vbApplication+odal.%aption M OD+odi!yO cmdNdel.Value M #rue #hen gnd M OmaleO Else gnd M O!emaleO End I! I! 8ptNmrd.3ecordset (et lconn M 8pen%on. +sgBo$ Err. OErrorO E$it (ub 3esume End (ub 0rivate (ub cmdNe$itN%lic&.1 Dim lconn As AD8DB.Enabled M #rue cmdNe$it.E%# employee.%onnection Dim rs As AD8DB.

istItems j M II!.t$tNpin.#Nemail.%aption S< OD+odi!yO #hen (et rs M lconn.'O D t$tN!Nname.CNcode.#e$t M j1 #hen +sgBo$ O%ode E$istP 0lease !ill another code valueO.#e$t D O'.#e$t M OO t$tNcode.#Naddress.(et2ocus E$it (ub End I! I! t$tNname.'O D cbNstate.(et2ocus E$it (ub End I! rs./E(. #Nname. CNpin.O 96 . #Nstate.#e$t D O'. vb%ritical t$tNname.'O D t$tNname. 'O D ms D O'.#e$t1 D O.E$ecute OIC(E3# IC#8 employee . #N!atherNname.'O D gnd D O'.DND8B.stvNrec.CNcode !rom employee O1 2or i M @ #o rs.+oveCe$t Ce$t i lconn.Begin#rans lconn.(et2ocus E$it (ub End I! I! cmdNsave.#e$t M OO #hen +sgBo$ O0lease !ill the code valueO.#e$t D O'. vb%ritical t$tNcode.Value1 D OT..#e$t D O'.O(E.t$tNcode.#Ndesignation1O D N OVA. OO.#Ncity.#Nphone.'O D t$tNcode. #N!a$.rsPCNcode1.O D Val. #NmaritalNstatus.CRM (A Client Relationship Management System) Else ms M OunmarriedO End I! I! t$tNcode.#e$t D O '.DND8U.'O D t$tNcity.E%# employee. #Ngender.#e$t D O'.#e$t M OO #hen +sgBo$ O0lease !ill the nameO. rsPCNcode1 I! .E$ecute.IsCull.TO D %Date.3ecord%ount (et l$ M .dtNbirth.' O D t$tNadd. vb%ritical t$tNcode.

dtNbirth.1 8n Err 9o#o errh Dim l$ As .%aption End I! %learN%ontrols lstvN7uali.#e$t D O'.Value1 D OT.#NemailM'O D t$tNemail.istItem Dim lconn As AD8DB.#e$t D O'. #NmaritalNstatusM'O D ms D O'.#e$t D O'.'O D t$tNdsgn.#e$t D O'. vbIn!ormation.t$tN!a$.#NstateM'O D cbNstate.%aption Else I! 8ptNmale. DND8BMTO D %Date.#NgenderM'O D gnd D O'.CNpinMO D Val.#NcityM'O D t$tNcity.#e$t D O'.Value M #rue #hen ms M OmarriedO Else ms M OunmarriedO End I! lconn.t$tNpin.#e$t D O'.'O D t$tNemail..Value1 D OT.istItems.O.#e$t D O'.#e$t1 D O.#e$t1 D O.dtNjoin.%ommit#rans +sgBo$ OData (aved (uccess!ully.dtNbirth.ist.#e$t D O'1O lconn.Value M #rue #hen gnd M OmaleO Else gnd M O!emaleO End I! I! 8ptNmrd.O.Value1 D OT.%onnection 96 .#NaddressM'O D t$tNadd.#N!a$M'O D t$tN!a$.#e$t D O' where CNcodeM'O D t$tNcode.#N!atherNnameM'O D t$tN!Nname.#e$t D O'.#NdesignationM'O D t$tNdsgn.%lear 2illN.#NphoneM'O D t$tNph. #NnameM'O D t$tNname.E$ecute O/pdate employee set CNcodeM'O D t$tNcode.#e$t D O'.'O D t$tNph.#e$t D O'. vbIn!ormation.#e$t D O' O +sgBo$ OData +odi!y (uccess!ully.TO D %Date.DND8UMTO D %Date. +e.#e$t D O'.ist E$it (ub End (ub 0rivate (ub 2illN. +e.CRM (A Client Relationship Management System) D Val.

rsP#Nphone1 rs.(ubItems.E$ecute.(ubItems. employee.3ecordset 96 .3ecord%ount (et l$ M .IsCull.I1 M II!.(ubItems... .1 8n Err 9o#o errh 'Dim l$ As . OO. rsP#N!atherNname1 l$. rsP#Ngender1 l$.%onnection Dim rs As AD8DB.istItems.Add. OO.istItems.(ubItems.E82 #hen Else 2or i M @ #o rs.L1 M II!. employee.J1 M II!. +sgBo$ Err.rsPCNcode1.#Nname. rsP#Nname1 l$. employee.Description.O(E.#Naddress.IsCull.stvNrec.lconn1 .IsCull.3ecordset (et lconn M 8pen%on. OO..employee.@1 M II!. rsPCNcode1 l$.#Ngender.rsP#N%ity1.)1 M II!.stvNrec.=1 M II!..IsCull.#Ncity. rsP#N%ity1 l$. .rsP#NAddress1.rsP#Nname1.istItems.CNcode.rsP#Ngender1.B82 8r rs.+oveCe$t Ce$t i End I! E$it (ub errh.IsCull. OO.K1 M II!.stvNrec.(ubItems.#NnameO1 I! rs. OO.employee.rsP#Nphone1.E%# employee.(ubItems.%lear (et rs M lconn. employee. OErrorO E$it (ub 3esume End (ub 0rivate (ub !illNlist7. OO. vb%ritical R vbApplication+odal.%ount R @1 l$.IsCull. employee.CRM (A Client Relationship Management System) Dim rs As AD8DB. OO.rsP#N!atherNname1.(ubItems.IsCull.istItem Dim lconn As AD8DB. rsP#NAddress1 l$.#Nphone 2rom employee 83DE3 B.#N!atherNname.

2FNempcode1O D N OVA..'O D t$tNuniv.%ommit#rans lstvN7uali.E$ecute.O(E./E(.#e$t D O'1O lconn.#e$t D O'.#e$t D O'.#e$t D O'.#e$t D O' 83DE3 B. CNpercent.'O D t$tNrem.istItems.CRM (A Client Relationship Management System) (et lconn M 8pen%on.E%# 7uali!ication.#e$t M j1 #hen +sgBo$ O0articular E$istP 0lease !ill another particular valueO.rsP#Nparticular1.#Nparticular.CNyear.#Nboarduniv..#e$t M OO t$tNrem.O(E.#e$t1 D O .IsCull.#e$t M OO t$tNper.E$ecute OIC(E3# IC#8 7uali!ication .E$ecute.#Ngrade.(et2ocus E$it (ub End I! rs.#e$t M OO t$tNprt. .E%# A 2rom 4uali!ication where 2FNempcodeM'O D t$tNcode.B82 8r rs. lstvN7uali.Begin#rans lconn.4uali!ication...Add. #Nremar&s.O D Val..#e$t1 D O. vb%ritical t$tNprt.%lear (et rs M lconn.+oveCe$t Ce$t i lconn.lconn1 (et rs M lconn.#e$t D O'.3ecord%ount (et l$ M lstvN7uali.#e$t M OO t$tNuniv.t$tNprt.#e$t M OO t$tNyear.t$tNper.#Nparticular !rom 7uali!ication where 2FNempcodeM'O D t$tNcode.CNyearO1 I! rs.3ecord%ount (et l$ M lstvN7uali.istItems. OO.istItems.O D Val.%ount R @1 96 .#e$t M OO t$tNgrd.#e$t D O'O1 2or i M @ #o rs.istItems j M II!. rsP#Nparticular1 I! .t$tNyear.'O D t$tNcode.E82 #hen Else 2or i M @ #o rs.'O D t$tNprt.'O D t$tNgrd.

#e$t M OO t$tNrem. OO. OO.IsCull.I1 M II!.#e$t M OO #hen +sgBo$ O0lease !ill the percentageO. rsP#Nboarduniv1 l$.rsP#Nboarduniv1.rsP#Ngrade1.Description.(ubItems.IsCull. rsP#Ngrade1 l$.J1 M II!. +sgBo$ Err. rsP#Nremar&s1 t$tNprt. OErrorO E$it (ub 3esume End (ub 0rivate (ub %ommand@N%lic&. rsP#Nparticular1 l$.rsP#Nparticular1. rsPCNpercent1 l$.CRM (A Client Relationship Management System) l$.)1 M II!.IsCull.1 I! t$tNprt.#e$t M OO t$tNgrd.#e$t M OO t$tNper. vb%ritical t$tNprt.(ubItems. OO.IsCull.(ubItems.@1 M II!.(et2ocus E$it (ub End I! I! t$tNper. OO.(ubItems.(ubItems.rsP#Nremar&s1.rsPCNyear1.#e$t M OO t$tNprt.(et2ocus E$it (ub 96 .rsPCNpercent1.K1 M II!.#e$t M OO #hen +sgBo$ O0lease !ill the particularsO. OO.(et2ocus rs. OO.#e$t M OO t$tNyear. vb%ritical R vbApplication+odal.(ubItems.=1 M II!.+oveCe$t Ce$t i End I! E$it (ub errh. vb%ritical t$tNper. rsPCNyear1 l$.#e$t M OO t$tNuniv.IsCull.IsCull.

oad.#e$t M OO t$tNrem.3ecordset Dim l$ As . vb%ritical t$tNper.(electedItem I! t$tNprt.#e$t < @>> 8r t$tNper.(et2ocus E$it (ub End I! !illNlist7 End (ub 0rivate (ub %ommand=N%lic&.1 2illN.Odelete A !rom 7uali!ication where CNpercent M i O1 End I! End (ub 0rivate (ub 2ormN.#e$t M OO t$tNgrd.lconn1 (et l$ M lstvN7uali.1 I! lstvN7uali.#e$t S > #hen +sgBo$ O0lease !ill the correct percentageO.#e$t S< OO #hen t$tNprt.E$ecute .1 Dim lconn As AD8DB.#e$t M OO t$tNuniv.istItem Dim i As (tring (et lconn M 8pen%on.%ount M > #hen E$it (ub Dim lconn As AD8DB.#e$t M OO t$tNper.%onnection Dim lrs As AD8DB.%onnection 96 .istItems.CRM (A Client Relationship Management System) End I! I! t$tNper.#e$t M OO t$tNyear.(et2ocus Else lconn.ist End (ub 0rivate (ub lstvN7ualiNDbl%lic&..#e$t M OO t$tNprt.

1 Dim rs As AD8DB.(ubItems.ist(ubItems...ist(ubItems.@1 l$.ist(ubItems.@1 l$.B82 #hen Else (et l$ M lstvN7uali.#e$t M l$.@1 l$.E$ecute ODelete A 2rom 7uali!ication where #Nparticular M 'O D t$tNprt.lstvN7uali.@1 lstvN7uali..(ubItems.3emove ..(electedItem t$tNprt.istItems.ist(ubItems.(electedItem.istItem (et lconn M 8pen%on.#e$t D O'O1 I! lrs.stvNrecNDbl%lic&.(ubItems.%aption M OD%ancelO Dim l$ As .(ubItems.#e$t M l$.#e$t M l$.3emove .#e$t D O'O End I! End (ub 0rivate (ub .ist(ubItems.E82 8r lrs.O(elect A !rom 7uali!ication where 2FNemp%ode M 'O D t$tNcode.(ubItems.%onnection Dim s As (tring (et lconn M 8pen%on.E$ecute.3ecordset Dim lconn As AD8DB..@1 t$tNyear.Inde$1 lconn.K1 t$tNrem.CRM (A Client Relationship Management System) Dim lrs As AD8DB.#e$t M l$.3emove .3emove .istItem 96 .%aption M OD+odi!yO cmdNdel.(ubItems.@1 l$.#e$t M l$.#e$t M l$.I1 t$tNgrd.=1 t$tNper.3ecordset Dim l$ As .J1 t$tNuniv.3emove .lconn1 cmdNsave..lconn1 (et lrs M lconn.3emove .)1 l$.Enabled M #rue cmdNe$it.

rsP#Ngender1. OO.rsP#Nstate1.(ubItems. OO. OO.O(elect A !rom employee where CN%ode M 'O D t$tNcode.rsP#Nphone1.#e$t M II!.IsCull. rsP#N!a$1 t$tNemail.#e$t M II!.IsCull. rsP#N+aritalN(tatus1 I! . rsPDND8B1 dtNjoin.rsP#Nemail1.#e$t M II!. rsP#NAddress1 t$tNcity.IsCull. OO. rsP#Ndesignation1 96 . rsPDND8U1 t$tNadd.IsCull.stvNrec. OO.IsCull. rsPCNpin1 cbNstate.rsPCNpin1. OO. rsP#Nemail1 t$tNdsgn.rsP#NAddress1.#e$t M II!. rsP#Ngender1 I! .rsP#NAddress1.IsCull. OO.#e$t M II!.Value M #rue Else 8ptNunmrd.IsCull.IsCull.E82 8r rs.IsCull.Value M #rue End I! t$tNadd. OO.#e$t M II!.#e$t M II!.IsCull.#e$t M l$. rsP#NAddress1 t$tNcity.IsCull.Value M #rue Else 8ptN!ml. OO. rsP#Nstate1 t$tNph. OO.IsCull.#e$t M II!. rsP#N!atherNname1 s M II!. rsP#N%ity1 dtNbirth.(electedItem t$tNcode.Value M II!.#e$t M II!. OO. OO. OO.#e$t D O'O1 I! rs.IsCull. OO. OO.rsP#N!atherNname1.IsCull.#e$t M II!.Value M II!.@1 (et rs M lconn. OO.rsP#N!a$1.#e$t M II!.CRM (A Client Relationship Management System) (et l$ M .Value M #rue End I! s M II!.s M OmaleO1 #hen 8ptNmale.s M OmarriedO1 #hen 8ptNmrd.rsP#N%ity1.rsP#Ndesignation1.rsP#N%ity1.rsPDND8B1.rsPDND8U1. rsP#Nphone1 t$tN!a$.IsCull. rsP#Nname1 t$tN!Nname.E$ecute.IsCull.#e$t M II!.rsP#Nname1. rsP#N%ity1 t$tNpin.B82 #hen Else t$tNname.rsP#N+aritalN(tatus1.

rsP#Nremar&s1. .(ubItems. rsP#Nboarduniv1 l$.IsCull. rsPCNpercent1 l$. OO.+oveCe$t Ce$t i End I! End (ub 96 .rsP#Nparticular1.K1 M II!.rsPCNyear1.rsPCNpercent1. OO.(ubItems.istItems.IsCull. lstvN7uali. rsP#Nparticular1 l$.)1 M II!.rsP#Ngrade1.Add. rsP#Nremar&s1 rs.I1 M II!.J1 M II!.E$ecute.=1 M II!.IsCull. OO..E82 8r rs.rsP#Nboarduniv1.B82 #hen Else 2or i M @ #o rs.@1 M II!.(ubItems. OO. OO.istItems...IsCull.(ubItems. rsPCNyear1 l$.IsCull.O(elect A !rom 7uali!ication where 2FNemp%ode M'O D t$tNcode.CRM (A Client Relationship Management System) End I! lstvN7uali.. rsP#Ngrade1 l$.IsCull.istItems.%lear (et rs M lconn.%ount R @1 l$.(ubItems.#e$t D O'O1 I! rs.3ecord%ount (et l$ M lstvN7uali.(ubItems. OO.

CRM (A Client Relationship Management System) 96 .

istInde$ M cbNempNname. cbNempNname 2rom employee 83DE3 B- 96 .1 cbNcode.#Nname employee.CRM (A Client Relationship Management System) 0rivate (ub cbNempNnameN%lic&..#NnameO..1 2ill%ombo@ O(E.istInde$ End (ub 0rivate (ub cbNempNnameN9ot2ocus.E%# employee.

1 cbNcode.istInde$ End (ub 0rivate (ub cbNempNnameN..lconn1 I! cmdNsave.#e$t M OO t$tNduration. DNdate.istInde$ End (ub 0rivate (ub %learN%ontrols.CNcode employee.#NnameO. #Ndescription1O D N 96 .DNstartNdate.#e$t M OO t$tNdesc.Value M Date Dtp#oDate.E$ecute OIC(E3# IC#8 5ee&ly .Value M Date D#Ndate..ost2ocus.#e$t M OO End (ub 0rivate (ub cmdNsaveN%lic&.Fey%ode As Integer.CRM (A Client Relationship Management System) 2ill%ombo@ O(E. #N0roject.istInde$ M cbNempNname. #NempNname.istInde$ M cbNempNname.1 Dim lconn As AD8DB..#e$t M OO cbNmodule. cbNcode End (ub 2rom employee 83DE3 B- 0rivate (ub cbNempNnameNFeyDown.#e$t M OO cbNcode. #Nmodule.1 Dtp2romDate..istInde$ M cbNempNname.E%# employee. (hi!t As Integer1 cbNcode. DNendNdate..%aption S< OD+odi!yO #hen lconn.FeyAscii As Integer1 cbNcode.Value M Date cbNempNname.#e$t M OO cbNprojNname.istInde$ End (ub 0rivate (ub cbNempNnameNFey0ress.CNduration.%onnection (et lconn M 8pen%on..Begin#rans lconn.

#e$t l$.(ubItems..)1 M t$tNdesc.%ount R @1 l$..'O D t$tNduration. +e.%lear 2illN.'O D t$tNdesc.J1 M cbNmodule.(ubItems.#e$t D O'..(ubItems.istItem (et l$ M .lconn1 Dim rs As ..E$ecute O/0DA#E 5ee&ly (E# DNstartNdateMTO D %Date.O. #NempNnameM'O D cbNempNname.CRM (A Client Relationship Management System) OVA.#e$t D O'1O lconn.#N0rojectM'O D cbNprojNname.istItems.=1 M cbNempNname.'O D cbNprojNname.#e$t End (ub 96 .#e$t D O '.DNdateMTO D %Date.Dtp2romDate.#e$t l$.(ubItems.D#Ndate.%ommit#rans +sgBo$ OData (aved (uccess!ully.Add.t$tNduration.#e$t D O' where #NempNnameM'O D cbNempNname.D#Ndate.ist cmdNe$it.%aption End I! %learN%ontrols .'O D cbNempNname.Value1 D OT.istItems.#e$t l$.istItems.Value1 D OT.%aption M OcancelO E$it (ub End (ub 0rivate (ub %mdAddN%lic&.Dtp#oDate.#e$t D O'. #NmoduleM' O D cbNmodule.Value1 D OT.Value l$. +e.Dtp2romDate.#e$t1 D O.(ubItems. vbIn!ormation.O.Dtp#oDate.Value1 D OT O +sgBo$ OData +odi!y (uccess!ully.Value1 D OT.TO D %Date.stNrec.#e$t D O'.TO D %Date. #NdescriptionM'O D t$tNdesc.#e$t l$. vbIn!ormation.#e$t D O'.%onnection (et lconn M 8pen%on.#e$t D O'.CNdurationMO D Val./E(.I1 M cbNprojNname.TO D %Date.Value1 D OT.1 Dim lconn As AD8DB.%aption Else lconn.stNrec.stNrec.#e$t D O'and DNstartNdateMTO D %Date.Value1 D OT. .'O D cbNmodule.Dtp2romDate.@1 M D#Ndate.#e$t D O'. DNendNdateMTO D %Date.(ubItems. .K1 M t$tNduration.

3ecordset (et lconn M 8pen%on.E$ecute.lconn1 96 .(et2ocus End I! End (ub 0rivate (ub 2ormN.Value M DateAdd. (hi!t As Integer1 I! Fey%ode M @I #hen Dtp#oDate.3ecordset (et lconn M 8pen%on.Fey%ode As Integer. Dtp2romDate.E%# #Nname 2rom project 83DE3 B. L.1 2ill%ombo@ O(E. OO.Value1 Dtp2romDate.IsCull.CRM (A Client Relationship Management System) 0rivate (ub Dtp2romDateNFeyDown.1 8n Err 9o#o errh Dim l$ As .OdO.E%# #Nmodule 2rom moduleN@ where 2FNcodeM'O D n D O' O.E%# CNcode !rom project where #NnameM'O D cbNprojNname.Value M Date Dtp#oDate.ist.%onnection Dim rs As AD8DB.lconn1 (et rs M lconn.oad. cbNprojNname End (ub 0rivate (ub 2illN.Value M DateAdd. cbNmodule End (ub 0rivate (ub cbNprojNnameN9ot2ocus.OdO. L. Dtp2romDate. rsPCNcode1 2ill%ombo@ O(E.O(E.1 Dim lconn As AD8DB.%onnection Dim rs As AD8DB.rsPCNcode1.#NnameO.Value1 2illN.#e$t D O' O1 n M II!.ist End (ub 0rivate (ub cbNmoduleN9ot2ocus.istItem Dim lconn As AD8DB.1 Dtp2romDate.

1 Dim rs As AD8DB.CRM (A Client Relationship Management System) . ..(ubItems.ist cmdNsave. rsPDNdate1 l$.istItems.stNrec.B82 8r rs. .I1 M II!. OO.Description. OO..rsP#Ndescription1.istItems.IsCull.)1 M II!.(ubItems.rsPDNdate1. rsPCNduration1 l$.=1 M II!. rsP#NempNname1 l$.rsP#NempNname1. rsP#Ndescription1 rs.%ount R @1 l$. rsP#Nmodule1 l$.DNstartNdateO1 I! rs. rsP#N0roject1 l$.E$ecute.%aption M ODe$itO End I! End (ub 0rivate (ub cmdNopenN%lic&.IsCull.stNrec.J1 M II!. OO.%lear (et rs M lconn.@1 M II!.IsCull.IsCull.%aption M OsaveO %learN%ontrols cmdNe$it.E82 #hen Else 2or i M @ #o rs. OErrorO E$it (ub 3esume End (ub 0rivate (ub cmdNe$itN%lic&.(ubItems..O(E.(ubItems.%aption S< OD%ancelO #hen /nload +e Else 2illN.rsP#N0roject1.IsCull.K1 M II!. +sgBo$ Err. OO.E%# A 2rom 5ee&ly order by 5ee&ly.stNrec. OO.istItems.IsCull.3ecord%ount (et l$ M .+oveCe$t Ce$t i End I! E$it (ub errh.rsPCNduration1.(ubItems.1 I! cmdNe$it. OO.(ubItems.3ecordset 96 . vb%ritical R vbApplication+odal..Add.rsP#Nmodule1.

(ubItems.=1 M II!.rsP#N0roject1.rsP#NempNname1. OO.IsCull.ODo -ou 3eally 5ant #o Delete #he (elected Data. rsP#Nmodule1 l$.+oveCe$t Ce$t End I! End (ub 0rivate (ub cmdNdelN%lic&. ..stNrec. OO.stNrec.%ount R @1 l$.%lear (et rs M lconn.%onnection (et lconn M 8pen%on.rsPCNduration1.%aption M OD+odi!yO cmdNdel.)1 M II!.IsCull.D#Ndate. OO.rsPDNdate1. vb4uestion R vb-esCo. OO.stNrec.IsCull.I1 M II!.3ecord%ount (et l$ M .O(elect A !rom 5ee&ly where DNdate BE#5EEC TO D %Date. rsP#NempNname1 l$.istItems.Enabled M #rue cmdNe$it.E82 8r rs.rsP#Ndescription1.B82 #hen Else 2or i M @ #o rs..1 8n Err 9o#o errh Dim lconn As AD8DB.lconn1 cmdNsave.(ubItems.K1 M II!. rsP#N0roject1 l$. .stNrec.rsP#Nmodule1.#e$t D O'and DNdateMTO D %Date.(ubItems.@1 M II!.Dtp2romDate..Add. rsP#Ndescription1 rs.istItems.IsCull.istItem (et l$ M . rsPDNdate1 l$.istItems.Value1 D OTO1 I! rs.(ubItems.J1 M II!.Value1 D OT ACD TO D %Date.IsCull.%aption M OD%ancelO Dim l$ As .lconn1 ans M +sgBo$.CRM (A Client Relationship Management System) Dim lconn As AD8DB. +e. OO.O.E$ecute ODelete A 2rom 5ee&ly where #NempNnameM'O D cbNempNname.Dtp#oDate.. OO.Value1 D OT O 96 .%onnection (et lconn M 8pen%on.IsCull.(ubItems.(electedItem .%aption1 I! ans M ) #hen lconn. rsPCNduration1 l$.(ubItems.E$ecute.

1 Dim rs As AD8DB.rsP#NempNname1.rsPDNstartNdate1.IsCull. rsPDNstartNdate1 cbNempNname.O. +sgBo$ Err.#e$t M II!.#e$t M II!.Value M l$.#e$t D O' and DNdateMTO D %Date.#e$t M II!.3ecordset Dim lconn As AD8DB.B82 #hen Else Dtp2romDate.(ubItems. rsPCNduration1 t$tNdesc. +e.%aption M OsaveO %learN%ontrols 2illN.IsCull.stNrec. OErrorO E$it (ub 3esume End (ub 0rivate (ub lstNrecNDbl%lic&.lconn1 cmdNsave.IsCull.#e$t M II!.(electedItem D#Ndate.rsP#Ndescription1.#e$t M l$. rsP#Nmodule1 t$tNduration.%aption M OD+odi!yO cmdNdel.O(elect A !rom wee&ly where #NempNname M 'O D cbNempNname.@1 cbNempNname.#e$t M II!.D#Ndate.IsCull.%onnection (et lconn M 8pen%on.%aption End I! cmdNsave.rsPCNduration1.(ubItems.Value1 D OT O1 I! rs.E$ecute.E82 8r rs. OO. rsP#N0roject1 cbNmodule.rsP#Nmodule1.%aption M OD%ancelO Dim l$ As . OO.IsCull. OO. rsP#Ndescription1 96 . rsP#NempNname1 cbNprojNname. OO.istItem (et l$ M .Description.CRM (A Client Relationship Management System) +sgBo$ OData Delete (uccess!ully.Enabled M #rue cmdNe$it.ist E$it (ub errh. vb%ritical R vbApplication+odal.IsCull.rsP#N0roject1. OO.Value M II!. OO. vbIn!ormation.=1 (et rs M lconn.

CRM (A Client Relationship Management System) End I! End (ub 96 .

(hi!t As Integer1 96 .#NnameO. cbNcode End (ub 0rivate (ub cbNempNnameNFeyDown..#NnameO..Fey%ode As Integer.istInde$ End (ub 0rivate (ub cbNempNnameN9ot2ocus.istInde$ M cbNempNname.CRM (A Client Relationship Management System) 0rivate (ub cbNempNnameN%lic&. cbNempNname 2ill%ombo@ O(E.1 cbNcode.E%# CNcode 2rom employee 83DE3 B.1 2ill%ombo@ O(elect #Nname !rom employee 83DE3 B.

O(E.1 cbNstatus.E$ecute.E%# #Nmodule 2rom moduleN@ where 2FNcodeM'O D n D O' O..istInde$ End (ub 0rivate (ub cbNempNnameNFey0ress.FeyAscii As Integer1 cbNcode. cbNprojNname End (ub 0rivate (ub cbNstatusN9ot2ocus.1 Dim lconn As AD8DB.#e$t D O' O1 n M II!.istInde$ M cbNempNname.1 2ill%ombo@ O(E.1 8n Err 9o#o errh Dim lconn As AD8DB..ost2ocus.istInde$ M cbNempNname..IsCull..istInde$ End (ub 0rivate (ub cbNmoduleN9ot2ocus.rsPCNcode1.E%# CNcode !rom project where #NnameM'O D cbNprojNname. rsPCNcode1 2ill%ombo@ O(E. OO.istInde$ M cbNempNname.E%# #Nname 2rom project 83DE3 B.#NnameO.. cbNmodule End (ub 0rivate (ub cbNprojNnameN9ot2ocus.3ecordset (et lconn M 8pen%on.1 cbNcode...%onnection Dim rs As AD8DB.ist End (ub 0rivate (ub cmdNdelN%lic&.%onnection (et lconn M 8pen%on.CRM (A Client Relationship Management System) cbNcode.lconn1 (et rs M lconn.istInde$ End (ub 0rivate (ub cbNempNnameN.lconn1 96 .

#e$t M OO cbNempNname.%aption M OsaveO %learN%ontrols 2illN.#e$t M OO cbNprojNname.1 I! cmdNe$it.#e$t M OO 96 . +e. vb%ritical R vbApplication+odal.%aption S< OD%ancelO #hen /nload +e Else cmdNsave.ist E$it (ub errh.%aption M OsaveO %learN%ontrols cmdNe$it.D#Ndate.%aption1 I! ans M ) #hen lconn. OErrorO E$it (ub 3esume End (ub 0rivate (ub cmdNe$itN%lic&. vb4uestion R vb-esCo.#e$t M OO cbNmodule.#e$t D O'and DNdateMTO D %Date.Value1 D OT O +sgBo$ OData Delete (uccess!ully. vbIn!ormation.E$ecute ODelete A 2rom D53@ where #NempNnameM'O D cbNempNname.CRM (A Client Relationship Management System) ans M +sgBo$. +sgBo$ Err.%aption M ODe$itO End I! End (ub 0rivate (ub %learN%ontrols.1 cbNcode.ODo -ou 3eally 5ant #o Delete #he (elected Data.%aption End I! cmdNsave.Description.O.O. +e.#e$t M OO cbNstatus.

#e$t D O'.#e$t D O'.1 Dim lconn As AD8DB.TO D dtNtime.DNtime.#e$t D O'.#e$t D O'1O lconn.'O D t$tNtas&.#e$t M OO D#Ndate. +e. #Nmodule. #Nremar&. #Ntas&.'O D cbNstatus. DNdate.Value M Date dtNtime.E$ecute OIC(E3# IC#8 D53@ . #Nstatus.E$ecute O/0DA#E D53@ (E# CNcodeM'O D cbNcode.'O D t$tNin!o.Enabled M #rue cmdNe$it.lconn1 I! cbNcode.#e$t M OO t$tNin!o.#e$t D O'.Begin#rans lconn.%aption S< OD+odi!yO #hen lconn.(et2ocus E$it (ub End I! I! cmdNsave.'O D cbNcode. vb%ritical cbNcode.%aption M OD%ancelO cmdNsave.CRM (A Client Relationship Management System) t$tNtas&.'O D cbNempNname.D#Ndate.%ommit#rans +sgBo$ OData (aved (uccess!ully./E(.#e$t D O'. #NprojNnameM'O D cbNprojNname.#e$t M OO #hen +sgBo$ O0lease !ill the code valueO. #NempNnameM'O D cbNempNname.%aption M OD+odi!yO End (ub 0rivate (ub cmdNsaveN%lic&.#e$t D O'. #NempNname.%aption Else lconn.'O D cbNprojNname. vbIn!ormation. #Nin!o1O D N OVA.#e$t D 96 .CNcode.'O D t$tNremar&.Value M #ime End (ub 0rivate (ub cmdNopenN%lic&.#e$t D O'.#e$t M OO t$tNremar&.O.TO D %Date.Value D OT.#e$t D O'.%onnection (et lconn M 8pen%on. #NprojNname.#e$t D O'.1 cmdNdel.Value1 D OT.'O D cbNmodule.

1 8n Err 9o#o errh Dim l$ As .(ubItems.IsCull. vbIn!ormation.stvNrec.B82 8r rs.istItems.J1 M II!.istItems. OO.IsCull.#e$t D O'. OO.Add.#e$t D O'..=1 M II!.DNdateO1 I! rs. rsP#NprojNname1 l$.Value1 D OT.rsP#NempNname1.#e$t D O'and DNdateMTO D %Date.3ecordset (et lconn M 8pen%on.(ubItems.K1 M II!.IsCull..ist E$it (ub End (ub 0rivate (ub 2illN.D53@.ist.lconn1 .istItems.istItems. #NstatusM'O D cbNstatus.%onnection Dim rs As AD8DB.(ubItems.istItem Dim lconn As AD8DB.E%# A 2rom D53@ 83DE3 B. rsP#Nstatus1 rs.IsCull. rsP#Ntas&1 l$. .E$ecute.rsP#Nmodule1.#Nin!oM'O D t$tNin!o. rsP#Nmodule1 l$. .#e$t D O' where #NempNnameM'O D cbNempNname.#Ntas&M'O D t$tNtas&.O.IsCull.CNtimeMTO D dtNtime.CRM (A Client Relationship Management System) O'. rsPDNdate1 l$. rsPCNcode1 l$.(ubItems.(ubItems. rsP#NempNname1 l$..O(E.IsCull.(ubItems..D#Ndate.)1 M II!.3ecord%ount (et l$ M .rsPDNdate1.stvNrec.@1 M II!. +e.Value1 D OT O +sgBo$ OData +odi!y (uccess!ully.#e$t D O'.rsPCNcode1. #NmoduleM' O D cbNmodule.D#Ndate.Value D OT. OO.rsP#NprojNname1.%lear (et rs M lconn.(ubItems.L1 M II!.I1 M II!.%lear 2illN.. OO.DNdateMTO D %Date.rsP#Ntas&1.E82 #hen Else 2or i M @ #o rs.%ount R @1 l$.+oveCe$t Ce$t i End I! 96 .#e$t D O '. OO.rsP#Nstatus1.#Nremar&M'O D t$tNremar&. OO.stvNrec.IsCull. OO.stvNrec.%aption End I! %learN%ontrols .

#e$t M II!.#e$t M l$.rsP#Nin!o1.E$ecute.IsCull.CRM (A Client Relationship Management System) E$it (ub errh.Value M II!.O(elect A !rom D53@ where CN%ode M 'O D cbNcode.rsP#Ntas&1.(ubItems.3ecordset Dim lconn As AD8DB.rsP#NprojNname1.Value M II!.=1 (et rs M lconn.D#Ndate.#e$t M II!.IsCull. vb%ritical R vbApplication+odal. rsPDNtime1 t$tNin!o.rsPDNdate1. OO.%onnection (et lconn M 8pen%on.stvNrec.Value M l$.rsPDNtime1. +sgBo$ Err. OErrorO E$it (ub 3esume End (ub 0rivate (ub .#e$t M II!.rsP#Nmodule1. rsP#NempNname1 D#Ndate.@1 cbNcode.1 Dim rs As AD8DB. rsP#Nin!o1 End I! End (ub 96 . rsPDNdate1 cbNprojNname.IsCull. rsP#Nstatus1 t$tNremar&.%aption M OD+odi!yO cmdNdel.%aption M OD%ancelO Dim l$ As .#e$t D O' and DNdateMTO D %Date. OO. OtimeO.istItem (et l$ M .#e$t M II!.#e$t M II!. OO.IsCull.IsCull.rsP#NempNname1.(ubItems. OO.B82 #hen Else cbNcode.Enabled M #rue cmdNe$it.IsCull.rsPCNcode1. OO.IsCull.Description. OO. rsP#Ntas&1 cbNstatus. rsP#Nremar&1 dtNtime.rsP#Nstatus1. OO.#e$t M II!. OO.#e$t M II!.IsCull. rsP#NprojNname1 cbNmodule.IsCull. OO.stvNrecNDbl%lic&.Value1 D OT O I! rs.#e$t M II!.rsP#Nremar&1. rsPCNcode1 cbNempNname.IsCull.(electedItem D#Ndate.lconn1 cmdNsave. rsP#Nmodule1 t$tNtas&.E82 8r rs.

1 2illN.oad.ist End (ub 96 .CRM (A Client Relationship Management System) 0rivate (ub 2ormN.

%lear (et rs M lconn.%ount R @1 96 . .3ecordset Dim lrs As AD8DB.3ecordset (et lconn M 8pen%on..O(E.CRM (A Client Relationship Management System) 0rivate (ub ..%onnection Dim rs As AD8DB.lconn1 lstvNmod.istItems. cbNprojNname End (ub 0rivate (ub cbNprojNnameNFey0ress.3ecord%ount (et l$ M lstvNmod...istItems.3ecordset Dim rs@ As AD8DB.E$ecute.FeyAscii As Integer1 8n Err 9o#o errh Dim l$ As . #Nremar&.1 2ill%ombo@ O(E.E82 #hen Else 2or i M @ #o rs. #Nstatus.E%# #Nmodule.E%# #Nname 2rom project 83DE3 B.#NnameO. #NprojNname 238+ D53@ 5here #NprojNnameM'O D cbNprojNname.B82 8r rs.istItems.#e$t D O'O1 I! rs.Add.istItem Dim lconn As AD8DB. lstvNmod.

rsP#Nmodule1 l$.+oveCe$t Ce$t j E$it (ub errh.E%# #Nmodule.istItems..lrsP#Nmodule1. lrsP#Nmodule1 M II!.rsP#Nmodule1. rs@PCNcode1 (et lrs M lconn. OO.IsCull.II!.O(E.(ubItems.E$ecute. vb%ritical R vbApplication+odal.3ecord%ount (et rs M lconn. rsP#Nremar&1 rs.rsP#Nstatus1.=1 M OIncompleteO End I! lrs.E%# CNcode !rom project where #NnameM'O D cbNprojNname. lstvNmod.+oveCe$t Ce$t i I! . OO.O(E.IsCull. #Nstatus. #Nremar&.#e$t D O' O1 n M II!.rsP#Nremar&1.@1 M II!.!lag S< @1 #hen (et l$ M lstvNmod. rsP#Nstatus1 l$.E$ecute. .I1 M II!. OO. lrsP#Nmodule1 l$.3ecord%ount I! . OO. OErrorO E$it (ub 96 .#e$t D O' O1 !lag M > 2or i M @ #o rs.(ubItems.istItems.IsCull. +sgBo$ Err.O(E.rs@PCNcode1. rsP #Nmodule11 #hen !lag M @ E$it 2or End I! rs.E$ecute.Description..rsP#Nmodule1.IsCull.@1 M II!.Add.E%# #Nmodule 2rom moduleN@ where 2FNcodeM'O D n D O'O1 2or j M @ #o lrs.(ubItems.CRM (A Client Relationship Management System) l$.IsCull.lrsP#Nmodule1. OO. OO.+oveCe$t Ce$t i End I! (et rs@ M lconn.IsCull.%ount R @1 l$.(ubItems. #NprojNname 238+ D53@ 5here #NprojNnameM'O D cbNprojNname.(ubItems. OO.=1 M II!..IsCull.

istItem Dim lconn As AD8DB.ist. #Nremar&.E$ecute.%aption M OD%ancelO End (ub 0rivate (ub 2illN.1 I! cmdNe$it. #Nstatus.CRM (A Client Relationship Management System) 3esume End (ub 0rivate (ub cmdNe$itN%lic&.#e$t D O'O1 96 .1 8n Err 9o#o errh Dim l$ As .%aption M ODe$itO End I! End (ub 0rivate (ub %learN%ontrols.%lear (et rs M lconn.3ecordset Dim lrs As AD8DB.istItems.E%# #Nmodule.%onnection Dim rs As AD8DB.ist cmdNe$it.istItems..#e$t M OO lstvNmod.3ecordset (et lconn M 8pen%on. #NprojNname 238+ D53@ 5here #NprojNnameM'O D cbNprojNname.O(E.%aption S< OD%ancelO #hen /nload +e Else %learN%ontrols cmdNe$it.1 cbNprojNname.1 2illN..3ecordset Dim rs@ As AD8DB.%lear End (ub 0rivate (ub %mdNshowN%lic&.lconn1 lstvNmod.

rs@PCNcode1.+oveCe$t Ce$t j 96 .IsCull.(ubItems. rsP#Nremar&1 rs.istItems. OO.IsCull.. rsP#Nmodule1 l$. OO.B82 8r rs.+oveCe$t Ce$t i End I! (et rs@ M lconn. #NprojNname 238+ D53@ 5here #NprojNnameM'O D cbNprojNname.%ount R @1 l$..II!.IsCull.=1 M II!..@1 M II!..!lag S< @1 #hen (et l$ M lstvNmod.3ecord%ount (et l$ M lstvNmod.(ubItems.rsP#Nmodule1.O(E.3ecord%ount (et rs M lconn.IsCull.CRM (A Client Relationship Management System) I! rs.Add. OO.IsCull.lrsP#Nmodule1. OO.E82 #hen Else 2or i M @ #o rs.. . OO.(ubItems.rsP#Nmodule1.(ubItems. #Nremar&. lrsP#Nmodule1 l$.lrsP#Nmodule1.IsCull.istItems.istItems.rsP#Nstatus1. lrsP#Nmodule1 M II!.3ecord%ount I! . rsP#Nstatus1 l$. OO.rsP#Nremar&1.istItems.%ount R @1 l$. lstvNmod..(ubItems.O(E.Add. rsP #Nmodule11 #hen !lag M @ E$it 2or End I! rs. #Nstatus.E$ecute. rs@PCNcode1 (et lrs M lconn.IsCull.O(E.+oveCe$t Ce$t i I! . lstvNmod.E%# #Nmodule.E%# CNcode !rom project where #NnameM'O D cbNprojNname.=1 M OIncompleteO End I! lrs.#e$t D O' O1 !lag M > 2or i M @ #o rs.@1 M II!.E$ecute. .E$ecute. OO.I1 M II!.#e$t D O' O1 n M II!.E%# #Nmodule 2rom moduleN@ where 2FNcodeM'O D n D O'O1 2or j M @ #o lrs.

Description. OErrorO E$it (ub 3esume End (ub 96 . vb%ritical R vbApplication+odal.CRM (A Client Relationship Management System) E$it (ub errh. +sgBo$ Err.

#Nstatus.II!.#e$t D O' O1 n M II!. OO.E%# #Nmodule.rs@PCNcode1. #Nstatus. OO. OO. #NprojNname 238+ D53@ 5here #NprojNnameM'O D cbNprojNname.E$ecute.O(E.istItems. lstvNmod. rs@PCNcode1 (et lrs M lconn.%ount R @1 l$.3ecord%ount (et rs M lconn. rsP#Nremar&1 End I! rs. rsP#Nstatus1 M OIncompleteO1 #hen (et l$ M lstvNmod. #NprojNname 238+ D53@ 5here #NprojNnameM'O D cbNprojNname.3ecordset Dim rs@ As AD8DB.B82 8r rs.%onnection Dim rs As AD8DB.FeyAscii As Integer1 8n Err 9o#o errh Dim l$ As .rsP#Nmodule1.E$ecute.(ubItems. cbNprojNname End (ub 0rivate (ub cbNprojNnameNFey0ress.E$ecute.#e$t D O' O1 (et rs@ M lconn. #Nremar&.E%# #Nname 2rom project 83DE3 B.1 2ill%ombo@ O(E.istItem Dim lconn As AD8DB.CRM (A Client Relationship Management System) 0rivate (ub .@1 M II!.Add.IsCull.+oveCe$t Ce$t i 2or j M @ #o lrs.=1 M II!.E82 #hen Else 2or i M @ #o rs.E%# #Nmodule.O(E..(ubItems. .IsCull.3ecordset (et lconn M 8pen%on.IsCull.E%# CNcode !rom project where #NnameM'O D cbNprojNname.. #Nremar&.lconn1 lstvNmod.#e$t D O' O1 !lag M > 96 .3ecordset Dim lrs As AD8DB.IsCull.%lear (et rs M lconn.. OO.rsP#Nstatus1.E%# #Nmodule 2rom moduleN@ where 2FNcodeM'O D n D O' O1 I! rs. rsP#Nmodule1 l$.O(E.E$ecute.3ecord%ount I! .#NnameO.istItems.O(E.rsP#Nremar&1..istItems.

@1 M II!.II!.istItems.%aption S< OD%ancelO #hen /nload +e Else %learN%ontrols cmdNe$it. rsP#Nremar&1 End I! rs.+oveCe$t Ce$t j End I! E$it (ub errh. lstvNmod.(ubItems. OO.%aption M ODe$itO End I! End (ub 0rivate (ub %learN%ontrols. OErrorO E$it (ub 3esume End (ub 0rivate (ub cmdNe$itN%lic&.IsCull. OO.3ecord%ount I! . lrsP#Nmodule1 M II!.Add. OO. vb%ritical R vbApplication+odal.=1 M II!.rsP#Nremar&1. +sgBo$ Err.1 cbNprojNname...CRM (A Client Relationship Management System) 2or i M @ #o rs.%ount R @1 l$.IsCull.%lear 96 .!lag S< @1 #hen (et l$ M lstvNmod.. .+oveCe$t Ce$t i I! . lrsP#Nmodule1 End I! lrs.istItems.rsP#Nmodule1. OO.lrsP#Nmodule1.#e$t M OO lstvNmod..1 I! cmdNe$it.istItems. rsP #Nmodule11 #hen !lag M @ E$it 2or 'l$.Description.IsCull.IsCull.lrsP#Nmodule1.(ubItems.

.ist. OO. rsP#Nremar&1 End I! rs. rsP#Nmodule1 l$.=1 M II!.%lear (et rs M lconn.rs@PCNcode1.IsCull. #NprojNname 238+ D53@ 5here #NprojNnameM'O D cbNprojNname.1 2illN.%onnection Dim rs As AD8DB.E82 #hen Else 2or i M @ #o rs..3ecordset Dim lrs As AD8DB.E%# CNcode !rom project where #NnameM'O D cbNprojNname.3ecordset Dim rs@ As AD8DB.rsP#Nmodule1.istItem Dim lconn As AD8DB. #Nremar&.#e$t D O' O1 n M II!. rsP#Nstatus1 M OIncompleteO1 #hen (et l$ M lstvNmod.#e$t D O' O1 (et rs@ M lconn.istItems.3ecordset (et lconn M 8pen%on.IsCull.%aption M OD%ancelO End (ub 0rivate (ub 2illN. .lconn1 lstvNmod.E%# #Nmodule 2rom moduleN@ where 2FNcodeM'O D n D O' O1 I! rs.E$ecute.O(E.3ecord%ount 96 .II!.IsCull.E%# #Nmodule.rsP#Nstatus1. OO.E$ecute.istItems. OO. rs@PCNcode1 (et lrs M lconn.(ubItems. #Nstatus.E$ecute.IsCull. OO.Add.ist cmdNe$it.O(E.@1 M II!.CRM (A Client Relationship Management System) End (ub 0rivate (ub %mdNshowN%lic&.3ecord%ount I! .1 8n Err 9o#o errh Dim l$ As .(ubItems. lstvNmod..istItems..B82 8r rs.rsP#Nremar&1.+oveCe$t Ce$t i 2or j M @ #o lrs.O(E.%ount R @1 l$.

rsP#Nremar&1 End I! rs.IsCull. OO..(ubItems. OO. OErrorO E$it (ub 3esume End (ub 96 . #NprojNname 238+ D53@ 5here #NprojNnameM'O D cbNprojNname. . OO. vb%ritical R vbApplication+odal.=1 M II!.(ubItems. OO.lrsP#Nmodule1.E%# #Nmodule. lrsP#Nmodule1 End I! lrs.+oveCe$t Ce$t j End I! E$it (ub errh. +sgBo$ Err.IsCull.O(E.E$ecute.rsP#Nmodule1.IsCull.#e$t D O' O1 !lag M > 2or i M @ #o rs.!lag S< @1 #hen (et l$ M lstvNmod. lrsP#Nmodule1 M II!.Add. #Nremar&.Description..3ecord%ount I! .. lstvNmod. rsP#Nmodule11 #hen !lag M @ E$it 2or 'l$.%ount R @1 l$.rsP#Nremar&1. #Nstatus.+oveCe$t Ce$t i I! .istItems.IsCull.istItems.CRM (A Client Relationship Management System) (et rs M lconn.lrsP#Nmodule1.II!.@1 M II!.

CRM (A Client Relationship Management System) 0rivate (ub cbNcallNrecieverN9ot2ocus. 96 .lconn1 employee 83DE3 B- #NnameO.E%# #Nname 2rom cbNcallNreciever End (ub 0rivate (ub cmdNdelN%lic&.1 2ill%ombo@ O(E.1 8n Err 9o#o errh Dim lconn As AD8DB.%onnection (et lconn M 8pen%on.

Description.'O D t$tNcaller. +e.E$ecute ODelete A 2rom %all where #NcallerM'O D t$tNcaller. vb4uestion R vb-esCo.dtNdate. DNtime.TO D dtNtime. vb%ritical cbNcode.Value D OT.O.%aption1 I! ans M ) #hen lconn. vbIn!ormation.%ommit#rans +sgBo$ OData (aved (uccess!ully.#e$t D O'1O lconn.%aption M OsaveO %learN%ontrols 2illN.%aption S< OD+odi!yO #hen lconn.O. #NcallNreciever. #Ncomplaint1O D N OVA.Begin#rans lconn.ODo -ou 3eally 5ant #o Delete #he (elected Data. +e.TO D %Date.1 Dim lconn As AD8DB.(et2ocus E$it (ub End I! I! cmdNsave.'O D cbNcallNreciever.lconn1 I! t$tNcaller.Value1 D OT O +sgBo$ OData Delete (uccess!ully.CRM (A Client Relationship Management System) ans M +sgBo$.Value1 D OT.#e$t D O'. +e. +sgBo$ Err.O.#e$t D O'. #Ncaller.%aption Else 96 .%aption End I! cmdNsave.dtNdate. OErrorO E$it (ub 3esume End (ub 0rivate (ub cmdNsaveN%lic&.'O D t$tNcomplaint.DNdate.E$ecute OIC(E3# IC#8 %all .%onnection (et lconn M 8pen%on. vb%ritical R vbApplication+odal.#e$t D O'and DNdateMTO D %Date./E(. vbIn!ormation.ist E$it (ub errh.#e$t M OO #hen +sgBo$ O0lease !ill the caller nameO.

1 '8n Err 9o#o errh Dim l$ As .ist. rsP#NcallNreciever1 96 .%all.@1 M II!. OO.ist E$it (ub End (ub 0rivate (ub %learN%ontrols. vbIn!ormation. OO. +e.=1 M II!.istItem Dim lconn As AD8DB..#NcomplaintM'O D t$tNcomplaint.E$ecute. OO.Add.IsCull.#e$t D O'.IsCull.#e$t M OO cbNcallNreciever.Value M Date dtNtime.istItems.istItems.I1 M II!.#NcallNrecieverM'O D cbNcallNreciever.%aption End I! %learN%ontrols lstvNrec.Value1 D OT..dtNdate.istItems.E82 #hen Else 2or i M @ #o rs.Value D OT.CRM (A Client Relationship Management System) lconn.%ount R @1 l$.IsCull.IsCull.rsPDNdate1.(ubItems.. OO.#e$t M OO t$tNcomplaint.O(E.(ubItems.dtNdate.3ecord%ount (et l$ M lstvNrec.#e$t D O'and DNdateMTO D %Date.1 dtNdate.B82 8r rs. rsPDNdate1 l$..rsPDNtime1.%onnection Dim rs As AD8DB.J1 M II!.lconn1 lstvNrec. . #NcallerM'O D t$tNcaller.#e$t D O'where #NcallerM'O D t$tNcaller.%lear (et rs M lconn.Value M #ime t$tNcaller.(ubItems.%lear 2illN.3ecordset (et lconn M 8pen%on.DNdateO1 I! rs.Value1 D OT O +sgBo$ OData +odi!y (uccess!ully.istItems.DNdateMTO D %Date. lstvNrec.rsP#Ncaller1.rsP#NcallNreciever1.#e$t M OO End (ub 0rivate (ub 2illN.E$ecute O/0DA#E %all (E# DNtimeMTO D dtNtime.E%# A 2rom %all 83DE3 B. rsP#Ncaller1 l$. rsPDNtime1 l$.(ubItems.#e$t D O'.O..

IsCull.+oveCe$t Ce$t i End I! E$it (ub errh.CRM (A Client Relationship Management System) l$. rsP#Ncomplaint1 rs.%onnection (et lconn M 8pen%on.1 I! cmdNe$it.Enabled M #rue cmdNe$it.@1 96 . +sgBo$ Err.ist End (ub 0rivate (ub .%aption S< OD%ancelO #hen /nload +e Else cmdNsave.1 Dim rs As AD8DB.%aption M ODe$itO End I! End (ub 0rivate (ub 2ormN. OErrorO E$it (ub 3esume End (ub 0rivate (ub cmdNe$itN%lic&.%aption M OD%ancelO Dim l$ As .1 2illN.lconn1 cmdNsave.Description. vb%ritical R vbApplication+odal.Value M l$. OO.(ubItems.rsP#Ncomplaint1.stvNrecNDbl%lic&.(electedItem dtNdate.%aption M OsaveO %learN%ontrols cmdNe$it.3ecordset Dim lconn As AD8DB.(ubItems.%aption M OD+odi!yO cmdNdel.K1 M II!.oad.istItem (et l$ M lstvNrec.

rsP#NcallNreciever1 t$tNcomplaint. OO.#e$t M II!.#e$t D O' and DNdateMTO D %Date.CRM (A Client Relationship Management System) t$tNcaller.IsCull.(ubItems.dtNdate.E82 8r rs. OtimeO.Value M II!.I1 (et rs M lconn.IsCull.E$ecute. rsPDNtime1 End I! End (ub 96 .Value1 D OT O1 I! rs.rsPDNtime1.rsP#NcallNreciever1. OO.#e$t M l$.IsCull.B82 #hen Else cbNcallNreciever. rsP#Ncomplaint1 dtNtime.O(elect A !rom %all where #Ncaller M 'O D t$tNcaller.rsP#Ncomplaint1.#e$t M II!.

#e$t M OO #$tNsupport.#e$t M OO cbNverNby.#e$t M OO 96 .1 t$tNre7Nby.#e$t M OO cbNcustNname.#e$t M OO t$tNdesc.#e$t M OO cbNstatus.CRM (A Client Relationship Management System) 0rivate (ub %learN%ontrols.#e$t M OO t$tNre7Nthru.#e$t M OO cbNproNname.#e$t M OO cbNrecNby.

E%# #Nname 2rom client 83DE3 B. vbIn!ormation.istItems. 0rivate (ub cbNrecNbyN9ot2ocus. vb4uestion R vb-esCo.#NnameO.Value1 D OTO +sgBo$ OData Delete (uccess!ully.ist 96 .1 2ill%ombo@ O(E.E%# #Nname 2rom employee 83DE3 B.E%# #Nname cbNproNname End (ub 2rom project 83DE3 B- #NnameO.1 2ill%ombo@ O(E.lconn1 ans M +sgBo$.#e$t D O' and DNdateMTO D %Date.E%# #Nname 2rom Employee 83DE3 B. +e.1 2ill%ombo@ O(E.O. cbNverNby End (ub 0rivate (ub cmdNdelN%lic&.CRM (A Client Relationship Management System) End (ub 0rivate (ub cbNcustNnameN9ot2ocus.O.%lear %learN%ontrols 2illN.1 2ill%ombo@ O(E.#NnameO.1 8n Err 9o#o errh Dim lconn As AD8DB. cbNrecNby End (ub 0rivate (ub cbNverNbyN9ot2ocus. cbNcustNname End (ub 0rivate (ub cbNproNnameN9ot2ocus.%aption End I! .%aption1 I! ans M ) #hen lconn.stvNrec. +e.ODo -ou 3eally 5ant #o Delete #he (elected Data.#NnameO..D#Ndate.E$ecute ODelete A 2rom online where #Nre7NbyM'O D t$tNre7Nby.%onnection (et lconn M 8pen%on.

#e$t D O'. vb%ritical R vbApplication+odal.'O D #$tNsupport.%aption M ODe$itO End I! End (ub 0rivate (ub cmdNsaveN%lic&.#e$t D O'. +sgBo$ Err. #NverNby. #NsupportNby.%aption S< OD%ancelO #hen /nload +e Else cmdNsave.'O D cbNrecNby.'O D cbNverNby.#e$t D O'.D#picN!rom.DNdate1O D N OVA. #Nre7Nthrough.#e$t D O'. #NrecNby.'O D cbNcustNname.'O D t$tNre7Nthru.D#Ndate.CRM (A Client Relationship Management System) E$it (ub errh.TO D %Date.%aption S< OD+odi!yO #hen lconn.'O D t$tNdesc.lconn1 I! cmdNsave. DNtimeN!rom.#e$t D O'.%aption M OsaveO %learN%ontrols cmdNe$it.Description. +e.%onnection (et lconn M 8pen%on.%ommit#rans +sgBo$ OData (aved (uccess!ully.%aption Else lconn.O.#NproNnameM'O D cbNproNname.E$ecute OIC(E3# IC#8 online .Value1 D OT.Value1 D OT. vbIn!ormation.'O D cbNstatus./E(. #NproNname.#Ndes.#e$t D O'.Value1 D OT1O lconn.1 I! cmdNe$it.D#0icNto.#Nre7NthroughM'O D t$tNre7Nthru.E$ecute O/0DA#E online (E# #Nre7NbyM'O D t$tNre7Nby.'O D cbNproNname. #Nstatus.DNtimeNto. #NcustNname.'O D t$tNre7Nby.Begin#rans lconn.#e$t D O'.#e$t D O'.#Nre7Nby.TO D %Date.#e$t D O'. OErrorO E$it (ub 3esume End (ub 0rivate (ub cmdNe$itN%lic&.TO D %Date.#e$t D 96 .#e$t D O'.#e$t D O'.1 Dim lconn As AD8DB.

#NverNbyM'O D cbNverNby.#NstatusM'O D cbNstatus.rsP#NrecNby1.ist.IsCull.#e$t O'.#e$t D O'.Value1 D OT O +sgBo$ OData +odi!y (uccess!ully.Value1 D OTwhere #Nre7NbyM'O D t$tNre7Nby. rsPDNdate1 l$.stvNrec.#e$t D O'.lconn1 .=1 M II!.B82 8r rs. OO.istItems.%aption End I! %learN%ontrols . .#e$t O'.J1 M II!.D#Ndate. OO.(ubItems. vbIn!ormation.IsCull.IsCull. rsP#NrecNby1 l$.#e$t D O'.istItems.D#Ndate.istItems.@1 M II!..istItem Dim lconn As AD8DB...IsCull.Value1 D OT.Add.#NdesM'O D t$tNdesc.stvNrec. .#e$t O'.+oveCe$t Ce$t i D D D D D 96 . rsP#Nre7Nthrough1 l$.DNdateMTO %Date. rsP#Nre7Nby1 l$.rsP#NproNname1.#NrecNbyM'O D cbNrecNby.DNtimeN!romMTO D %Date.(ubItems.rsPDNdate1.%lear (et rs M lconn.IsCull..(ubItems.rsP#Nre7Nby1.IsCull.E%# A 2rom online 83DE3 B.#e$t D O' and DNdateMTO %Date. rsP#Nstatus1 rs.stvNrec.O(E. OO. rsP#NproNname1 l$.3ecordset (et lconn M 8pen%on.rsP#NverNby1.E82 #hen Else 2or i M @ #o rs.%onnection Dim rs As AD8DB.(ubItems.#NcustNnameM'O D cbNcustNname.D#0icNto.K1 M II!.%lear 2illN.ist E$it (ub End (ub 0rivate (ub 2illN.online.3ecord%ount (et l$ M .%ount R @1 l$.DNtimeNtoMTO D %Date. OO.#NsupportNbyM'O D #$tNsupport.D#picN!rom.CRM (A Client Relationship Management System) O'. rsP#NverNby1 l$.istItems.(ubItems.L1 M II!.)1 M II!.1 8n Err 9o#o errh Dim l$ As .E$ecute.. OO. +e. OO.rsP#Nstatus1.I1 M II!.(ubItems.DNdateO1 I! rs.IsCull.Value1 D OT.O.(ubItems.stvNrec.rsP#Nre7Nthrough1. OO.

#e$t M II!.stvNrec.1 Dim rs As AD8DB.lconn1 cmdNsave.Enabled M #rue cmdNe$it. OO.ist End (ub 0rivate (ub lstvNrecNDbl%lic&.istItem (et l$ M .IsCull.#e$t M II!.D#Ndate.3ecordset Dim lconn As AD8DB.CRM (A Client Relationship Management System) End I! E$it (ub errh.istView@NBe!ore. rsP#NproNname1 96 .1 2illN.rsP#NsupportNby1.#e$t D O' and DNdateMTO D %Date. vb%ritical R vbApplication+odal.rsP#Nre7Nthrough1.rsP#NproNname1. OErrorO E$it (ub 3esume End (ub 0rivate (ub .#e$t M l$.rsP#Ndes1. OO.O(elect A !rom online where #Nre7NbyM'O D t$tNre7Nby.(electedItem D#Ndate.(ubItems.Value M l$.%aption M OD+odi!yO cmdNdel.IsCull.%onnection (et lconn M 8pen%on.IsCull.IsCull.Value1 D OT O1 I! rs. +sgBo$ Err. OO.oad.%aption M OD%ancelO Dim l$ As .Description. rsP#NsupportNby1 t$tNdesc.abelEdit. rsP#Ndes1 cbNproNname.#e$t M II!.E82 8r rs.@1 t$tNre7Nby. rsP#Nre7Nthrough1 #$tNsupport.=1 (et rs M lconn.%ancel As Integer1 End (ub 0rivate (ub 2ormN. OO.#e$t M II!.(ubItems.E$ecute.B82 #hen Else t$tNre7Nthru.

IsCull. rsPDNtimeNto1 End I! End (ub 96 .rsPDNtimeN!rom1.#e$t M II!. OO.IsCull.IsCull.Value M II!.rsP#NverNby1. OO.#e$t M II!. rsPDNtimeN!rom1 D#0icNto.IsCull.IsCull. OO. OO.#e$t M II!. rsP#NverNby1 cbNrecNby.IsCull. rsP#NrecNby1 cbNstatus.#e$t M II!.rsP#NcustNname1.rsP#NrecNby1.rsP#Nstatus1.CRM (A Client Relationship Management System) cbNcustNname. OtimeO.rsPDNtimeNto1. rsP#Nstatus1 D#picN!rom. rsP#NcustNname1 cbNverNby. OtimeO.Value M II!.

#8/%*. Inte&ration *estin&: Integration #esting is per!ormed to detect design errors by !ocusing on testing the interconnection between modules. design and coding errors in the programs conse7uently: di!!erent levels o! testing are used.80+EC# 82 #*I( 038UE%# A.. #his implies that testing not only has to uncover errors introduced o! testing is to uncover re7uirement.. the output is a document that is usually te$tual and non"e$ecutable.#E(#ED ACD A2#E3 #*A# 8C. In this module is tested separately and is o!ten per!ormed by the coder himsel! simultaneously along with the coding o! the module. S.CRM (A Client Relationship Management System) ?. #*E 283+( ACD +8D/. Its basic !unction is to detect errors in the so!tware. During re7uirements analysis and design. 3nit *estin&: It is the starting point o! testing.ste" *estin&: (ystem is tested against the system. A!ter the coding phase.. #esting is the major control measures used during so!tware development. 96 . #he purpose is to e$ercise the di!!erent part module code to detect coding errors. the operation o! the system.#*EA3E 9IVEC #*E 2ICA. *estin& And De/u&&in& D/3IC9 #*E DEVE. on the real"li!e data o! the client. computer programs are available that can be e$ecuted !or testing purposes.E( 5E3E E #EC(IVE. Acce#tance testin&: Acceptance #esting is per!ormed to demonstrate to the client. re7uirements to see i! all th re7uirements are met and i! the system per!orms as speci!ied by the re7uirements.

di!!erent units to be tested.CRM (A Client Relationship Management System) #esting is an e$tremely critical and time"consuming activity.one !or each unit tested1. It re7uires proper planning o! the overall testing process. and the manner in which the modules will be integrated together. the speci!ied test cases are e$ecuted and the actual result compared and the error report or a set o! each report . Each test report contains the set o! test cases and the result o! e$ecuting the code with these test cases. a test case speci!ication document is produced. #he test plan speci!ies conditions that should be tested. which lists all the di!!erent test cases. during the testing o! the unit. and speci!ies guidelines !or testing. #ogether with the e$pected output. #he error report describes the errors encountered and the action ta&en to remove the errors. #hen !or di!!erent test units. 2re7uently the testing process starts with a test plan that indenti!ies all the testing"related activities that must be per!ormed and speci!ies the schedule allocates the resources. 96 .

are 1e:uire"ent • • • • • • PROCESSOR = GENUINE INTEL PENTIUM PROCESSOR RAM = 256 MB HARD DISK=4.CRM (A Client Relationship Management System) @.3 GB 15” SVGA COLOUR MONITOR KEY BOARD = 104 KEYS PRINTER = HP LASER ET 96 . )ard.

Soft.are 1e:uire"ent Operating System: Windows XP Environment: Visual Studio 6.0 Tools: Microsoft Office 96 .CRM (A Client Relationship Management System) 1A.

I%A#I8C B.I%A#I8C 96 . BA(I% V B00 0/B. BA(I% IC =@ DA-( V B00 0/B.A%F B88F V Dreamtech 0ress VI(/A.CRM (A Client Relationship Management System) BIBLIO41A')B +A(#E3IC9 IC VI(/A.

Sign up to vote on this title
UsefulNot useful