SELECT Date() AS [Report Date],
q_Rdy_ConvDate_ClientCateg_Summ.conv_date_mod,
q_Rdy_ConvDate_ClientCateg_Summ.Clients, Null AS Profiled, Null AS
ProvidedDoc, Null AS [Not submitted], Null AS IBTfund,
q_Rdy_ConvDate_BeneCateg_Summ.SSCfund, [SSCfund]-[NotExported] AS
BeneExported, q_Rdy_ConvDate_BeneCateg_Summ.NotExported AS
BeneNotExported,
([SSCfund]-[NotExported])/[SSCfund] AS BeneExportComplete,
[NotExported]/[SSCfund] AS BeneExportRemaining, [SSCfund]-[GBEpend] AS
GBEComplete, ([SSCfund]-[GBEpend])/[SSCfund] AS GBEsetupComplete,
q_Rdy_ConvDate_BeneCateg_Summ.GBEpend, [GBEpend]/[SSCfund] AS
GBEsetupRemaining, q_Rdy_ConvDate_MarketCateg_Summ.TotMkts,
q_Rdy_ConvDate_MarketCateg_Summ.TotDocMkts, [TotMkts]-[MktNotExported] AS
MktsExported, IIf([TotMkts]=0,1,([TotMkts]-[MktNotExported])/[TotMkts]) AS
MktExportComplete, q_Rdy_ConvDate_MarketCateg_Summ.MktNotExported,
IIf([TotMkts]=0,1,[MktNotExported]/[TotMkts]) AS MktExportRemaining,
[TotMkts]-[MktNotExported] AS [AOM Recvd],
([TotMkts]-[MktNotExported])-[LACpend] AS LACcomplete,
IIf([TotMkts]-[MktNotExported]=0,1,(([TotMkts]-[MktNotExported])-[LACpend])/([TotMkts]-[MktNotExported]))
AS LACsetupComplete, Null AS Cash,
q_Rdy_ConvDate_MarketCateg_Summ.LACpend,
IIf(([TotMkts]-[MktNotExported])=0,1,[LACpend]/([TotMkts]-[MktNotExported]))
AS LACsetupRemaining, q_Rdy_ConvDate_MarketCateg_Summ.LACpendDocMkt,
IIf(([TotDocMkts]-[MktNotExported])=0,1,[LACpendDocMkt]/([TotDocMkts]-[MktNotExported]))
AS DocMktLACsetupRemaining, IIf([Forms]![Menu: Canned
Reports]![cmb_NewMktBeneRecords]="Yes","New Mkts","No") AS NewMkts
FROM (q_Rdy_ConvDate_ClientCateg_Summ INNER JOIN
q_Rdy_ConvDate_BeneCateg_Summ ON
q_Rdy_ConvDate_ClientCateg_Summ.conv_date_mod =
q_Rdy_ConvDate_BeneCateg_Summ.conv_date_mod) LEFT JOIN
q_Rdy_ConvDate_MarketCateg_Summ ON
q_Rdy_ConvDate_BeneCateg_Summ.conv_date_mod =
q_Rdy_ConvDate_MarketCateg_Summ.conv_date_mod
ORDER BY q_Rdy_ConvDate_ClientCateg_Summ.conv_date_mod;
Dale Fye said:
Can you post the SQL?
--
Don''t forget to rate the post if it was helpful!
Email address is not valid.
Please reply to newsgroup only.