My delimma is that I'm trying to build a querydef on the fly in vba to run as odbc to connection to oracle. Our oracle data base has a table named case which is casing me problems in connecting. Here is the query.
"Select case.case_num, case.Case_defendant & _
"From [Prod.case_public_party_rel], [Prod.Case] " & _
"Where case_public_party_rel.party_id = 99261 " & _ and case.case_id = case_public_party_rel.case_id "
Case_id is a key in the Case table and a foreign key in the case_public_party_rel table.
the query def looks like this after the create statement:
SELECT case.case_num, case.Case_defendant
FROM Prod.case_public_party_rel, Prod.[case]
WHERE party_id = 99261 and case.case_id = case_public_party_rel.case_id
The extra bracket around case is giving me the headache Prod.[case]
anyone have similar issues?
"Select case.case_num, case.Case_defendant & _
"From [Prod.case_public_party_rel], [Prod.Case] " & _
"Where case_public_party_rel.party_id = 99261 " & _ and case.case_id = case_public_party_rel.case_id "
Case_id is a key in the Case table and a foreign key in the case_public_party_rel table.
the query def looks like this after the create statement:
SELECT case.case_num, case.Case_defendant
FROM Prod.case_public_party_rel, Prod.[case]
WHERE party_id = 99261 and case.case_id = case_public_party_rel.case_id
The extra bracket around case is giving me the headache Prod.[case]
anyone have similar issues?
Last edited: