|
-
Oct 21st, 2000, 01:42 AM
#1
Thread Starter
New Member
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.
-
Oct 21st, 2000, 03:47 AM
#2
Frenzied Member
If you open your query using a recordset, the value will be in recordset.fields(0)
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
-
Oct 21st, 2000, 04:37 AM
#3
Thread Starter
New Member
Thanks Monte
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.
-
Oct 22nd, 2000, 02:53 AM
#4
Frenzied Member
Not sure with RDO.. I would assume so..
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|