My connection string:
string connection = @"Provider=Microsoft.ACE.OLEDB.12.0;" +
@"Data Source=\\reso-fs-2\allusers\Student_Home\20350657\Documents\clicker.accdb;" +
@"Jet OLEDB:Database Password=" + "password" + ";";
OleDbConnection con = new OleDbConnection(connection);
So I have this query in C# OleDb:
string query = "SELECT stats_best FROM Users WHERE username="+GameForm.username;
I want to fetch the value from 'stats_best' and save it into a string. I have already set-up the connection and all that. I just need to return a value from the query. How can I do that?