Update Excel data from Access query

Hi all,

I need a quick excel macro that would get data from an access query, and then update the data in excel where there is a match. The excel data has TAG_NO and MP_NO_E among the columns, and the query returns TAG_NO and MP_NO_A. For each TAG_NO that matches, I want to update MP_NO_E to MP_NO_A.
Thanks!
PopoDiAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

regmigrantCommented:
This probably doesnt need a macro - use the 'data connections' tab to set up a connection to Access and it will guide you through the extract
jmoss111Commented:
You can no longer update a linked Excel file in Access due to some copyright infringement issues from back in version 2000 or 2002.
PopoDiAuthor Commented:
I am not too familiar with programming excel. I can bring in the data from Access either through external data or manual export, but how do I do the updating where the TAG_NO matches?
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

jmoss111Commented:
If it were me, I would update in Access and then create a new Excel file

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
PopoDiAuthor Commented:
I thought about that, but I cannot. The data resides in the excel file and there is only the match in the two columns (Tag No and Mp No) with the access database. They want to have sort of a button that once clicked updates the Mp No from Access to Excel.
PopoDiAuthor Commented:
I was able to do it by just linking the excel file and the query in another access file and then just doing the update query. Thanks everyone who responded.
PopoDiAuthor Commented:
I am using my comments as a solution as the expert's comment spurred me in the direction of the ultimate solution.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.