D
Dkline
SELECT [Data Viewer Table].[Asset Location], [Policy
Inventory].PolicyNumber, [Total Mkt Value by Asset Location].[ALPN ID],
[Data Viewer Table].Program, [Data Viewer Table].InvestmentAccountName,
[Data Viewer Table].Custodian, [Data Viewer Table].[Account Type], [Total
Mkt Value by Asset Location].[SumOfMarket Value], [Policy Inventory].[Issue
Date]
FROM ([Data Viewer Table] LEFT JOIN [Total Mkt Value by Asset Location] ON
[Data Viewer Table].[ALPN ID] = [Total Mkt Value by Asset Location].[ALPN
ID]) LEFT JOIN [Policy Inventory] ON [Data Viewer Table].[Policy Number] =
[Policy Inventory].PolicyNumber
WHERE ((([Data Viewer Table].[Asset Location])<>172 And ([Data Viewer
Table].[Asset Location])<>179) AND (([Policy Inventory].[Issue
Date])<=[Enter Effective Date]));
When this query is run, the parameter query for the date is asked twice. Why
it asks twice is amystery to me.
The odd thing here is when I edit the query and then run it, it only asks
for the date once. Run the query again and it asks twice.
The objective of the query is to get all the records where the [Asset
Location] <> 172 AND <> 179 AND the [Issue Date] is less than the parameter.
So:
1. Regardless of [Issue Date] we don't any [Asset Location] = 172 or 179.
2. Regardless of [Asset Location] we don't want anything with an effective
[Issue Date] before parameter [Enter Effective Date]
I just can't get it to work without having to enter the parameter twice.
Inventory].PolicyNumber, [Total Mkt Value by Asset Location].[ALPN ID],
[Data Viewer Table].Program, [Data Viewer Table].InvestmentAccountName,
[Data Viewer Table].Custodian, [Data Viewer Table].[Account Type], [Total
Mkt Value by Asset Location].[SumOfMarket Value], [Policy Inventory].[Issue
Date]
FROM ([Data Viewer Table] LEFT JOIN [Total Mkt Value by Asset Location] ON
[Data Viewer Table].[ALPN ID] = [Total Mkt Value by Asset Location].[ALPN
ID]) LEFT JOIN [Policy Inventory] ON [Data Viewer Table].[Policy Number] =
[Policy Inventory].PolicyNumber
WHERE ((([Data Viewer Table].[Asset Location])<>172 And ([Data Viewer
Table].[Asset Location])<>179) AND (([Policy Inventory].[Issue
Date])<=[Enter Effective Date]));
When this query is run, the parameter query for the date is asked twice. Why
it asks twice is amystery to me.
The odd thing here is when I edit the query and then run it, it only asks
for the date once. Run the query again and it asks twice.
The objective of the query is to get all the records where the [Asset
Location] <> 172 AND <> 179 AND the [Issue Date] is less than the parameter.
So:
1. Regardless of [Issue Date] we don't any [Asset Location] = 172 or 179.
2. Regardless of [Asset Location] we don't want anything with an effective
[Issue Date] before parameter [Enter Effective Date]
I just can't get it to work without having to enter the parameter twice.