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

Crosstab query help...

Hello all,

I have a crosstab query that sets specific dates as field names. Is there an easy way to change the field name from date (numerical) to "Current date", but still give me the current dates information?

I am running access 2003 and below is my SQL code:
Expand|Select|Wrap|Line Numbers
  1. TRANSFORM First(PRCJ830A.[Accrual Rate]) AS [FirstOfAccrual Rate]
  2. SELECT PRCJ830A.[Fund Number], IIf([Class] Is Null,0,[Class]) AS MultiClass
  3. FROM PRCJ830A
  4. GROUP BY PRCJ830A.[Fund Number], IIf([Class] Is Null,0,[Class])
  5. PIVOT PRCJ830A.Date;
Jan 14 '08 #1
7 1511
Rabbit
12,516 Expert Mod 8TB
You'll need an intermediary query that will convert your dates to the string of your choice.
Jan 14 '08 #2
Rabbit,

Will I need to do something like this?

Expand|Select|Wrap|Line Numbers
  1. UPDATE PRCJ830A_Crosstab SET PRCJ830A_Crosstab.[01/11/2008] = Replace([Accrual Yield])
  2. WHERE PRCJ830A.[01/11/2008] ="Accrual Yield"
  3.  
You'll need an intermediary query that will convert your dates to the string of your choice.
Jan 14 '08 #3
Rabbit
12,516 Expert Mod 8TB
Not quite. You want a query BEFORE the crosstab that will create another column that translates the dates to the string that you want.
Jan 14 '08 #4
In by doing this will it translate the date (ie. 1/14/2008...1/15/2008...etc.) into the string "Accrual Yield?"

Do you know where I might find an example?

Not quite. You want a query BEFORE the crosstab that will create another column that translates the dates to the string that you want.
Jan 14 '08 #5
Rabbit
12,516 Expert Mod 8TB
Expand|Select|Wrap|Line Numbers
  1. iif([Accrual Yield]=#1/11/2008#, "Accrual Yield", [Accrual Yield])
Jan 14 '08 #6
Okay...I'm an idiot. Thanks Rabbit for your help.

Expand|Select|Wrap|Line Numbers
  1. iif([Accrual Yield]=#1/11/2008#, "Accrual Yield", [Accrual Yield])
Jan 14 '08 #7
Rabbit
12,516 Expert Mod 8TB
Not a problem, good luck.
Jan 14 '08 #8

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

Similar topics

8
by: Donna Sabol | last post by:
First, I should start by saying I am creating a database to be used by some very impatient, non-computer literate people. It needs to be seameless in it's operation from their point of view. I...
3
by: Darleen | last post by:
I am seeking conceptual here on how to get started with a "3D Matrix" in Access. We run a training center which holds multiple classes in multiple cities at multiple times. So I need to create a...
1
by: Nathan Bloomfield | last post by:
Does anyone know if there is any documentation which relates to Access2k + ? or can anyone help adjust the code? I am having trouble converting the DAO references. TITLE :INF: How to...
2
by: Sherman H. | last post by:
I have a few questions for crosstab and popup form questions: 1. I created a crosstab as follows: IT Financial Operation John 21 22 ...
3
by: Bryan | last post by:
I've been looking over this newsgroup, but I can't find an answer to my problem. I see that a few others have posted this issue over the years, but none of them got a response. I'll give it...
14
by: Tina | last post by:
My employer tracks productivity/performance of clinicians (how much they bill) each week, its averages for the month, and the 6 months. These averages are compared to their expected productivity....
6
by: tizmagik | last post by:
I am having a lot of difficulty generating a CrossTab Query based report. I have looked online for several tutorials and whatnot but I have not been able to really find what I'm looking for, nor...
27
by: Bob | last post by:
running access 2k; mdb w/ linked tables to another mdb (front/back-end); trying to run a query that updates a table FROM information from a crosstab query. I AM NOTT trying to update the...
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...
4
by: mattlightbourn | last post by:
Hi all, I have a problem which has been driving me nuts. Crosstab queries! I have a database witch a few different tables to do with garment manufacturing. I have a table for a client...
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: 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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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,...

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.