The SQL statement is below. Everytime I run it I get a bunch of "Enter
Parameter Value" requests for all the fields that contain null values,
even
the ones that I've used NZ on. I'd like to not have to enter "Enter" each
time.
SELECT [qry:Summary Blend Acct].Account, [qry:Summary Blend Acct].[Total
Value] AS Total_Value, Sum(nz([Current_Value],0)) AS Value_of_ETFs,
[qry:Blend Values Fixed].SumOfValue AS Value_of_Bonds, [qry:Blend Values
RYJU/AX/SHY].SumOfValue AS Value_of_Bond_Funds,
nz([Value_of_Bonds],0)+nz([Value_of_Bond_Funds],0) AS Total_Fixed_Income,
[qry:Summary Blend Acct].[Amount Investible] AS Cash_Available,
nz([Value_of_ETFs],0)+nz([Total_Fixed_Income],0)+[Cash_Available] AS
Managed_Funds, [Total_Value]-[Managed_Funds] AS NonManaged_Funds
FROM (([qry:Summary Blend Acct] LEFT JOIN [qry:Blend Values Fixed] ON
[qry:Summary Blend Acct].Account = [qry:Blend Values Fixed].Account) LEFT
JOIN [qry:Blend Values ETF] ON [qry:Summary Blend Acct].Account =
[qry:Blend
Values ETF].Account) LEFT JOIN [qry:Blend Values RYJU/AX/SHY] ON
[qry:Summary
Blend Acct].Account = [qry:Blend Values RYJU/AX/SHY].Account
GROUP BY [qry:Summary Blend Acct].Account, [qry:Summary Blend Acct].[Total
Value], [qry:Blend Values Fixed].SumOfValue, [qry:Blend Values
RYJU/AX/SHY].SumOfValue,
nz([Value_of_Bonds],0)+nz([Value_of_Bond_Funds],0),
[qry:Summary Blend Acct].[Amount Investible],
nz([Value_of_ETFs],0)+nz([Total_Fixed_Income],0)+[Cash_Available],
[Total_Value]-[Managed_Funds];
Ken Snell said:
You'll need to give us more info than this... let's start with the SQL
statement of the query that you want to run and identify which
field/parameter is the one in question.
--
Ken Snell
<MS ACCESS MVP>
I'm trying to have Access enter a default value in queries that have
null
values. I've tried NZ but when running the query it asks me for a
value.
I'd like to not have to hit return repeatedly when running the query.
Any suggestions?