I have searched this site for an answer to my question, so if I overlooked something or didn't use the right key words, forgive me.
Here's my problem: I am using VB6 and I am trying to connect to an Oracle database. My SQL is restricted with date ranges, the standard Start and End, but I am getting an error.
The WHERE clause looks like this:
"WHERE ((Account_Detail.Account_Start_Date) >= to_date('11/03/2002','mm-dd-yyyy') AND (Account_Detail.Account_Start_Date) <= to_date('11/09/2002','mm-dd-yyyy')) AND ((Organization.Region_Num)='04') AND ((Organization.District_Num)='74')"
The error that comes back reads:
"Unsupported query syntax"
My connection object looks like this:
oConn.ConnectionString = "Provider=MSDASQL.1;Persist Security Info=False;User ID=; Data Source=MyDSN ;Extended Properties='DSN=MyDSN'"
For the life of me, I just can't see it. I need someone from the outside to clue me in. Where am I going wrong? Thank you.
Here's my problem: I am using VB6 and I am trying to connect to an Oracle database. My SQL is restricted with date ranges, the standard Start and End, but I am getting an error.
The WHERE clause looks like this:
"WHERE ((Account_Detail.Account_Start_Date) >= to_date('11/03/2002','mm-dd-yyyy') AND (Account_Detail.Account_Start_Date) <= to_date('11/09/2002','mm-dd-yyyy')) AND ((Organization.Region_Num)='04') AND ((Organization.District_Num)='74')"
The error that comes back reads:
"Unsupported query syntax"
My connection object looks like this:
oConn.ConnectionString = "Provider=MSDASQL.1;Persist Security Info=False;User ID=; Data Source=MyDSN ;Extended Properties='DSN=MyDSN'"
For the life of me, I just can't see it. I need someone from the outside to clue me in. Where am I going wrong? Thank you.