Do not use on any
shared computer
August 30, 2008 03:07am pdt
 
[x]
Attachment Details

Create a Excel document using VBA or VB using specific MS ACCESS Data tables and fields

Tags: ms access, vba to create excel document
Create a Excel document using VBA or VB using specific MS ACCESS Data tables and fields to create a variety of excel worksheets with specified names on the sheets and  data placed in specified location on certain sheets.

 The data is in several tables in the database  and the table names are know and the  fields are know,  with this information known  I then know where I want to place the information in the excel document what worksheet  by name and the cells that it can be pasted to.  I have been reviewing the object model for vba and access and excel and am unsure  how to accomplish this.  I have over 150 database where I need to pull several small pieces of data from.  I will provide samples below.

The example is as follows: ultimatly saved as an excel firstphase.xls

( there will be several worksheets but the first will be called - worksheet name: buildings

The cells that the various data will be places is as follows:

from ms access  database named:  probuild
the table that data is to be pulled form is tblbuildingcodes
and the first field fromt he table that I need all  records from buildingname this information in asc order  

i.e. probuild.tblbuildingcodes.buildingname
will be placed in cell starting at A6 ( down the page)


the next field from the table will be buildingcode
i.e. probuild.tblbuildingcodes.buildingcode
and this will be placed in the excel worksheet starting at cell d6

I need to label with fix text  cells a1, a2,a3,a4, a6, and the same for d1-5.
i.e. cell d1 builing
d2 western
d3 sections
fieldname (from tblbuildingcode) ( if this can be done other wise I will jsut hard code it np.)

then save the excell sheet to the same folder where the database is located and called firstphase.xls

I hope that there is someone out there that can help me with this issue, I have been going over the internet looking for help with creating excel docs using vba in ms access but have not found enough defined to aid in the process I am trying to work out otherwise it will take forwaver to copy and paste the data from 150 or more different databases.

Thank you very much!
Start your free trial to view this solution
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

Question Stats
Zone: Software
Question Asked By: danlooper
Solution Provided By: rheitzman
Participating Experts: 1
Solution Grade: A
Views: 289
Translate:
Loading Advertisement...
 
[+][-]Expert Comment by rheitzman
Expert Comment by rheitzman:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by danlooper
Author Comment by danlooper:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by rheitzman
Expert Comment by rheitzman:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by danlooper
Author Comment by danlooper:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Accepted Solution by rheitzman
Accepted Solution by rheitzman:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Administrative Comment by mbizup

Rank: Guru

Administrative Comment by mbizup:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Administrative Comment by mbizup

Rank: Guru

Administrative Comment by mbizup:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Administrative Comment by Computer101
Administrative Comment by Computer101:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080723-EE-VQP-34 / EE_QW_2_20070628