Is this a SQL Server database? I'm basing my response from a SQL Server database perspective. You can return a parameter. SQL Server has a keyword "OUTPUT". For the parameter, you can specify that the parameter direction be output instead of input (default). If you need to return an integer value, SQL Server has this by default (@RETURN_VALUE), which you return a value by "return <number>" in the stored procedure. If a stored procedure, the command type must be adCmdStoredProc (4).
You can associate a recordset with a view; the recordset doesn't care what the source is as long as it returns record data, which a view does.
Hope this helps,
Brian Mains
|