This action might not be possible to undo. Are you sure you want to continue?
1.1 OVERVIEW OF THE PROJECT In the modern era, computers have made every thing under one root and have knit the world together. Even the complicated and time consuming works are made nothing by the computers. Because of the technological IT revolution computer has been made as the core element in every place. Computerization has become an essential one, for the people who prefer speedy and ease of access. Human beings are liable to make mistakes and the output usually depends upon the efficiency of the persons involved. But computers could usually generate error output and highly efficient which varies depending on the person operating. Jewellary management system helps the retailer to maintain their records properly and accurately. This system provides a user friendly interface for controlling Purchase and sales management system.
The project entitled “Jewellary Management System” is developed with an aim of automating the work of Retailer. The project is developed using Microsoft Visual Basic 6.0-Front End Tool Ms-Access 2000-Back end tool The project is broadly divided into following modules Customer Details Supplier Details Item Details Order Details Sales Details Billing Details
All the above modules are designed to meet the requirements of a Retailer. The interface is developed with a feature rich interface and user-friendly Environment
1.2OBJECTIVES OF THE PROJECT
The main objective of this system is to simplify the complicated process of maintaining updated information about rd record. The important objectives are To simplify the work of retailer in account maintenance process. To calculate rate and tax details automatically To maintain records easily The project must be simple and user-friendly. The project must be efficient than present system. The program must provide proper securities to prevent unauthorized access. By this software manual effort can be reduced.
1.3.1 THE ORGANIZATIONAL PROFILE
Vigneshwara traders were established in the year 1991, with the objective of handling distributorship of quality products. It is a partnership organization. The organization emphasis fair trade practices and is very conscious of providing top of line service to the customers. The organization from the beginning had the opportunity of representing well-known companies like M/s. Larsen & Turbo Limited, Novar India Limited, Osram India Private Limited, etc. Novar India Limited is manufacturers of quality electrical products like switches, wiring accessories, cable management system, etc., and Vigneshwara Traders are their sole distributors in Coimbatore and Nilgiri Districts. Osram are one of the world’s largest manufacturers of “Light and Light Sources”, which has the widest range of lamps. Osram has now introduced special fittings to take the energy efficient fluorescent tube lights. Vigneshwara Traders are also distributors of Osram India Private Limited. Vigneshwara Traders has excellent infrastructure like office, godown, trained and experienced sales and service staff, delivery vehicle etc. The management is totally committed to quality products and customer services.
1.3.2 STUDY ON EXISTING SYSTEM
The existing system is handled manually. The system has a formatted accounting system for Purchase and Sales. The indent is prepared when items are to be purchased and bill is generated for sale of items. The system follows the predetermined purchase and sales procedures. Drawbacks of existing system Manual systems are more time consuming Large number of ledger books has to be maintained for each transaction Since the data are entered manually there are possibilities for errors. Data security is very minimal. There is a possibility for double entries. Since the transaction are mainly viz. paperwork updating of data is very hard. Generating the reports in the desired format is a tedious process. Reporting to the higher officials is not done through the proper channel. Data stored on papers is subject to loss due to physical damage.
.1 Defining a problem The study of the system gives an insight into the structure and functioning of the system study and it will also give an idea of the user’s requirements. Consistency in quality and delivery system Web based user friendly environments for personalized information Continuous up gradation and maintenance. Saves lot of time. Reports could be generated through printouts. SYSTEM ANALYSIS 2. where all the limitations of manual system are compensated.1. Error free and menu driven interface. Quick preparation of reports. Timeless information is equally important as that of correct information. 2.2. This can be easily achieved by this project. Proposed system is a computerized one. Once the manual operations carried in maintaining the customer details in a separate register are noted. The manually created details are roughly developed into the computerized form initially we have to find what are the drawbacks found in the existing system by means of the initial investigation stage. It automatically update monthly amount.1 STUDY OF PROPOSED SYSTEM The proposed system is developed after a detailed study about the requirements requested by the user. The proposed system shall have the following features.
Item details gives information about items and customer. The objectives of the proposed system are Build a user friendly system Make retrieval & editing easy Updating records easily The core elements of Jewellary Management are. View Section This module helps to view the following details and it generates reports: Customer details Supplier Details Item details . Item details and Order details. One is Customer and Supplier details.2 SOLUTION DEVELOPMENT STRATEGIES Purchase and Sales management system of Jewellary Management has simplified the working information and makes a user friendly environment. where the user is provided with much flexibility to manage effectively. we can update the new Customer’s details day by day.1. With the help of this module. through the login option we can control the unauthorized persons to access the system.2. It helps the retailer to generate desirable reports more quickly and also to produce better results. This module helps to the retailer to enter the Customer details. Control section View section Print Reports Control Section The control section involves three parts.
2 Software Specifications Operating System Language : : Windows XP/ Windows NT/ Windows 2000 Visual Basic .2 SYSTEM SPECIFICATION 2. Sales details Billing details Print Reports This module helps to print the following details: Customer details Supplier Details Order Details Item details THE ADVANTAGES OF THE PROPOSED SYSTEM: Less time consumption and manpower Fast and economical Accurate calculation More interactive screens Large database capacity No separate bill book is necessary Easy report generating 2.44 MB Two Buttons 18.104.22.168 Hardware Specifications Processor RAM Hard disk Monitor Key board Floppy Drive Mouse : : : : : : : Pentium III 800 MHz 128 MB 10 GB VGA 104 Keys or above 1.
Back end : MS-Access .
2. because Visual Basic sets up default associations when it is installed.0 in 1991. and Visual Basic is the pioneer among them. Much software likes to add a word “Visual” in front of their names. you can also run it by double-clicking on files that end with a vbp (Visual Basic Project) extension.2. Why do we say “visual” to describe Basic? Because Visual Basic provides programmers many visual tools to design windows.3 FEATURES OF SOFTWARE USED VISUAL BASIC 6. which will execute Visual Basic by double-clicking on it. Another option is to create a shortcut on your desktop. the pure writing output was replaced by graphically operational interface. the only 20-year-old Bill Gates and his good friend. Like many Windows applications. and probably the easiest way to access Visual Basic is through the Windows Start menu – the exact path required to access this shortcut is dependent upon your installation and may differ on individual machines.0 In 1975. Paul Allen develop Basic on the microprocessor. It provides everything you need to develop applications in an easy-to-use-and-learn Graphical User Interface (GUI – pronounced Gooey). These windows will be as same as the appearances when the programs are executing. The Integrated Development Environment The Visual Basic Integrated Development Environment (IDE) may be the single biggest reason for the vast popularity of Visual Basic. First. Along with the evolution of the computer technique. Lastly. And then Basic became popular to computer players. Visual Basic has several ways in which it can be opened. Its good news for the basic lovers and it also provided another choice to program language. . The Microsoft Company announced Visual Basic1. Basic has become the first program language for many people since the personal computers became more and more popular.
Text Box: You use Text Box Controls for user input. Scroll Bars: The HScrollBar and VScrollBar Controls let you create scroll bars but are used infrequently because many Controls provide the ability to display their own Scroll Bars. List Box: The List Box Control contains a list of items. Combo Box: Combo Box Controls are similar to List Box Controls. Frame: A Frame Control is typically used for containing other Controls and for dividing the GUI. You can use it to select Controls that have already been placed on a Form. It may be the most widely used Control. Label: The Label Control is used to display text information that does not have a need to be edited by an end user. GIF. the Check Box Control is the correct Control. However. the Controls are moved with it. Option Button: The Option Button Control is similar to the Check Box Control in that it offers the ability to select an option. and JPEG among others. Command Button Controls are used for input on almost every Form. in that it isn’t displayed at runtime. It’s used to provide timed functions for certain events. an Option Button Control is most often used when a group of options exists and only one item can be selected. but they only provide support for a single selection. Controls placed within a Frame cannot be displayed outside of it. All additional items are deselected when a choice is made. and if the Frame is moved on the Form. It’s often displayed next to additional Controls such as Text Boxes to label their use. Command Button: Much like the Text Box Control. Picture Box: You use the Picture Box Control to display images in several different graphics formats such as BMP. Check Box: If you need the ability to select True/False or Yes/No. allowing an end user to select one or more items. .Pointer: The pointer is the only item on the Toolbox that isn’t a Control. Timer: The Timer Control is an oddity when it is compared to other Controls. They are used as standard buttons for input like OK or Cancel.
it consumes fewer resources. and Files. Dir List Box. MS-ACCESS What is Access? Microsoft Access is a relational database management system (DBMS). and File List Box: These Controls can be used individually. Data: The Data Control is a component that allows you to connect one or more Controls on a Form to fields in a database. Shape. As a result. the Access package contains the following elements: Relational database system that supports two industry standard query languages: Structured Query Language (SQL) and Query By Example (QBE). and although it doesn’t provide all of the functionality that the Picture Box Control does. and ovals on Forms. For example. you should use the Image Control whenever possible. a DBMS is a program that facilitates the storage and retrieval of structured information on a computer’s hard drive. rectangles. but many times are used together to provide dialog boxes (also known as windows in this book) that display the contents of Drives. circles. Directories.Drive List Box. Examples of well-know industrialstrength relational DBMSs include. Image: You can think of the Image Control as a lighter version of the Picture Box Control. Line: The Shape and Line Controls are simply used to display lines. Oracle Microsoft SQL Server IBM DB2 Informix Well-know PC-based (“desktop”) relational DBMS include Microsoft Access Microsoft FoxPro Borland dBase The many faces of Access Microsoft generally likes to incorporate as many features as possible into its products. At the most basic level. .
1. Introduction to Microsoft Access • • • • • a full-featured procedural programming language. the procedural programming personality expects you to view your application as commands to be executed sequentially. a rapid application development environment complete with visual form and report development tools. and. • • • the relational database personality expects you to view your application as sets of data. The advantage of these multiple personalities is that it is possible to use Access to learn about an enormous range of information systems concepts without having to interact with a large number of “single-personality” tools. . Since there are often several vastly different ways to implement a particular feature in Access. Small Talk for object-oriented programming. it is up to you as a developer to pick and choose the best approach to implementing your application.essentially a subset of Visual Basic. it is unlikely that such integration is possible). a simplified procedural macro language unique to Access. for example: • • • Oracle for relational databases PowerBuilder for rapid applications development. For new users. these “multiple personalities” can be a source of enormous frustration. The object-oriented personality expects you to view your application as objects which encapsulate state and behavior information. a sprinkling of objected-oriented extensions. Microsoft makes no effort to provide an overall logical integration of these personalities (indeed. For instance. recognizing the different personalities and exploiting the best features (and avoiding the pitfalls) of each are important skills for Access developers. Instead. The problem is that each personality is based on a different set of assumptions and a different view of computing. Various wizards and builders to make development easier.
an Access database file contains several different types of database objects: • • • • saved queries for organizing data.mdb.mdb file. forms for interacting with the data on screen. In addition to tables. macros and Visual Basic programs for extending the functionality of database applications. You can safely ignore the *. a temporary “locking” file named <filename>. . Access database file Although the term “database” typically refers to a collection of related data tables. ldb is also created.Keep this advantage in mind as we switch back and forth between personalities and different computing paradigms. All these database objects are stored in a single file named <filename>. everything of value is in the *.ldb file. an Access database includes more than just data. When you are running Access. reports for printing results.
1 DESIGN NOTATION 3.3. DESIGN AND DEVELOPMENT PROCESS 3.1.1 Data Flow Diagram PURCHASE MODULE Supplier 1 Validate Supplier Details Validated Supplier Details SUPPLIER SUPPLIER DETAI Details LS Item Details 2 Validate Item Details Validated Item Details ITEM * SUPPLIER Supplier Details Indent Details 3 Indent Generatio n Indent INDENT SUPPLI ER * ITEM Item Details .
* INDENT DENT INDENT SUPP LIER Indent Details Bill Details 4 Generation of Verification Report Verified Item Details * BILL Verified * BILL Item Details 5 Stock Updation Updated Item * Details ITEM * ITEM Item Details .
SALES MODULE Customer CUSTOMER Details 6 Validate Customer Details Validated Customer Details CUSTOMER Item Details 7 Validate Order Details Validated Order Details ORDER * CUSTOMER Customer Details * ORDER Order Details 8 Delivery Bill Generatio n Delivery Billing Details DCHALLAN CUSTOMER Delivery Challan * CUSTOMER Customer Details Order Details Item Details Delivery Item Details Challan Details 10 Stock Updatio n Supplier Item Details Details Quotation Details Report Generation Reports MANAGEMENT Updated Item Details 9 Sales Bill Generatio n Bill Bill Details CUSTOMER SBILL * oRDER * * ITEM DCHALLAN * DCHALLAN * ITEM * SBILL .
Supplier details FIELD NAME SUPPLIER_ID DATA TYPE TEXT DESCRIPTION SUPPLIER CODE .2 DESIGN PROCESS 3.1 Data Base Design Table details: 1.2.* * ITEM SUPPLIER Item Details * QUOTATION Customer * CUSTOMER Details * * ORDER BILL Sales Order Details Customized Bill Details Sales Bill Details * SBILL 3.
Customer details FIELD NAME CUSTOMER_ID CUSTOMER_NAME ADDRESS1 ADDRESS2 PHONE_NO CITY EMAIL_ID VISIT_DATE DATA TYPE TEXT TEXT TEXT TEXT NUMBER NUMBER TEXT DATE DESCRIPTION CUSTOMER NUMBER CUSTOMER’S NAME STREET NAME 1 STREET NAME 2 PHONE NUMBER CITY EMAIL ID CUSTOMER VISITING DATE 3. Item details FIELD NAME SUPPLIER_ID ITEM_ID ITEM_DESCRIPTION QUANTITY WEIGHT REORDER_LEVEL DATA TYPE TEXT TEXT CURRENCY NUMBER NUMBER NUMBER DESCRIPTION SUPPLIER NAME ITEM CODE DESCRIPTION OF THE ITEM TOTAL NUMBER OF ITEMS CURRENTLY AVAILABLE IN THE STORES WEIGHT PER UNIT REORDER LEVEL OF JEWEL .SUPPLIER_NAME ADDRESS1 ADDRESS2 PHONE_NO CITY TEXT TEXT TEXT TEXT TEXT COMPANY NAME STREET NAME1 STREET NAME2 PHONE NO CITY NAME 2.
Rate details FIELD NAME TODAY DATE GOLD RATE DATA TYPE DATE NUMBER DESCRIPTION CURRENT DATE GOLD RATE 6. Billing Details FIELD NAME BILL_NO BILL_DATE CUSTOMER_ID GOLD_RATE TOTAL_AMOUNT PAID CUSTOMIZED /READY MADE DATA TYPE TEXT DATE TEXT TEXT NUMBER NUMBER TEXT BILL DATE CUSTOMER CODE GOLD RATE TOTAL AMOUNT PAID AMOUNT CUSTOMIZED BILL OR NEW BILL DESCRIPTION PURCHASE BILL NUMBER . Order details FIELD NAME CUSTOMER_ID ITEM_ID WEIGHT QUANTITY ITEMDESCRIPTION ADVANCE ORDER DATE ORDER ACKNOW DATA TYPE TEXT TEXT DATE DATE TEXT NUMBER DATE TEXT ITEM ID WEIGHT OF THE ITEM QUANTITY OF ITEM ITEM DESCRIPTION ADVANCE AMOUNT PAID ORDERING DATE ORDER DELIVERED OR NOT DESCRIPTION CUSTOMER ID 5.MAKING_CHARGE ITEM_TYPE NUMBER TEXT MAKING CHARGE OF JEWEL GOLD OR SILVER 4.
Input design is the process of converting user originated inputs to computer based format. Bill item Details FIELD NAME BILL_NO ITEM_ID QUANTITY AMOUNT WEIGHT WASTAGE MAKING_CHARGE DATA TYPE TEXT DATE TEXT NUMBER NUMBER NUMBER NUMBER ITEM ID QUANTITY OF ITEM AMOUNT OF ITEM WEIGHT OF THE ITEM WASTAGE OF ITEM MAKING CHARGE OF ITEM DESCRIPTION SALES BILL NUMBER 8. Errors entered by data entry operators can be controlled by input design.TOTAL ADVANCE PAID BALANCE ADVANCE PAID NET AMOUNT 7. Each area should be clearly identified and should specify as what the user should enter. sources and destinations. Input devices used in this .2 Input Design Inaccurate input data are the most common cause of errors in data processing. data stores. A source document should be logical and easy to understand. In the DFD phase. It also specifies the master files and transaction files. the expanded data flow diagram identifies logical data flows. The analyst must decide the methods of inputting the data into the system. Login Details FIELD NAME USE_NAME PASSWORD DATA TYPE TEXT TEXT PASSWORD DESCRIPTION USER NAME 3.2.
Customer details 3. Supplier details 2.system are keyboard and mouse. Input design Jewellary management software includes forms to: 1. Order Details . The input design consists of specifications and procedures for data preparation and entry. Item details 4.
2. Output design for Purchase and sales management Software includes: 1. response time requirements. reorder level and repayment details. which displays the supplier and customer detail. Reports. expected print quality and number of copies needed. A major form of output factors such as compatibility of the device with the system. Help menu gives the help contact for the end users. .2. 3.3 Output Design Computer output is the most important and direct source of information to the user. User can identify the payment details. Efficient and intelligible output design should improve the system’s relationships with the user and help in decision making.3.
1 SYSTEM TESTING After each program passes its own test.1 UNIT TESTING Unit testing focuses the verification effort on the smallest unit of S/W design i. reviewed and verified for correct syntax. or separate projects have been created for functional units.. After the source level code has been developed. The project or projects can also be exported. Unit Test Considerations The tests that occur as part of unit testing.e. Before the implementation phase. the module. so unit test can take place in a variety of environments and on a variety of platforms. all ‘error-handling paths’ are tested. unit test case design . Unit Test Procedures Unit testing is considered an equivalent to the coding step. The ‘local data structures’ are examined to ensure that data stored temporarily maintains its integrity during all steps in an algorithms execution. it can be removed.1. This ensures that the entire system works together as intended. 4. If some bug is found. The module ‘interface’ is tested to ensure that information properly flows into and out of the program unit under test. During unit test. All ‘independent paths’ through the control structures are exercised to ensure that all statements in a module have been executed at least once. the designed system should be tested with raw data to ensure that all modules of the system work correctly and satisfactorily. Finally. testers can use the same project or projects as the developers. TESTING AND IMPLEMENTATION 4. if functional units organize the project. its linkage to other programs is scrutinized with a program integration test.4. There are four kinds of testing. ‘Boundary Conditions’ are tested to ensure that the module operates properly at boundaries established to limit or restrict processing. The unit testing is always white-box oriented and the step can be conducted in parallel for modules.
prints verification of entry. The data is flowing correctly to all part of the project. ‘driver’ and/or ‘stub’ S/W must be developed for each unit test. The stubs serve to replace modules that are subordinates called by the modules to be tested. The drivers and scrubs represent overhead i. Two major tests of preparation for implementation arre educating and training of users and testing the system. passes such data to the module to be tested. then the overhead is low. and returns. a driver is nothing more than a main program that accepts test case data.. Implementation includes all those activities that take place to convert from the old system to the new system. The most crucial stage is achieving a new successful system and in confidence that the new system will work efficiently and effectively for the user The system can be implemented only after through testing is done and if it is found to work to the specifications. and prints the relevant results. 4. In most applications.e. The Unit Test is carried out in this project. There are three aspects of implementation. .begins since a module is not a stand alone program. and is found successful. may do minimal data manipulation. It involves careful planning and investigation of the current system and its constraints on implementation. A stub or a dummy stub or a dummy subprogram uses the subordinate modules interface. The new system may be that a major implementation becomes necessary so that a reliable system based on the requirements of the organization can be provided. If the drivers and the stub are kept simple. The most difficult task in the system life cycle is the successful implementation of the new system design.2 SYSTEM IMPLEMENTATION Implementation is the state in the project where the theoretical design is turned into a working system. both are S/W that must be written but that is not delivered with the final S/W product.
Implementation is the stage of the project when the theoretical design is turned into a working system.1. This phase involves programming. A post implementation review measures the system’s performance against predefined requirements. programmed and executed. Once a request is filed.3 IMPLEMENTATION PROCEDURE The Implementation phase can be described as the phase in which the game is truly constructed. Thus it can be considered to be the most crucial stage in a successful new system and in giving the new system will work and be effective. the user is asked how well the system is functioning to specifications or how well the measured benefits have been realized. debugging. It determines how well the system continues to meet performance specifications. Post implementation review After the system is implemented and conversion is complete a review should be conducted to determine whether the system is meeting expectations and where improvements are needed. it can cause chaos. I t also provides information to determine whether a major re design or small modification is required. Conversion procedure 3. The post implementation review is an evolution of a system in terms of the extent to which the system accomplishes stated objectives and if the actual project costs exceeds initial estimates. If the implementation stage is not properly planned and controlled. compiling and executing. Suggestions regarding changes and improvements are also asked for. The post implementation study begins unexpected changes in the system that affects the user or system performance is a primary factor that prompts system review. . 4. Training personal 2.
The system reduces the possibility of errors to a great extent and maintains the data in an efficient manner. User friendliness is the unique feature of this system. . This system has been developed to satisfy all the proposed requirements. Billing and customers is more simple and easy.5. The documentation will also assist in the process as it has also been carried out in a simplified and concise way. The system is highly interactive and flexible for further enhancement. CONCLUSION The system “Jewellary Management system” deals with purchase and sales processing of a Jewellary shop. The coding is done in a simplified and easy to understandable manner so that other team trying to enhance the project can do so without facing much difficulty. The system generates the reports as and when required. The process of recording details about supplier. item.
The renovation of the project would increase the flexibility of the system. The processing time in this system is very lesser compared to existing system. This system has good flexibility of accommodating any more changes that might arise in the future also. The database is designed in such a way that it will be also helpful for enhancement of the system. . In this system.6. data integrity is maintained and data redundancy is avoided and it increase system efficiency. SCOPE FOR FUTURE ENHANCEMENTS This system is developed such a way that additional enhancement can be done without much difficulty. Also the features are provided in such a way that the system can also be made better and efficient functionality The programs were coded in an easier and more structured manner so that may further modifications may be incorporated easily.
MS-Office 2000. BPB Publication. Micro soft Office Access Bible by Groh 6. New Delhi. The Complete Reference Visual Basic 6. Visual Basic 6. New Delhi-2004 4. Gary Cornell. 5. Noel Jerke. Sten Holzner. Tata McGraw Hill Publication. Working with Access by RON Mansfield. Tata McGraw Hill Edition 7.Roger S. Michael Busy and Rossell a Stultz. Tata McGraw Hill Edition 2. Software Engineering a practioner’s approach. Dreamtech Press. Tata Mcgraw Hill Edition 3.0 Programming Black Book. .7. Pressman.0 . BIBLIOGRAPHY 1. Visual Basic 6. Dream tech Press.0 from the Ground up.
adLockReadOnly.Show End Sub Private Sub cmdDeleteCustomer_Click() On Error GoTo errdel If cmdEditCustomer.Clear Dim sngCustNameWidth As Single Dim intspc As Integer Do While rsDel.SAMPLE CODING Private f_rsCustomer As New ADOR.Enabled = False Then cmdEditCustomer. adCmdText If rsDel.Enabled = False Then cmdNewCustomer.Enabled = True Then cmdSave.Visible = False Dim SQlStr As String Dim rsDel As New ADOR.Visible = True SQlStr = "Select CustomerId.Caption = "You can delete any Customer by double clicking the Customer Id or by pressing F4 Key" imgDisplay.Recordset fraEdit.Enabled = False cmdDeleteCustomer.EOF = False sngCustNameWidth = TextWidth(Space(58)) TextWidth(rsDel("CustomerName")) If sngCustNameWidth < 0 Then lstEdit.Enabled = False lblDisplay.EOF = False Then lstEdit.Open SQlStr.Recordset Private f_rsOpened As Boolean Private f_Custid As Integer Private f_Custname As String Private f_EditThis As Boolean Private Sub cmdClose_Click() If g_blnbillform Then Unload Me frmBill. adOpenForwardOnly.Show g_blnbillform = False Exit Sub End If Unload Me frmMenuList.Enabled = True If cmdNewCustomer. g_conn. CustomerName. VisitDate from Customerdetails" rsDel.AddItem rsDel("CustomerId") & Space(18) & rsDel("CustomerName") & Space(3) & rsDel("VisitDate") Else .Enabled = True If cmdSave.
Number & Err. adOpenForwardOnly. VisitDate from Customerdetails" rsEdit.Visible = True SQlStr = "Select CustomerId.Open SQlStr. adLockReadOnly.Visible = False Then picCustomer.Description End Sub Private Sub cmdEditCustomer_Click() On Error GoTo errEdit Dim SQlStr As String Dim rsEdit As New ADOR.EOF = False sngCustNameWidth = TextWidth(Space(58)) TextWidth(rsEdit("CustomerName")) If sngCustNameWidth < 0 Then lstEdit.MoveNext Loop lstEdit.ListIndex = 0 lstEdit.MoveNext Loop lstEdit.AddItem rsEdit("CustomerId") & Space(18) & rsEdit("CustomerName") & Space(3) & rsEdit("VisitDate") Else intspc = CInt(sngCustNameWidth / 45) lstEdit.EOF = False Then lstEdit.AddItem rsEdit("CustomerId") & Space(18) & rsEdit("CustomerName") & Space(intspc) & rsEdit("VisitDate") End If rsEdit.Recordset f_EditThis = False lblDisplay.AddItem rsDel("CustomerId") & Space(18) & rsDel("CustomerName") & Space(intspc) & rsDel("VisitDate") End If rsDel.intspc = CInt(sngCustNameWidth / 45) lstEdit.SetFocus End If If Not picCustomer. g_conn.Caption = "You can Edit/Change any Customer Details by double clicking the Customer Id or by pressing F3 Key" imgDisplay. adCmdText If rsEdit.ListIndex = 0 .Visible = False fraEdit.Clear Dim sngCustNameWidth As Single Dim intspc As Integer Do While rsEdit. CustomerName.Visible = False g_status = "Delete" Exit Sub errdel: MsgBox Err.
Enabled = False Then cmdEditCustomer.Enabled = True Then cmdSave.Enabled = False Then cmdNewCustomer.Enabled = True .Visible = False End Sub Private Sub cmdFirst_Click() If f_EditThis Then Call DisableAll If cmdSave. "frmCustomer".Description End Sub Private Sub cmdEditThis_Click() Call EnableTextBox(frmCustomer) lblDisplay.Visible = False Then picCustomer. frmCustomer) End Sub Private Sub cmdMovements_Click() On Error GoTo errMove picCustomer.Enabled = False Then cmdDeleteCustomer.Visible = False f_Custid = Val(txtCustomerId. frmCustomer) End Sub Private Sub cmdLast_Click() If f_EditThis Then Call DisableAll Call MoveLast(f_rsCustomer.Enabled = True If cmdNewCustomer.Enabled = False Call DisableTextBox(frmCustomer) imgDisplay.Enabled = False Call MoveFirst(f_rsCustomer.lstEdit.Enabled = True If cmdNewCustomer.Enabled = False Then cmdNewCustomer.SetFocus End If If cmdDeleteCustomer.Visible = True If Not fraEdit.Enabled = False If Not picCustomer.Visible = False Then fraEdit.Visible = False If cmdEditCustomer. "frmCustomer".Visible = False g_status = "Edit" Exit Sub errEdit: MsgBox Err.Text) g_status = "Edit" cmdSave.Enabled = True Then cmdSave.Caption = "You can Edit/Change this Customer Details only" imgDisplay.Enabled = True cmdEditCustomer.SetFocus f_EditThis = True End Sub Private Sub DisableAll() f_EditThis = False If cmdSave.Enabled = True txtCustomerId.Number & Err.
Locked = True txtCustomerId.Enabled = True Call EnableTextBox(frmCustomer) cmdSave.Enabled = True cmdNewCustomer.CursorLocation = adUseServer f_rsCustomer.Caption = "Adding Customer Details.Text = GenerateId(f_rsCustomer. "Customer") txtVisitDate.Enabled = False Then cmdEditCustomer.Enabled = True Then cmdSave.If cmdDeleteCustomer.Enabled = False lblDisplay." imgDisplay.Visible = False lblDisplay.Description End Sub Private Sub cmdNewCustomer_Click() On Error GoTo errNew Call ClearTextBox(frmCustomer) g_status = "Add" If cmdEditCustomer.Enabled = False If Not fraEdit..Visible = False Then picCustomer.Visible = False f_EditThis = False Call DisableTextBox(frmCustomer) If Not f_rsOpened Then Call MakeConnection Else f_rsCustomer.SetFocus f_EditThis = False Exit Sub errNew: MsgBox Err.Requery End If Call cmdFirst_Click Exit Sub errMove: MsgBox Err.CursorType = adOpenKeyset .Enabled = True If cmdDeleteCustomer.Visible = False If Not picCustomer.Visible = False Then fraEdit.Enabled = True If cmdSave.Description End Sub Private Sub MakeConnection() On Error GoTo errMake f_rsCustomer.Enabled = False Then cmdDeleteCustomer.Number & Err.Number & Err.Visible = False If Not f_rsOpened Then Call MakeConnection End If txtCustomerId.Caption = "Customer Details can be Viewed Only" imgDisplay.Enabled = False Then cmdDeleteCustomer..
frmCustomer) . .Number & Err. "dd-mm-yyyy") End If rsCustData.Text) <> "" Then rsCustData("VisitDate") = CVDate(txtVisitDate.Description End Sub Private Sub cmdNext_Click() If f_EditThis Then Call DisableAll Call MoveNext(f_rsCustomer.Text rsCustData("Address1") = txtAddress1.Number & Err.Visible = True cmdSave.Text rsCustData("Phone") = txtPhoneNo.Open "CustomerDetails".Text) Else rsCustData("VisitDate") = Format(Now.Picture = LoadPicture(App.Recordset) On Error GoTo errSave rsCustData("CustomerId") = Val(txtCustomerId.bmp") imgDisplay. "frmCustomer".LockType = adLockOptimistic f_rsCustomer.Description End Sub Private Sub SaveData(ByVal rsCustData As ADOR.f_rsCustomer.Text) rsCustData("CustomerName") = txtCustomerName.Text If Trim(txtVisitDate.Path & "\save.Enabled = False g_status = "" Exit Sub errSave: MsgBox Err. g_conn.Text rsCustData("Address2") = txtAddress2. adCmdTable f_rsOpened = True Exit Sub errMake: MsgBox Err.Text rsCustData("EmailId") = txtEmailId. .Text rsCustData("City") = txtCity.Update If Not f_EditThis Then Call ClearTextBox(frmCustomer) Else f_EditThis = False End If Call DisableTextBox(frmCustomer) imgDisplay. "frmCustomer". frmCustomer) End Sub Private Sub cmdPrevious_Click() If f_EditThis Then Call DisableAll Call MovePrev(f_rsCustomer.
Enabled = True End If Exit Sub errCustDataSave: MsgBox Err.Description End Sub Private Sub Form_Load() On Error GoTo errLoad . adLockOptimistic.SetFocus Exit Sub End If If Not f_rsOpened Then Call MakeConnection End If f_rsCustomer.Text) = "" Then MsgBox "Please enter Customer Address" txtAddress1.Text) = "" Then MsgBox "Please enter Customer Name" txtCustomerName. adCmdText Call SaveData(rsCust) lblDisplay.Enabled = True ElseIf g_status = "Edit" Then If f_EditThis Then Call SaveData(f_rsCustomer) lblDisplay. g_conn.Caption = "The Existing Customer Details Saved" Exit Sub End If Dim rsCust As New ADOR.Recordset Dim SQlStr As String SQlStr = "Select * from CustomerDetails where CustomerId = " & f_Custid rsCust.Caption = "The Existing Customer Details Saved" cmdEditCustomer.End Sub Private Sub cmdSave_Click() On Error GoTo errCustDataSave If g_status = "Add" Then If Trim(txtCustomerName.SetFocus Exit Sub End If If Trim(txtAddress1.AddNew Call SaveData(f_rsCustomer) lblDisplay.Number & Err. adOpenKeyset.Caption = "New Customer Details Saved" cmdNewCustomer.Open SQlStr.
adLockReadOnly.Enabled = False fraEdit. vbYesNo.Number & Err.EOF = False Then txtCustomerId.Recordset Dim SQlStr As String SQlStr = "Select * from CustomerDetails where CustomerId = " & f_Custid rsCust.Visible = False imgDisplay.Text <> "" Then Custdata = lstEdit. " ") f_Custid = Val(Left(Custdata.Visible = False f_rsOpened = False f_EditThis = False Exit Sub errLoad: MsgBox Err.ListIndex) pos = InStr(Custdata.Visible = False picCustomer.Caption = "Customer Detail with Customer Id " & f_Custid & " Deleted" Exit Sub End If ElseIf g_status = "Edit" Then Dim rsCust As New ADOR.Text = rsCust("CustomerId") .1)) If g_status = "Delete" Then Dim DeleteResponse As Integer DeleteResponse = MsgBox("Are you sure you want to delete Customer Id " & f_Custid.List(lstEdit. pos .Open SQlStr.Execute "Delete from CustomerDetails where CustomerId =" & f_Custid lstEdit.RemoveItem lstEdit. "DeleteCustomer") If DeleteResponse = vbNo Then Exit Sub Else g_conn. adOpenForwardOnly.Description End Sub Private Sub Form_Unload(Cancel As Integer) Set f_rsCustomer = Nothing End Sub Private Sub lstEdit_DblClick() On Error GoTo errLstDblClick Dim Custdata As String If lstEdit.Call DisableTextBox(frmCustomer) cmdSave. g_conn.ListIndex lblDisplay. adCmdText If rsCust.
Text = rsCust("Address1") txtAddress2.Number & Err.Text = rsCust("City") txtPhoneNo. "dd/mm/yyyy") End Sub ./?()+_-&^%$#@!`~".Text = rsCust("CustomerName") txtAddress1.Enabled = True txtVisitDate. Shift As Integer) If g_status = "Edit" Then If KeyCode = vbKeyF3 Then Call lstEdit_DblClick End If ElseIf g_status = "Delete" Then If KeyCode = vbKeyF4 Then Call lstEdit_DblClick End If End If End Sub Private Sub txtCustomerName_KeyPress(KeyAscii As Integer) If InStr(1.Text = rsCust("VisitDate") Call EnableTextBox(frmCustomer) fraEdit. Chr(KeyAscii)) >= 1 Then KeyAscii = 0 End If End Sub Private Sub txtVisitDate_GotFocus() If Trim(txtVisitDate.SetFocus cmdSave.Locked = False End If End If End If Exit Sub errLstDblClick: MsgBox Err.Text = Format(Now.Text) = "" Then txtVisitDate.Text = rsCust("EmailId") txtVisitDate.Description End Sub Private Sub lstEdit_KeyDown(KeyCode As Integer.Text = rsCust("Phone") txtEmailId. "1234567890.Visible = False txtCustomerId.txtCustomerName.Text = rsCust("Address2") txtCity.
Login Form .
Menu List Form .
Main Form .
Display Items Form .
Billing Form .
Bill Summary .
Billing Report .