Solved

VBA code to run an import specification

Posted on 2014-01-02
1
1,446 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 24

Accepted Solution

by:
chaau earned 500 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
unable to save new report from old one 9 25
Reference theme colors in VBA 4 23
Delete QueryDef IF it Exists: Access VBA 5 27
Update a text value in another table 10 35
Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

816 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now