Is there any way to get the same effect via VBA?
Yes (DoCmd.TransferText), but if you need to specify the Import/Export Spec
argument (and it sounds like you will), you need to have the wizard working
to create that Spec in the first place. *AFAIK*, there is no way to create
the initial Spec itself in VBA, (but a Spec can be imported from another mdb
file, if that helps...)
*************************************************
Try the following (from a Ken Snell posting back in March), and see if you
can get "Text Files" to show up as an Export option. My guess is that once
you are able to select that option, the wizard will materialize:
Re-register the following files:
msexcl40.dll (Excel)
msxbse40.dll (dBase)
mspdox40.dll (Paradox)
mstext40.dll (Text, CSV, tab-delimited))
To re-register a DLL file,
1) Locate it (usually all these are in the Windows\System32 or
WINNT\System32 folder.
2) Locate the file regsvr32.exe.
3) Drag the DLL file's icon onto the regsvr32.exe icon.
Or run from Start | Run window:
Regsvr32 "path\msexcl40.DLL"
***************************
At this point its hard to say if you have a problem with your wizard
installation, but the following may prove to be of some help:
http://support.microsoft.com/default.aspx?scid=kb;en-us;303769
ACC2000: Error Message When Running Access Wizards
Even though you are using 2003, I suspect the information may still be valid
(although some of the .dll names may have changed a bit..?)
Note the additional articles referenced at the bottom of the page.
HTH,