Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

importing tables

ResolvedVersion 2003

Daniel has attended:
Access Intermediate course

Importing tables

i need to import data each month from Excel, say a monthly file. My queries are set up to look at the current table, say Jan09 however, when I import Feb, I need my queries to now look at feb09. To get round this i call the file "Current Month" so the queries are always looking at this table. I then make a copy of this to save the original, import the new monthly data calling it feb09, rename the table Current Month, and then rename the Feb09 file to Current Month. Therefore the table Current Month now contains the latest monthly data and the queries are still looking at the right table. I would like some sort of prompt / macro to ask which table my queries should be looking at. I then select Feb09 after importing it for example, and the the queries will then look at it. This means i wouldn't have to copy / paste Current Month all the time. Another way i've got round it is by adding a "Month" column to the Excel file before importing, and then appendng it to the "Current Month" table. Actually, after today, a parameter query might be the answer so the user can select which month?? Sorry if this is confusing! Danny.

RE: importing tables

Hi Daniel

Thanks for your post, one of our VBA trainers has had a look at this and their initial suggestions are that if you have done any VBA in Access or Excel before then it would be beneficial for you to attend our 2 day Introduction VBA courses, more information please click here

Alternatively you can specify your work to us and we can help in a consultancy role with agreed objectives and costs.

Hope this helps.

Regards

Jacob

Tue 21 Apr 2009: Automatically marked as resolved.

Access tip:

Closing form after a certain time period

To make a form close automatically after a certain time period, you need to assign the close function to a macro.

Save the macro and ope up the form in design view. open the Properties sheet.

In the TimerInterval property enter the length of time you want the form open for. This should be in milliseconds, so for instance if you want the form open for 5 seconds enter 5000, for an minute enter 60000.

You now need to attach your macro (to execute the Close action) to the OnTimer event property of the form.



View all Access hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.