D
Dave
I need to return a sum of units from a inventory table in code. I'm using a
ExecuteScalar statement. I have the following code,
OleDbCommand t_command = new OleDbCommand(m_sumstring, connection)
connection.Open();
t_command.ExecuteScalar();
I see lots of similar examples but they never show how to actually get the
data. So how do I read the value that is returned?
int m_data= t_command.ExecuteScalar();
doesn't work.
ExecuteScalar statement. I have the following code,
OleDbCommand t_command = new OleDbCommand(m_sumstring, connection)
connection.Open();
t_command.ExecuteScalar();
I see lots of similar examples but they never show how to actually get the
data. So how do I read the value that is returned?
int m_data= t_command.ExecuteScalar();
doesn't work.