Create a recordset

K

Kelvin

You need to be more specific. A recordset is the underlying data being
anything. A table is a recordset, a query, an SQL statement, plus others.
Exactly what do you want to do?

Kelvin
 
P

PC Datasheet

Bill,

There are many ways, here are two ---

If you want to make a recordset of the records in a form:

Dim Rst As DAO.Recordset
Set Rst = Me.recordsetclone

If you want to make a recordset of a table or query that is not part of a form:

Dim Db As DAO.Database
Dim Rst AsDAO.Recordset
Set Db = CurrentDb
Set Rst = Db.OpenRecordset("NameOfTableOrQuery",dbOpenDynaset)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top