RE: Add a new column AS date using a prompt or form
- From: AFSSkier <AFSSkier@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 29 Aug 2007 08:24:03 -0700
I’m not sure how to post a table structure.
Table is linked to a delimited text flat file.
UPC = T12
52_week_doll = D2
I have a monthly report with a rolling 52wk sales by UPC. I would like to
keep track of the 52wk sales dollars in a field with the corresponding period
end date AS the column header (08/11/07, etc.).
Using Either a Make Table or an Append, add a new field for the current
rolling 52wk sales by UPC AS [new period end date].
UPC 07/14/07 08/11/07
000834663049 $19,812.20 $19,812.20
001115211655 $5,323.91 $5,323.91
001117101118 $1,810.80 $1,810.80
I’ve tried to prompt for a date [Enter period end date]. Also tied to enter
date with a form, with no luck.
Working SQL:
SELECT [ACN_TEXT].UPC, [ACN_TEXT]![52_week_doll] AS [08/11/07]
FROM [ACN_TEXT];
--
Thanks, Kevin
"KARL DEWEY" wrote:
A couple of problems I see --.
1 - You are calling your table by two names -
FROM [AC NIELSEN TEXT];
and [ACN_TEXT]
2 - [ACN_TEXT]![52_week_doll] AS [Forms![frmDate]![txtStartDate]]
This says you want to use an alias named -- [Forms![frmDate]![txtStartDate]
and you have a double bracket.
Post your table structure - field names and data type. Post sample of your
data.
--
KARL DEWEY
Build a little - Test a little
"AFSSkier" wrote:
I have a monthly sales report. I would like to keep track of the 52 wk sales
dollars in a column field with the period end date AS the column header.
Adding a new column at the end of every period.
UPC 07/14/07 08/11/07
000834663049 $19,812.20 $19,812.20
001115211655 $5,323.91 $5,323.91
001117101118 $1,810.80 $1,810.80
I’ve tried to prompt a date & enter with a form (see SQL), with no luck.
SQL:
SELECT [ACN_TEXT].UPC, [ACN_TEXT]![52_week_doll] AS
[Forms![frmDate]![txtStartDate]]
FROM [AC NIELSEN TEXT];
--
Thanks, Kevin
- Follow-Ups:
- Re: Add a new column AS date using a prompt or form
- From: John W . Vinson
- Re: Add a new column AS date using a prompt or form
- Prev by Date: Re: Writing numbers as alpha
- Next by Date: Re: How to multiply percentages in a CROSSTAB-action (instead of e.g. SUM)
- Previous by thread: Re: Add a new column AS date using a prompt or form - Stevie is soliciting again
- Next by thread: Re: Add a new column AS date using a prompt or form
- Index(es):
Relevant Pages
|