In a normal application, recording searching is an obvious feature. It allows user to simplify process by enabling program to filter results from hundreds or thousands of tracks in database inside short quick time. The tips, named source codes, are written through programming language and performed by PC. One of these programming languages is Visual Basic 6. To find tracks, VB application must be attached to database having tracks, and then program instructions are coded.
· Start VB application from PC.
· Start "New Project" and load "Form."
· Design "Search Form." This window will serve as interface between user and application. Add controls in form like text boxes, labels, grids or command tabs. Put text box for typing search criteria, and command tab to start search. Set individual properties for controls to complete design.
· Add "ADO Data Control" in form. This control will connect application and database to make search operation possible.
· Select "Code" of Form to star writing source codes. In "Declarations", use variables throughout form.
· Make connection with database from runtime properties of "ADO Data Control" either from "Form_Load" event or from particular user defined function or process.
· Add codes in "Search". On clicking, application must perform instructions to search database for particular tracks similar to criteria given in text box. Write source code in a series of lines inside "Click Event" or can divide in functions and processed, and call their chosen names in particular sections of code.
· Write code to display in form any tracks found. Based on the design, data will be displayed in text boxes, labels or in grid format. If no tracks are found, write confirmation message to provide feedback to user that application did not locate particular record being found. This gives user opportunity to change search criteria and repeat procedure.
· Start application. Fix syntax and logical mistakes, if any.
· Assemble application and make an executable file to install and use.



Reply With Quote
Copyright Techfuels
Bookmarks