Can somebody write me a code, how to view data from tables in c# (using select statement)? I tried it myself and posted the code here, but i didn't get it right. Please help!
A:
Try reading this link: http://www.csharphelp.com/2006/01/ms-access-application-with-c/
Tejs
2010-05-03 13:09:03
I pasted the code from that link and the compiler show me the error that the Specified cast(Console.WriteLine(aReader.GetInt32(0).ToString())) is not valid.
simon
2010-05-03 13:50:55
Is your first column an integer field, or returning a valid integer value?Try just printing the value: `Console.WriteLine(aReader[0].ToString())`
Tejs
2010-05-03 14:20:29