473,383 Members | 1,789 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,383 software developers and data experts.

Dynamically add columns to a form using CrossTab queries

Hello,
I have a knotty problem. I have a table :

say table A:
ParameterID InBatch
Algae 1
Ammonia 0
Potassium 1
Magnesium 1
Sodium 0

I have an access form, in which I want to show the fields ParameterID
which have an Inbatch value of 1 as columns, i.e
the form should dynamically make Algae, Potassium and Magnesium as
columns if the table looks like what it is above.
Is it possible to do that ?

Thanks,
Anirudh Garg

Nov 13 '05 #1
1 2454
On 10 Dec 2004 15:06:39 -0800, "anirudh" <an*********@gmail.com>
wrote:
Hello,
I have a knotty problem. I have a table :

say table A:
ParameterID InBatch
Algae 1
Ammonia 0
Potassium 1
Magnesium 1
Sodium 0

I have an access form, in which I want to show the fields ParameterID
which have an Inbatch value of 1 as columns, i.e
the form should dynamically make Algae, Potassium and Magnesium as
columns if the table looks like what it is above.
Is it possible to do that ?

Thanks,
Anirudh Garg


Hi
(forms, reports)
See How to create a dynamic crosstab report in Access 2002 at
http://support.microsoft.com/default...;en-us;Q328320
-David


Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: tim.pascoe | last post by:
I'm attempting to modify some Crosstab generating code, and I need some advice/examples. Currently, the code uses a single string variable to store the dynamically generated query...
3
by: Edward | last post by:
ACCESS 2k I need to design a report based on a rota system for staff at various shops. The data is effectively stored in a single table, along the lines of: Initials (e.g. BH, FG, RM etc.)...
1
by: anirudh | last post by:
Hello, I have a knotty problem. I have a table : say table A: ParameterID InBatch Algae 1 Ammonia 0 Potassium 1 Magnesium 1 Sodium 0
3
by: kmacon | last post by:
I have a form that contains a command button. The command button's OnClick event builds a report using the CreateReport and CreateReportControl functions and then opens the main report. I set...
13
by: salad | last post by:
Operating in A97. I didn't receive much of a response conserning Pivot tables in Access. Pivot tables are nice, but a CrossTab will work for me too. Using a Pivot table, one is actually...
8
by: m.wanstall | last post by:
Hi All, This is similar to a question I asked earlier however this is following a more "correct" way of doing things. I have normalised and summarised an Exchange addressbook (a few thousand...
4
by: m.wanstall | last post by:
I have a crosstab query that compiles data for Months of the year. I have a stacked select query on top of that crosstab query that uses the latest 2 months data and exports it to a fixed length...
2
by: Sol | last post by:
If I have data in the following format in a database LE Amount BS Class 1 10 Asset 1 15 Liability 1 20 Asset 1 12 Liability 2 ...
4
by: Haas C | last post by:
Hi all, I have a table with two columns, labeled Year and Loss. In the Year field, I have the numbers 1 to 10,000, each which can or cannot repeat. In the Loss column, i have numbers...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?

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.