The code is now:

Dim connection As New OleDbConnection

("Provider=Microsoft.Jet.OLEDB.4.0;Source=C:\MSDS\MSDS DATABASE DATA\MSDS.mdb;")

Dim [command] As New OleDbCommand("SELECT * FROM Students WHERE FirstName LIKE ?", connection)

[command].Parameters.AddWithValue("@FirstName", Me.TextBox1.Text & "%")


        Dim rdr As OleDbDataReader = command.ExecuteReader()

        Dim tbl As New DataTable()
        Me.StudentsDataGridView.DataSource = tbl

And there is a crash due to connection.Open() stating: Could not find installable ISAM.

I tried to fix the problem through this:

But all registry references were correct and files were found.

EDIT: Probably has something to do with the fact that I don't have Microsoft Access installed. Tho that hasn't stopped me up to this point.

Last edited by shabbir; 31Jul2007 at 08:56.. Reason: Code block -