Re: Saving DAO recordset
- From: "Mary Chipman [MSFT]" <mchip@xxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 08 Dec 2006 11:25:35 -0500
I'm a little rusty on what you can and can't do with DAO recordsets,
but I'm pretty sure that what you are trying is a dead end. I'd ask on
one of the Access newsgroups and see what they have to say.
--Mary
On Thu, 30 Nov 2006 16:30:01 -0800, Saumil
<Saumil@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hi,.
I am wanting to save DAO recordset as an Excel Workbook but I can't find a
way to do so. Please have a look on following code.
Public Sub paramparse()
Dim qdf As QueryDef
Dim db As DAO.Database
Dim rs As DAO.Recordset
Set db = CurrentDb
Set qdf = db.QueryDefs("param_qry") 'pram_qry is stored query
qdf.Parameters("dbplace") = "amas" 'dbplace is a parsing field of query
Set rs = qdf.OpenRecordset()
End Sub
the recordset is ready in rs after "Set rs = qdf.Openrecordset() "statement
but it isn't possible to save this recordset as how we can save when it is
ADO recordset. Also, I can't use "Set rs = qdf.OpenRecordset()" statement if
I declare all objects as ADO objects. So would anybody please help me showing
how to save DAO recordsets??
Thanks
Saumil
- Prev by Date: Data source connection problem using MailMerge in VB6 with Word 20
- Next by Date: Re: Jet engine filename format restrictions
- Previous by thread: Data source connection problem using MailMerge in VB6 with Word 20
- Next by thread: Re: Jet engine filename format restrictions
- Index(es):
Relevant Pages
|
|