Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

View Recordset Results 1

Status
Not open for further replies.

cranebill

IS-IT--Management
Jan 4, 2002
1,113
US
Is there a way to view a code driven recordset results in possibly something like datasheet mode?

This is basically for troubleshooting purposes.

Bill
 
Are you using ADO or DAO?

What I have done to see what kind of records I am getting back is put the source of the recordset into a query and open the query.
Code:
szQuery = "SELECT * " _
        & "  FROM sys_tblqueries " _
        & " WHERE hasRun = false " _
        & "   AND active = true ORDER BY RunOrder;"
    
Set adoRSQueries = New ADODB.Recordset
adoRSQueries.Open szQuery, CurrentProject.Connection, _
                  adOpenStatic, adLockOptimistic

CurrentDb.QueryDefs("tempQuery").SQL = szQuery
CurrentDb.QueryDefs.Refresh

DoCmd.OpenQuery "tempQuery", acViewNormal

"tempQuery" would be a query from the same database as the source of your recordset.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top