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

error with the syntax of the sql statement

Status
Not open for further replies.

kavya

Programmer
Feb 21, 2001
83
US
My actual sql statement is following.

sqlstr3 = "select file_num, filing_date from filing inner join company on
filing.cik = company.cik where company.cik = '" & rs1.Fields("cik") & "'"
And filing.doc_type_code = "BD"

Let me explain what I am doing.
I want to select the filing number, filing date from filing table where
filing.cik = company.cik and where form.filing says 'BD'

Thanks in advance

 
dear kavya,

try this

select file_num, filing_date from filing inner join company on
filing.cik = company.cik where company.cik = '" & rs1.Fields("cik") & "'
And filing.doc_type_code = "BD"

I deleted a " behind : & rs1.Fields("cik") & "'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top