I want to read a textbox and make the next query to a access database
this.dvclientes.SelectCommand.CommandText="SELECT * FROM clientes where (id_Cliente = "+n+"')";
the problem is the id_cliente have a auto number property and to compare i have to use the same field type.
i tried to convert string to int using:
MyInt = int.Parse(MyString);
MyInt = Convert.Int32(MyString);
but it doesn' t work can someone help
Textbox access autonunber
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Dinesh TawarRank #4,458 · 342 reputationPosted Aug 10, 2006, 5:44 AM EDT
try this code and let me know
vijay kumar24 reputationPosted Feb 6, 2008, 12:48 AM EST