Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Construct Coluns via VBA

How can I construct columns based off an Access query. The query is a
crosstab, therefore the number of columns will vary depending on the criteria
passed to it.

I need to find a solution to export the data from the query into an Excel
spreadsheet.




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default Construct Coluns via VBA

The functional equivalent of a cross tab in Excel is a pivot table. Have you
considered adding a pivot table to a sheet and referencing it to the source
Access Data. Click on Data - Pivot table and select Access as the data
source. You will not reference the cross tab but rather the query or table
that was used to create the cross tab. There is no 65,536 row limit on doing
this and you get all of the benefits of a dynamic pivot table as opposed to a
static cross tab import.
--
HTH...

Jim Thomlinson


"scuba79" wrote:

How can I construct columns based off an Access query. The query is a
crosstab, therefore the number of columns will vary depending on the criteria
passed to it.

I need to find a solution to export the data from the query into an Excel
spreadsheet.




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Construct Coluns via VBA

I can't use the pivot table function the spreadsheet must be static to
prevent end users from changing data around

"Jim Thomlinson" wrote:

The functional equivalent of a cross tab in Excel is a pivot table. Have you
considered adding a pivot table to a sheet and referencing it to the source
Access Data. Click on Data - Pivot table and select Access as the data
source. You will not reference the cross tab but rather the query or table
that was used to create the cross tab. There is no 65,536 row limit on doing
this and you get all of the benefits of a dynamic pivot table as opposed to a
static cross tab import.
--
HTH...

Jim Thomlinson


"scuba79" wrote:

How can I construct columns based off an Access query. The query is a
crosstab, therefore the number of columns will vary depending on the criteria
passed to it.

I need to find a solution to export the data from the query into an Excel
spreadsheet.




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default Construct Coluns via VBA

Why not lock the sheet down so that the end user can not change it around.
Unlock just the parts they are allowed to play with.
--
HTH...

Jim Thomlinson


"scuba79" wrote:

I can't use the pivot table function the spreadsheet must be static to
prevent end users from changing data around

"Jim Thomlinson" wrote:

The functional equivalent of a cross tab in Excel is a pivot table. Have you
considered adding a pivot table to a sheet and referencing it to the source
Access Data. Click on Data - Pivot table and select Access as the data
source. You will not reference the cross tab but rather the query or table
that was used to create the cross tab. There is no 65,536 row limit on doing
this and you get all of the benefits of a dynamic pivot table as opposed to a
static cross tab import.
--
HTH...

Jim Thomlinson


"scuba79" wrote:

How can I construct columns based off an Access query. The query is a
crosstab, therefore the number of columns will vary depending on the criteria
passed to it.

I need to find a solution to export the data from the query into an Excel
spreadsheet.




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Construct Coluns via VBA

Unfortunately I can't use the Pivot table at all, the database has security
being used and I can't pass the login information to get into the database...

Thanks for the ideas...

I'll figure something out...


"Jim Thomlinson" wrote:

Why not lock the sheet down so that the end user can not change it around.
Unlock just the parts they are allowed to play with.
--
HTH...

Jim Thomlinson


"scuba79" wrote:

I can't use the pivot table function the spreadsheet must be static to
prevent end users from changing data around

"Jim Thomlinson" wrote:

The functional equivalent of a cross tab in Excel is a pivot table. Have you
considered adding a pivot table to a sheet and referencing it to the source
Access Data. Click on Data - Pivot table and select Access as the data
source. You will not reference the cross tab but rather the query or table
that was used to create the cross tab. There is no 65,536 row limit on doing
this and you get all of the benefits of a dynamic pivot table as opposed to a
static cross tab import.
--
HTH...

Jim Thomlinson


"scuba79" wrote:

How can I construct columns based off an Access query. The query is a
crosstab, therefore the number of columns will vary depending on the criteria
passed to it.

I need to find a solution to export the data from the query into an Excel
spreadsheet.




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
deleting number and alphabet rows and coluns Maryann Excel Discussion (Misc queries) 1 May 17th 08 05:12 PM
Move data in repeated sets of coluns Sabba B Excel Worksheet Functions 0 January 23rd 06 04:59 PM
if else construct Ian Bartlett Excel Worksheet Functions 2 July 22nd 05 01:16 PM
Construct a range in VB Steve Excel Discussion (Misc queries) 3 December 29th 04 02:01 PM
Macro closes all coluns and not just the programmed ones, why? sonar[_8_] Excel Programming 4 May 2nd 04 04:21 PM


All times are GMT +1. The time now is 03:59 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"