public string count ;


public void LoadSNFromChart()
{
string command = "selectcount(buyer_code)
from invoice
where buyer_code=3 As b";
cn.Open();
OleDbDataReader dr = cm.ExecuteReader();
if (dr.Read())
{
count= (dr["b"]).ToString();
}
}


فکر کنم این دیگه درست باشه.
البته string برای این کار خیلی بزرگه.
یه مثال ساده است دیگه!!!