use System use System.Data use System.Data.OleDb class Program def main is shared conStr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=hello.mdb;" sqlStr = "SELECT 'Hello, ADO.NET World!' AS Message" con = OleDbConnection(conStr) cmd = OleDbCommand(sqlStr, con) con.open() reader = cmd.executeReader() while reader.read() Console.writeLine( reader.getName(0) ) Console.writeLine( "---------------------" ) Console.writeLine( reader.getValue(0) ) reader.close() con.close()