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