Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multi-Part Identifier Could Not Be bound 1

Status
Not open for further replies.

FireGeek21

Technical User
Dec 12, 2007
218
US
I have a SQL Expression (not a command) to bring in a field and I am getting an error "Multi-Part Identifier Could Not Be Bound". Any thoughts? Here is my SQL Expression:

(SELECT PAPOSITION.DEPARTMENT
FROM PROD.dbo.PAPOSITION
WHERE PROD.dbo.PAPPOSITION.EFFECT_DATE < MAX(PROD.dbo.PAPOSITION.EFFECT_DATE)-1
and PROD.dbo.PAPOSITION.R_POSITION = HRHISTORY.A_VALUE
and PROD.dbo.PAPOSITION.COMPANY = HRHISTORY.COMPANY
)

PAPOSITION is a table not in the report. HRHISTORY is a table in the report. I have done SQL Expressions before like this but not where I am trying to grab the second most recent EFFECT_DATE.

Thougts???

FireGeek
(currently using Crystal Reports XI with Lawson 9.01)
 
I have experienced this myself and could never work out what the problem was, other than it most often occurred when using table aliases.

Ken Hamady posted this blog last year. I have not had a the opportunity to test it but having used Ken's tips many times I am sure it would work:

Link

Will be interested to see if it helps.

Cheers
Pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top