Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't export with code

Status
Not open for further replies.

MikeAngelastro

Programmer
Mar 2, 2000
26
US
Hi,<br>
I'm trying to automate the exportation of a table that contains only text fields as a fixed-width text file. I am able to export it manually using the menu and the export wizard. When I use the code below I get an error 3027 (Can't update. Database or object is read-only).<br>
<br>
DoCmd.TransferText acExportFixed, &quot;SprintFormatExportSpec&quot;, &quot;SprintFormat&quot;, &quot;C:\Entel\ATTDate&quot;, False<br>
<br>
What am I doing wrong?<br>
Thanks,<br>
Mike
 
You need to add the file extension to the path argument.<br>
<br>
HTH<br>
RDH <p>Ricky Hicks<br><a href=mailto: rdhicks@mindspring.com> rdhicks@mindspring.com</a><br><a href= > </a><br>
 
Ricky,<br>
Thanks! I did as you had suggested and it worked.<br>
Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top