Per Phil:
>Does the query run without asking for the parameters?
>Have you checked that there the Query Parameters "Table thing" is blank?
>What is the SQL?
One thing that maybe I left out in the OP: it works a-ok under 2003 and
has been for quite a few years.
I used a search utility to find all occurrences of "###.000" in the app,
but it only found two - in other forms.
OTOH, there's quite a bit of "#,###.00" formatting in the problem
form/subforms - and I tried removing all formatting, but the problem
persisted.
Also, I said that it was happening in multiple subforms. In retrospect
that was a careless statement. The dialog gets thrown four times and I
assumed it was once for each form involved.... but there is no reason to
assume that.
Can you say the "Query Parameters 'Table thing'" another way? I'm not
getting it.
Here's all the SQL that I can find associated with the form:
==========================================================================
SELECT tblTrade.TradeID, tblTradeFund.TradeFundID, tblTradeFund.FundID,
tlkpFund.FundName, [tblTradeFund].[Shares]*[ParValue] AS Amount,
tblTradeFund.Shares AS FundShares, tblTrade.Price,
tblTrade.SettlementDate, [tblTrade].[shares]*[ParValue] AS TotalAmount,
tblTrade.Shares AS TotalShares, tblTrade.TradeDate,
tblTrade.UnderwriterID
FROM tlkpFund RIGHT JOIN (tblTrade LEFT JOIN tblTradeFund ON
tblTrade.TradeID = tblTradeFund.TradeID) ON tlkpFund.FundID =
tblTradeFund.FundID
WHERE
(((tblTrade.TrancheID)=[forms]![frmTrancheTransactionEntry]![txtTrancheID])
AND ((tblTrade.TradeTypeID)=5))
ORDER BY tlkpFund.FundName;
=============================================
SELECT tlkpFund.FundName, tblTradeFund.Shares,
[tblTradeFund].[Shares]*[ParValue] AS Amount
FROM tlkpFund RIGHT JOIN (tblTrade LEFT JOIN tblTradeFund ON
tblTrade.TradeID = tblTradeFund.TradeID) ON tlkpFund.FundID =
tblTradeFund.FundID
WHERE (((tblTrade.TrancheID) Is Null) AND ((tblTrade.TradeTypeID)=5));
=============================================
UPDATE ttblTradeEntryFunds INNER JOIN
qryTrancheTransactionEntry_Committments_ForTranche ON
ttblTradeEntryFunds.FundID =
qryTrancheTransactionEntry_Committments_ForTranche.FundID SET
ttblTradeEntryFunds.Amount =
[qryTrancheTransactionEntry_Committments_ForTranche].[Amount],
ttblTradeEntryFunds.Shares =
[qryTrancheTransactionEntry_Committments_ForTranche].[FundShares];
=============================================
SELECT Sum(ttblTradeEntryFunds.Shares) AS SumOfShares,
Sum(ttblTradeEntryFunds.Amount) AS SumOfAmount,
Sum(ttblTradeEntryFunds.Percent) AS SumOfPercent
FROM ttblTradeEntryFunds;
=============================================
SELECT ttblTradeEntryFunds.FundName, Sum(ttblTradeEntryFunds.Shares) AS
SumOfShares, Sum(ttblTradeEntryFunds.Amount) AS SumOfAmount,
Sum(ttblTradeEntryFunds.Percent) AS SumOfPercent
FROM ttblTradeEntryFunds
GROUP BY ttblTradeEntryFunds.FundName
HAVING (((Sum(ttblTradeEntryFunds.Shares))>0)) OR
(((Sum(ttblTradeEntryFunds.Amount))>0)) OR
(((Sum(ttblTradeEntryFunds.Percent))>0));
=============================================
SELECT tlkpFund.FundName, tblTrade.ParValue, Sum(tblTradeFund.Shares) AS
SumOfShares
FROM tlkpFund RIGHT JOIN (tblTrade LEFT JOIN tblTradeFund ON
tblTrade.TradeID = tblTradeFund.TradeID) ON tlkpFund.FundID =
tblTradeFund.FundID
WHERE
(((tblTrade.TrancheID)=[forms]![frmTrancheTransactionEntry].[txtTrancheID])
AND ((tblTrade.TradeTypeID)<>4 And (tblTrade.TradeTypeID)<>5))
GROUP BY tlkpFund.FundName, tblTrade.ParValue
HAVING (((Sum(tblTradeFund.Shares))<>0 And (Sum(tblTradeFund.Shares)) Is
Not Null))
ORDER BY tlkpFund.FundName;
=============================================
--
Pete Cresswell