views:

75

answers:

1

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
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
Is your first column an integer field, or returning a valid integer value?Try just printing the value: `Console.WriteLine(aReader[0].ToString())`
Tejs