M
MarkD
Hi,
I'm using Access 2000.
I have a query that is filtered off data from a form.
Because of this, I can't export the query itself (even if
the form is open). So, I have code that puts in the
parameters:
======================
Dim qdf As DAO.QueryDef
Dim db As DAO.Database
Dim rs As DAO.Recordset
Set db = CurrentDb
Set qdf = db.QueryDefs("CL EXPORT")
qdf.Parameters(0) = Forms![COMPANY_ENTRY]![CLIENT_NUMBER]
qdf.Parameters(1) = Forms![COMPANY_ENTRY]![COMPANY_ID]
Set rs = qdf.OpenRecordset()
======================
this all works, but what I need to do is export rs to a
comma delimited (no qualifiers) file. I have the export
spec ready and I thought docmd.transfertext would work,
but it doesn't.
So, how would I accomplish this?
THANKS!
-Mark
I'm using Access 2000.
I have a query that is filtered off data from a form.
Because of this, I can't export the query itself (even if
the form is open). So, I have code that puts in the
parameters:
======================
Dim qdf As DAO.QueryDef
Dim db As DAO.Database
Dim rs As DAO.Recordset
Set db = CurrentDb
Set qdf = db.QueryDefs("CL EXPORT")
qdf.Parameters(0) = Forms![COMPANY_ENTRY]![CLIENT_NUMBER]
qdf.Parameters(1) = Forms![COMPANY_ENTRY]![COMPANY_ID]
Set rs = qdf.OpenRecordset()
======================
this all works, but what I need to do is export rs to a
comma delimited (no qualifiers) file. I have the export
spec ready and I thought docmd.transfertext would work,
but it doesn't.
So, how would I accomplish this?
THANKS!
-Mark