In above code snippet change SQL statement as follows:

 Select <column_name> From [table_name]...

Instead of counts, you will get value of column and display it
Text1.text

i.e. ret_value = myCommand.ExecuteScalar();

Text1.text = ret_value

On Aug 14, 10:51 am, stanlei <[email protected]> wrote:
> thank you ill try that ... one more thing .... how do I get a value
> from a table in my database and display it in a textBox ...

Reply via email to