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!

Automating Tasks

Status
Not open for further replies.

billheath

Technical User
Mar 17, 2000
299
US
I am trying to write a VB procedure to automaticall export a table into a text file. I have set up the export specs. I can open the table, and then execute the &quot;save as&quot; function. How do I send key strokes to each window without user input.&nbsp;&nbsp;I tried using &quot;SendKeys&quot; with no luck.&nbsp;&nbsp;I am using Access 97.<br>Thanks<br>Bill<br>&nbsp;
 
IN VB CODE -<br><br><br>docmd.OutputTo acOutputTABLE, &quot;TABLE NAME&quot;, acFormatTXT, <br>&quot;C:\mydocs&quot; & [FIELD1] & &quot;TEXT&quot; &quot;.txt&quot;, -0<br><br>Will create a text file named [field1]TEXT.txt<br><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top