Solved

VBA code to run an import specification

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
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…

705 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

21 Experts available now in Live!

Get 1:1 Help Now