PDA

Click to See Complete Forum and Search --> : Retrieving Data Using SQL


pradeep_sai
Oct 21st, 2000, 01:42 AM
Hi there!
I need to retrieve the return value of an SQL Statement to a variable. The SQL statement looks like this

SELECT MAX(SAL) MSAL FROM EMP

the return value should get bound into a variable in VB. Can any one help me in tracing a way out.

monte96
Oct 21st, 2000, 03:47 AM
If you open your query using a recordset, the value will be in recordset.fields(0)

pradeep_sai
Oct 21st, 2000, 04:37 AM
But i am Using RDO for accessing database. therefore in case of resultset would it work? i.e., something like

resultset.rdocolumns(0)

to retrieve the value.

monte96
Oct 22nd, 2000, 02:53 AM
Not sure with RDO.. I would assume so..