Hi Allan
Thanks so far for your help = but still can't get this to
work!
Here's the SQL for the query - hope that's what you need.
Sam
SELECT T_RILine.LORSID, T_RILine.[RILine%],
T_RILine.BrokerRef, T_RILine.PolicyID, T_BrokerOrder.
[Order%], T_Policy.LimitUSD, T_Policy.ExcessUSD,
T_Policy.PremiumUSD, [RIExposure]/[LimitUSD] AS
RILineofWholeOrder, T_RILine.BrokerRef,
T_LORS.CompanyName, T_LORS.Best, T_LORS.SP,
T_LORS.SHFunds, T_LORS.Domicile, T_LORS.Status,
T_Policy.ProgrammeID, T_Programme.Syndicate,
T_Programme.Division, T_Policy.Description,
T_Policy.Basis, T_Policy.Type, T_Policy.Inception,
T_Policy.Expiry, T_BrokerOrder.BrokerCode,
T_BrokerOrder.BrokerName, T_Policy.ROL,
T_Policy.MinPremiumUSD, T_Policy.DepPremiumUSD,
T_ReInstatements.ReInstatements,
T_ReInstatements.ReInstatementsPercent, [RILINE%]/100 AS
RILine, [PremiumUSD]*[RILineofWholeOrder] AS
RIPremiumShare, (([LimitUSD]*([T_BrokerOrder.Order%]/100))*
([RILine%]/100)) AS RIExposure
FROM ((T_LORS RIGHT JOIN ((T_BrokerOrder INNER JOIN
T_RILine ON (T_BrokerOrder.BrokerRef = T_RILine.BrokerRef)
AND (T_BrokerOrder.PolicyRef = T_RILine.PolicyID)) INNER
JOIN T_Policy ON T_RILine.PolicyID = T_Policy.PolicyID) ON
T_LORS.LORSID = T_RILine.LORSID) INNER JOIN T_Programme ON
T_Policy.ProgrammeID = T_Programme.ProgrammeID) LEFT JOIN
T_ReInstatements ON T_Policy.PolicyID =
T_ReInstatements.PolicyID;
-----Original Message-----
Make a copy of your report: select it in the database window, and copy
(ctrl+C) and paste (Ctrl+V), giving a new name.
Delete the calculated controls from the copy. When you have it working, add
them back until you find the one that's giving you the problem.
If you can locate it, but still can't see why it may be overflowing, post
the ControlSource here.
For an example of what might cause an Overflow, open the Immediate Window
(Ctrl+G), type:
? 200 * 200
and press Enter.
Surprised?
Try:
? CLng(200) * 200
CDbl() may also be useful.