T
Tara
Hello,
How can I get a value for [c?] without creating a circular reference? In the
below example, I have just but it down as coming from Table1, but in fact it
should be [Table1].[c]/tb.[Total%] from Table1 LEFT JOIN Table1 AS tb ON
[Table1].[cn]=tb.[cn] AND [Table1].[a]=tb.([a]+1)
When I tried to build it up slowly, it worked, but after I shut it down, I
kept getting a circular reference. Is there a way around this as the
information needed is based on the preceding line?
SELECT [Table1].[a], [Table1].[cn], [Table1]., [Table1].[c] AS [c?],
[Table1]!+(SELECT Sum( [c?]) AS [TotalX] FROM [Table1] AS Dupe WHERE
Dupe.[cn] = [Table1].[cn] And [Dupe].[a] <=[Table1].[a]) AS [TotalX],
[Query1].[TotalY]/[TotalX] AS [Total%], [Query1].[TotalY]
FROM [Table1] INNER JOIN [Query1] ON ([Table1].[cn] = [Query1].[cn]) AND
([Table1].[a] = [Query1].[a])
WITH OWNERACCESS OPTION;
Thank you for any help.
Tara
How can I get a value for [c?] without creating a circular reference? In the
below example, I have just but it down as coming from Table1, but in fact it
should be [Table1].[c]/tb.[Total%] from Table1 LEFT JOIN Table1 AS tb ON
[Table1].[cn]=tb.[cn] AND [Table1].[a]=tb.([a]+1)
When I tried to build it up slowly, it worked, but after I shut it down, I
kept getting a circular reference. Is there a way around this as the
information needed is based on the preceding line?
SELECT [Table1].[a], [Table1].[cn], [Table1]., [Table1].[c] AS [c?],
[Table1]!+(SELECT Sum( [c?]) AS [TotalX] FROM [Table1] AS Dupe WHERE
Dupe.[cn] = [Table1].[cn] And [Dupe].[a] <=[Table1].[a]) AS [TotalX],
[Query1].[TotalY]/[TotalX] AS [Total%], [Query1].[TotalY]
FROM [Table1] INNER JOIN [Query1] ON ([Table1].[cn] = [Query1].[cn]) AND
([Table1].[a] = [Query1].[a])
WITH OWNERACCESS OPTION;
Thank you for any help.
Tara