importing tables

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

Forum home » Delegate support and help forum » Microsoft Access Training and help » Importing tables

Importing tables

resolvedResolved · Low Priority · Version 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.

 

Training courses

 

Training information:

See also:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


 

Access tip:

Action queries

Unlike select queries you cannot use action queries as a data source for the use with forms or reports,as they do not return a dataset that can be read.

View all Access hints and tips


Server loaded in 0.09 secs.