This Microsoft® Visual Basic® sample retrieves contents of the input table name provided to the DAO table, and returns a tabular array equivalent to the result set returned from Microsoft SQL Server™.
C:\Program Files\Microsoft SQL Server\80\Tools\Devtools\Samples\Oleauto\Loopback.dao