Reg. Finding /using Source SQL

Hi All,
Is there a way to find the source SQL used in any Application …?

I have an issues when i dynamically changing the where condition of the SQL. The issues in one of the the where condition, there is no record returned and trapping RUN TIME error.

I want check the records before change the where clause…

Is that a way to FIND source SQL or Any way to prevent the error when changing the Where dynmically

Regards
Dhana

Re: Reg. Finding /using Source SQL

post your code, how are you doing this … scriptcase has macros to add where clause …

or tray to turn on the debug mode so we can check whats is going on.