Re: Using TransterText
From: John Viescas (JohnV_at_nomail.please)
Date: 03/15/04
- Next message: John Viescas: "Re: Totals in Crosstab Query"
- Previous message: Anthony Viscomi: "Trying to use Year as a variable"
- In reply to: Dale: "Using TransterText"
- Next in thread: Dale: "Re: Using TransterText"
- Reply: Dale: "Re: Using TransterText"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 15 Mar 2004 15:56:37 -0600
The answer is you can't. One solution is to modify the QueryDef object and
insert the parameter values directly before you execute the TransferText.
-- John Viescas, author "Microsoft Office Access 2003 Inside Out" "Running Microsoft Access 2000" "SQL Queries for Mere Mortals" http://www.viescas.com/ (Microsoft Access MVP since 1993) "Dale" <dale0610@hotmail.com> wrote in message news:%23Xe3RjrCEHA.2556@TK2MSFTNGP12.phx.gbl... > Hi, I have a hybrid Access/VB6 question which I asked in a VB forum but > was suggested to try asking here as well. > > if I want to use in my VB code: > > DoCmd.TransferText [transfertype][, specificationname], tablename, > filename[, hasfieldnames][, HTMLtablename][, codepage] > > to export the contents of a query, I can go like: > > DoCmd.TransferText acExportDelim, , _ > "Query1", App.Path & "\test.txt", -1 > > and that all works fine. > > My question now is, if I change my Query1 so that it takes parameter(s), > how do I pass parameter(s) within that DoCmd statement, if it is even > possible? Thanks.
- Next message: John Viescas: "Re: Totals in Crosstab Query"
- Previous message: Anthony Viscomi: "Trying to use Year as a variable"
- In reply to: Dale: "Using TransterText"
- Next in thread: Dale: "Re: Using TransterText"
- Reply: Dale: "Re: Using TransterText"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|