Something seems wrong with the c# database for Accounts:
Right at the database I get the error message of:
Error 1 The type or namespace name 'Connection' could not be found (are you missing a using directive or an assembly reference?)
What am I possibly doing wrong with it? I would like to connect to the database in the Accounts
http://puu.sh/hiYKZ/01e0da1578.png
code:-
public SQLConnection acctsConnect(){
try{
Class.forName("C:\\ChattBankMDB.mdb");
}catch(ClassNotFoundException e){
Console.WriteLine("Error: " + e);
}
SQLConnection connect = null;
try{
connect = DriverManager.getConnection("C:\\ChattBankMDB.mdb");
}catch(SQLException e){
Console.WriteLine("Error: " + e);
}
return connect;
}
}
}