TransferText specification name?

shacket

Registered User.
Local time
Today, 04:36
Joined
Dec 19, 2000
Messages
218
I want to export a query to an HTML format. To use DoCmd.TransferText, it asks for a specification name. The help file says: "A string expression that's the name of an import or export specification you've created and saved in the current database." How do you create that?
 
Go through the process of manually exporting/importing the file ONCE. At the last screen of the wizard, press the Advanced button and give the spec a name so you can save it. Once it has been saved, you can refer to it by name in the TransferText Method/Action.
 
I tried to do that and can't seem to get a wizard going. I am trying to export a query to an HTML format.

Thanks for any other help you can give me.
 
shacket,

From Access Help:
You can use import/export specifications with HTML files, but the only part of the specification that applies is the specification for data type formatting.

if you don't need to change the formatting you might try using OutputTo method instead.

like:
DoCmd.OutputTo acOutputQuery, "YourQuery", acFormatHTML, "c:/YourPath/YourFile.htm", False

hth,
al


[This message has been edited by pcs (edited 10-14-2001).]
 

Users who are viewing this thread

Back
Top Bottom