Solved

button to run a saved import

Posted on 2008-10-13
1
428 Views
Last Modified: 2008-10-19
Hi

I saved an excel worksheet import, now i need to run this import  clicking a button
what is the code to run this import from a button

best regards
robert
0
Comment
Question by:titorober23
1 Comment
 
LVL 10

Accepted Solution

by:
slamhound earned 250 total points
ID: 22708503
Just select the button tool from the menu and using the wizard, set it up as a Close button. Then just replace the close button code with whatever your code is. If you code is in a function or sub you can call it using:

MyFunction
or
Result = MyFunction()
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

In Debugging – Part 1, you learned the basics of the debugging process. You learned how to avoid bugs, as well as how to utilize the Immediate window in the debugging process. This article takes things to the next level by showing you how you can us…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

758 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

17 Experts available now in Live!

Get 1:1 Help Now