locked
Problem with a bindingsource RRS feed

  • Question

  • I'm a VB6 user and now I trying something in vb 2008
    I have a bindingsource that has been filled with data from a Access database, but now I want to use that information for some operations, so, in VB6 I do it like this little example:

    with Recordset
            if .recordcount >0 then
                    .movefirst
                    do while not .eof
                            .edit
                            ![Ave]=(![Number1]+![Number2)/2    
                            .update
                            .movefirst
                    loop
            end if
    end with

    I know that I can use a query and get the same result that with the code

    My problem is that I don't know how to take the information conteined in the table like the value of column Number1, Number2 while the position of the cursor is changing . Can somebody tell how to do the same code above but with the bindingsource (bindingsource alredy has the data)

    I 'll appreciate your help
    Sunday, February 22, 2009 6:46 PM

Answers

  • Hi cydopo73,

    VB IDE has one tool Upgrade VB6 code.
    In code window: Tools->Upgrade VB6 code.   

    Does this works for you? If you have any questions or concerns, please update the thread and we will have a further discussion.

     

     

    Best Regards

    Yichun Feng


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    • Marked as answer by Yichun Feng Friday, February 27, 2009 2:08 AM
    Wednesday, February 25, 2009 3:28 AM