Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

VBA code to run an import specification

Posted on 2014-01-02
1
Medium Priority
?
1,679 Views
Last Modified: 2014-01-03
On a form I have a command button.  When clicked I would like it to run a saved import specification.

How can I do this?
0
Comment
Question by:SteveL13
1 Comment
 
LVL 25

Accepted Solution

by:
chaau earned 2000 total points
ID: 39752656
In the VBA code for the button Click event put this line:
docmd.RunSavedImportExport("MySavedImport") 'replace "MySavedImport" with the name of your saved import

Open in new window

0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question