Results 1 to 2 of 2

Thread: OleDbDataAdapter

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2002
    Location
    Pilipinas
    Posts
    441

    OleDbDataAdapter

    I use the below but I encouter this error message:

    Type 'OleDbDataAdapter1' is not defined'

    Dim drsql As New OleDbDataAdapter1("SELECT * FROM employee WHERE empno like '" & TextBox1.Text & "%'"
    , OleDbConnection1)
    'Dim DataSet11 As New DataSet()
    DataSet11.Clear()
    drsql.Fill(DataSet11, "Employee")
    DataGrid1.DataSource = DataSet11

    What code should I write?

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    VB Code:
    1. 'I think this is what you need . Put this line at the very top of your form .
    2. Imports System.Data.OleDb
    3.  
    4. 'or
    5.  
    6. 'Use this if you didn't use import directive
    7. Dim drsql As New Data.OleDb.OleDbDataAdapter

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