[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

access database automatic

Posted on 2013-06-04
7
Medium Priority
?
233 Views
Last Modified: 2013-07-03
I have an access database that has a form that will import a text file into a scanning software.  All I have to do is click the button on the form and the import happens.  I was wondering if there is any way that this can be done automatically?  Can access do scheduled tasks or is there another software that could perform this task?
0
Comment
Question by:mkramer777
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 7

Expert Comment

by:Robert Saylor
ID: 39219867
Macro software can do this.

Here is one I googled: http://www.autohotkey.com/
0
 
LVL 58
ID: 39219870
Access itself doesn't have scheduling built-in, but you can easily write something or simply use the Windows task scheduler, passing the name of a macro with the /x switch, or using /cmd switch to pass in arguments which you can then act on.

Most to the latter.

Jim.
0
 
LVL 21
ID: 39219910
All I have to do is click the button on the form and the import happens.

I like to create a separate front end that has a start up form the runs the code in the form's On Load event. Add a line of code to the end to .Quit. Once the database will auto run without any human interaction and close it is ready to be called from the Windows Task schedule.
0
Fill in the form and get your FREE NFR key NOW!

Veeam® is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

 
LVL 52

Accepted Solution

by:
Gustav Brock earned 1700 total points
ID: 39221250
You can set the form to open automatically when Access launch your app.

Set the Timer Interval of the form to, say, 10000 for 10 seconds. The number is milliseconds.

Then use the Timer event of the form to call the OnClick event of your button:

Private Sub Form_Timer()
   ' Simulate a click of your button.
   Call btnImport_Click
End Sub

Now the button click event will fire every time the timer runs out.

/gustav
0
 

Author Comment

by:mkramer777
ID: 39298067
I've requested that this question be deleted for the following reason:

Figured it out
0
 
LVL 7

Expert Comment

by:Robert Saylor
ID: 39298024
What was your solution? Did any of us help you towards that solution?
0
 
LVL 58
ID: 39298068
Please post the method you used, then accept your own comment as answer.

Thanks,
Jim.
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

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

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

649 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