I have an Access database that tracks all loans secured by marketable securities. I have a five fields in the client table that are look up fields that refer to the stocks table. Access created multiple shadow copies of the stocks database in relationships. I set the joins to outer joins with the client table as the primary.
I have an crystal report to track the values, but can only get the first field to be included in the total. The second and subsequent stocks do not get calculated.
I have the stocks table in multiple times to match the fields in clients. I have outer joins with clients as primary.
My formula is:
if{Margin_Clients.Stock 1 Symbol}<>0 then
{Margin_Clients.Stock 1 # Shares} * {Stocks.Price} +
{Margin_Clients.Stock 2 # Shares} * {Stocks.Price} +
{Margin_Clients.Stock 3 # Shares} * {Stocks.Price} +
{Margin_Clients.Stock 4 # Shares} * {Stocks.Price} +
{Margin_Clients.Stock 5 # Shares} * {Stocks.Price}
else 0
If try to show the price as (stocks_1.price), stocks_2.price) etc I get an error.
I have an crystal report to track the values, but can only get the first field to be included in the total. The second and subsequent stocks do not get calculated.
I have the stocks table in multiple times to match the fields in clients. I have outer joins with clients as primary.
My formula is:
if{Margin_Clients.Stock 1 Symbol}<>0 then
{Margin_Clients.Stock 1 # Shares} * {Stocks.Price} +
{Margin_Clients.Stock 2 # Shares} * {Stocks.Price} +
{Margin_Clients.Stock 3 # Shares} * {Stocks.Price} +
{Margin_Clients.Stock 4 # Shares} * {Stocks.Price} +
{Margin_Clients.Stock 5 # Shares} * {Stocks.Price}
else 0
If try to show the price as (stocks_1.price), stocks_2.price) etc I get an error.