1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Type 'OleDbConnection' is not defined

Discussion in 'C#' started by bud.colin, Aug 31, 2010.

  1. #1
    i got this error Type 'OleDbConnection' is not defined

    my code is:-
    Imports System.Data.OleDb
    Public Class View2
    Dim mycn As OleDbConnection = New OleDbConnection(cs)
    Dim Command As OleDbCommand
    Dim i As Integer
    Dim SQLstr As String
    Dim dr As OleDbDataReader
    Dim ver As Integer


    for cs means:-
    Module connection_Strings
    Public cs As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\usofverification.mdb"
    End Module
     
    bud.colin, Aug 31, 2010 IP
  2. prptl709

    prptl709 Guest

    Messages:
    83
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I am not using oledb connection.
     
    prptl709, Mar 1, 2011 IP