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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Where Clause in Pass Through Query

Status
Not open for further replies.

tledwards

Programmer
Feb 4, 2003
86
US
This is my first time useing a pass-through query but this problem does not any since to me. I am attaching to an Oracle database. Here a simplified version of my SQL statement.

SELECT CONTRACTS.ADMIN_BY_CAO
FROM OLAP_OWNER.CONTRACTS
WHERE CONTRACTS.ADMIN_BY_CAO = "YL"

When I run it I get an 'ORA-00904 - invalid column name' error message. If I take out the where clause it runs. Of course I get all the records which I don't want. I have tried other field names in the where clause with the same results.

Thanks for your help.
Terry

 
Replacing the " " double quotes with single quotes 'YL' should do it.

You're not alone,

TomCologne
 
Tom,
You were correct. All the examples and when Access creates SQL have double quotes.

Thanks,
Terry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top