View Single Post
  #3 (permalink)  
Old 06-10-2007, 05:46 PM
v-1
Posts: n/a
Yes that is possible.you can use Compute("MAX)

connection.Open();
OleDbCommand mycommand = new OleDbCommand();
mycommand.Connection = connection;
DataTable categories = GetDataTable("categories", "SELECT * FROM categories", connection);
string orders = categories.Compute("MAid_category)", "").ToString();

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!