I have a problem with an sql statement that uses the function to_number. The query is used with an rdo connection to an Oracle 8 database. I am using VB6.
One suggestion that was made was that the ODBC driver I am using doesn't support the to_number functionality. Does anyone know which one does? Or how to find that information out?
I am at a loss for how to solve the problem.
here is the query:
sqlCAP = "select prod_id, prod_num, item_num, " _
& " release_date, prod_status " _
& "from PRODUCTS " _
& "where prod_id = '" & RSprod_id!Issn & "' " _
& "and current_prod = 'Y' " _
& "order by to_number(prod_num) desc, " _
& "to_number(item_num) desc "
Set RSCAP = DB.OpenResultset(sqlCAP, rdOpenKeyset, rdConcurRowver)
I am able to run the exact query in Oracle and it does the job but not in vb6. Can someone please help?
One suggestion that was made was that the ODBC driver I am using doesn't support the to_number functionality. Does anyone know which one does? Or how to find that information out?
I am at a loss for how to solve the problem.
here is the query:
sqlCAP = "select prod_id, prod_num, item_num, " _
& " release_date, prod_status " _
& "from PRODUCTS " _
& "where prod_id = '" & RSprod_id!Issn & "' " _
& "and current_prod = 'Y' " _
& "order by to_number(prod_num) desc, " _
& "to_number(item_num) desc "
Set RSCAP = DB.OpenResultset(sqlCAP, rdOpenKeyset, rdConcurRowver)
I am able to run the exact query in Oracle and it does the job but not in vb6. Can someone please help?