Error message "Type SqlAddapter is not defined"

When I define "LPMda as SqlAddapter = New SqlAddapter" the error message 'Type SqlAddapter is not defined" is displayed. This may be tied to a problem with the Windows Designer not creating the 'Windows Form Designer Generated Code' and the fact that the Windows Designer does not include the 'Inherits System.Windows.Forms.Form' statement. Please let me know how to get around this.

LitePipe




Answer this question

Error message "Type SqlAddapter is not defined"

  • raviganesh91221

    imports System.Data

    should have worked as wel

    Remco


  • amitbadgi

    (Friend WithEvents / dim ) LPMda As new System.Data.SqlClient.SqlDataAdapter

    or

    (Friend WithEvents / dim ) LPMda As System.Data.SqlClient.SqlDataAdapter

    LPMda = new System.Data.SqlClient.SqlDataAdapter

    Remco


  • staelenss

    What I found confusing was that only the two new forms added after I converted from Visual Studio 2003 had this error. MSDN support suggested that I add 'System.Data.SqlClient' to the project references. This caused a lot of errors. The answer given here worked but I had to qualify an number of additional commands. Thanks for the help...

  • Error message "Type SqlAddapter is not defined"