A
andre
I am running a query in Access and I am getting a syntax
error in my JOIN clause. A little background on the odd
SELECT query in the JOIN. I have two tables one called
Accounting, the other called tblDSScenarioResultsPublish.
Accounting does not have a PortfolioID but does have a
CUST_ID. tblDSScenarioResultsPublish has PortfolioID but
not CUST_ID. The Portoflios table correlates the two
(PortfolioID AND Cust_ID). Here is my query:
SELECT ShockedData.*
FROM Accounting
INNER JOIN ShockedData ON
((SELECT PortfolioID FROM Portfolios WHERE ShName =
Accounting.Cust_ID)=ShockedData.PortfolioID)
AND (Accounting.Cusip=ShockedData.Cusip) AND
(Accounting.Lot=ShockedData.Lot)
WHERE (ShockedData.Scenario = -300) AND (Accounting.BkYld
(Accounting.AvgLife Between 3 AND 6)
The odd thing is that this query runs perfectly on MS SQL
Server. But will not run on linked tables in Access. Is
there a way around this issue?
Thanks a lot,
brazilnut
error in my JOIN clause. A little background on the odd
SELECT query in the JOIN. I have two tables one called
Accounting, the other called tblDSScenarioResultsPublish.
Accounting does not have a PortfolioID but does have a
CUST_ID. tblDSScenarioResultsPublish has PortfolioID but
not CUST_ID. The Portoflios table correlates the two
(PortfolioID AND Cust_ID). Here is my query:
SELECT ShockedData.*
FROM Accounting
INNER JOIN ShockedData ON
((SELECT PortfolioID FROM Portfolios WHERE ShName =
Accounting.Cust_ID)=ShockedData.PortfolioID)
AND (Accounting.Cusip=ShockedData.Cusip) AND
(Accounting.Lot=ShockedData.Lot)
WHERE (ShockedData.Scenario = -300) AND (Accounting.BkYld
AND (Accounting.CurrFace >= 1000000) AND= 4.5)
(Accounting.AvgLife Between 3 AND 6)
The odd thing is that this query runs perfectly on MS SQL
Server. But will not run on linked tables in Access. Is
there a way around this issue?
Thanks a lot,
brazilnut