473,397 Members | 1,985 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

How to Limit dynamic column heading in cross tab query

Jerry Maiapu
259 100+
I know that you can limit a row by using the Top 5 clause etc..in a select query but is it possible to limit the heading in a cross tab query? The column haeding is dynamic ie..column will change so if I limit my heading to first 5 columns then the 5 column names will change every time a data change takes place in the source table....I do not want to specify names of columns..in the properties as this will not serve my purpose..

I have been cracking my head around thses for 3 days and nothing forth coming..I know that someone out there smarter and can work around these problem.

Thank you!
May 3 '12 #1

✓ answered by Rabbit

Use a subquery to select top 5 distinct and then join that to the original query.

2 2621
Rabbit
12,516 Expert Mod 8TB
Use a subquery to select top 5 distinct and then join that to the original query.
May 3 '12 #2
Jerry Maiapu
259 100+
Thanks! Thought of that too..but something happened that I cannot recall now. I'll try that out and get back.
May 4 '12 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Claus Haslauer | last post by:
Hi, I want to create a crosstab query that looks like this Date | Elevation 1 | Elevation 2 | ... ______________________________________________________________________ Date 1 | xx.y | xx.y...
10
by: Robert Schuldenfrei | last post by:
Hi NG: I have the following code working. The GetProdStrtList() returns a DataTable called psTable. A Grid control is successfully bound to this table and displays correctly. I would like to...
0
by: Kaur | last post by:
Hi, I have created a report based on a cross tab query and would like to Sort the column heading of the report based on the sort order of another field. I have three tables called survey...
0
by: Kaur | last post by:
Hi, I have created a report based on a cross tab query and would like to Sort the column heading of the report based on the sort order of another field. I have three tables called survey...
4
by: Adrian Parker | last post by:
Can someone tell me how to be able to force line breaks in a datagrid column heading? If the text contains "abc<br>def" then that is what comes out; the source view contains the "abc&lt;br&gt;def". ...
7
by: Dan Palm | last post by:
I have a some online web report which are generated into html pages from a SAP application. When the report is printed it prints over multiple pages. Currently, as there is no page break, the...
0
by: Madurai Anbu | last post by:
Dear all, I need help with the version IX of Crystal Reports. i am using Cross tab crystal report with Dynamically increasing columns, How it can be repeated the column-head in all the pages of...
4
by: scottbouley | last post by:
I have two columns containing checkboxes in datasheet view on a subform. The check boxes don't require much space but they have to be huge to fit the column heading without abbreviating beyond...
4
by: Tempalli | last post by:
I am entering records in Ms Access with a series as displayed where as i want to delete few records in this series. Is it possible to assign the missing series to next entry. for example i want...
1
by: mabubakarpk | last post by:
Hello every one, I want to show table value as column heading in select statement. e.g I have table "config" which have two column and following vlaues ----------------- ID Description 1 ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.