Results 1 to 5 of 5

Thread: cannot use OleDbConnection

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2002
    Posts
    2

    cannot use OleDbConnection

    Why can't i use

    Dim cnn as new OleDbConnection ()

    It is not recognized

    Am I missing a reference to a library ?


  2. #2
    Member HumanCompiler's Avatar
    Join Date
    Dec 2002
    Location
    Decatur, IN USA
    Posts
    52
    VB Code:
    1. Imports System.Data.OleDb
    -Erik Porter
    .NET MVP

  3. #3

    Thread Starter
    New Member
    Join Date
    Dec 2002
    Posts
    2
    Thank You!

  4. #4
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    Toronto, Ontario, Canada
    Posts
    275
    There is but a faster way

    Dim cnn as new OleDb.OleDbConnection ()

  5. #5
    Member HumanCompiler's Avatar
    Join Date
    Dec 2002
    Location
    Decatur, IN USA
    Posts
    52
    true, but if you're going to use any OleDb stuff, it's best to import it, that way you don't have to type that out every time It also tells .NET to load the assembly that it needs ahead of time instead of the first time it needs it
    -Erik Porter
    .NET MVP

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width