oText.DataSource = adoPrimaryRS Not working in VB2008

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • patricia3d
    New Member
    • Apr 2010
    • 2

    oText.DataSource = adoPrimaryRS Not working in VB2008

    I was trying to upgrade my project from VB6 to VB2008

    Upgrade Error Line

    For Each oText In Me.txtFields
    oText.DataSourc e = adoPrimaryRS
    Next oText




    Its VB Data Entry Form and created by VB6 itself. Vb2008 should at least convert its own vb6's created Data Entry Form.
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Apparently it doesn't.
    What Type is "Me.txtFiel ds"?
    TextBoxes?

    Comment

    • semomaniz
      Recognized Expert New Member
      • Oct 2007
      • 210

      #3
      I am guessing adoPrimaryRS is some form of dataset or datatable and you are trying to bind the entire data to one textbox. Show us your entire code and declarations.

      Comment

      • patricia3d
        New Member
        • Apr 2010
        • 2

        #4
        I have created one small project for my friend NJ Air Ticket. I have attached complete project in zip format including MDB file.
        This is running nicely in VB6.
        Please unzip and almost all the data entry forms having the these words

        oText.Datasourc e = adoPrimaryRS

        I hope this will help to understand the problem.
        Attached Files

        Comment

        Working...