Hi,
I have a bit of c# code that needs to pull data fro a database, the
problem I have is that once I have run the query once get the same
data, regardless of wether I add update or delete the data in between
calls, annoyed by this I created some simple test code with a simple
database that has 1 table with 2 columns, tableId and Value, the code
is as follows
OleDbConnection cn = new
OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data
Source=test.mdb;User Id=admin;Password=;");
cn.Open();
OleDbCommand com = cn.CreateCommand();
com.CommandText = "SELECT TOP 1 Value FROM TEST WHERE TableID =0";
textBox1.Text = com.ExecuteScalar().ToString();
And this still fails, I dont think this is a code issue though, I have
a reasonable amount of experience with access and have never had this
problem before, the only difference I can think of is that I recently
reinstalled my OS and installed a trail version of 2003 so I think it
is more likely to be a configuration issue.
Anyone got any ideas how I can get this working?