Transfer Data to Excel one Sheet

Hi Guys,

I have 4 queries in my database and I want to transfer the data to excel in the Same sheet.
I want to do by doing a button click on my form.
surah79Asked:
Who is Participating?
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.

Éric MoreauSenior .Net ConsultantCommented:
are the 4 queries returns the same structure (columns)?

check http://emoreau.com/Entries/Blogs/2009/01/Another-way-to-manipulate-Excel-files.aspx and
0

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
surah79Author Commented:
4 queries are different .But I just want to dump the data in the one sheet of the workbook
0
Éric MoreauSenior .Net ConsultantCommented:
This example dumps all the datatables of a dataset in separate worksheets automatically : http://closedxml.codeplex.com/wikipage?title=Adding%20DataSet&referringTitle=Documentation

but this is not what you want!

you will need a bit more code as shown in http://closedxml.codeplex.com/wikipage?title=Copying%20IEnumerable%20Collections&referringTitle=Documentation
0
surah79Author Commented:
Is there is a way to fix the rows where the data can be dump in same excel sheet from the different access queries?
0
Éric MoreauSenior .Net ConsultantCommented:
You will have to dig a bit. Your question is so vague that I barely see what you want to do. The last link I provided shows how to dump data into a worksheet like your question was asking
0
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 Applications

From novice to tech pro — start learning today.