data manipulation

Posted on 2004-11-30
Last Modified: 2010-04-17
I am working in visual basic 6 & Informix 7.2. I want to create a toolbar with add,delete,update,edit buttons.This toolbar is attached to different forms. I want to do above data manipulation through above buttons in these forms i.e on clicking add button I should be able to add record in current form and so on.
I am not getting how to write generalised code to do above task.I am using treeview to open form.
I have to use bound or unbound form?
explain me how with example.


Question by:sanyogita
    LVL 19

    Accepted Solution

    I reckon its gonna be tough only with VB code. If you want to use API, it can be done. But using API isn't all that easy either. Sorry about the disappointing response, but it will not be trivial for you to code a common toolbar for many forms.

    Difficult part would be to build a common toolbar. Once you have the toolbar on the form, it would be very easy. You can simply use the ActiveForm and ActiveControl propeties. A typical code handler may look like:

    Sub Command1_Click()
           If TypeOf ActiveForm.ActiveControl = YourControlType Then
                  ' Execute your actual code here
                  ActiveForm.ActiveControl.Property = Value
           End If
    End Sub

    Author Comment

    Pl.close this question


    Author Comment

    Why 250 + 50 points are not added to my current points as I have closed two question worth 250 and 50 points respectively. Also
    I am not getting any answer to my current question regarding class (100 points). Could you tell me reason?
    Pl. give me some reply.



    Author Comment

    Pl. give me refund of this question as I did not get answer i.e. 250 points.


    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Suggested Solutions

    RIA (Rich Internet Application) tools are interactive internet applications which have many of the characteristics of desktop applications. The RIA tools typically deliver output either by the way of a site-specific browser or via browser plug-in. T…
    Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now