Link to home
Start Free TrialLog in
Avatar of pjordanna
pjordanna

asked on

Two Select Statements in an ActiveX DTS script

Hi Experts,

I use the following code in an activeX script following a select statement

          if rs.bof or rs.eof then noOrders = true
          if noOrders then
          Main = DTSTaskExecResult_Success
          End if
          if not noOrders then.... etc

My problem is that I'd like to add in another select statement further down the script and i don't want to have the message that it's been a success if the first query returns has an eof/bof....

Anyone think of a way around it?

Many Thanks
ASKER CERTIFIED SOLUTION
Avatar of Jay Toops
Jay Toops
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I not sure I understand exactly what your asking...
could u clarify.?

JAY
Avatar of pjordanna
pjordanna

ASKER

thanks Jay yes - if i get an eof on the first select I want it to skip to the next select statement rather than returning a DTSTaskExecResult_Success
Then this is just what you want??? <Smile>

let me know if you have any problems

JAY
you're right of course Jay - my code is breaking else where but i'll post another question for that - thanks for your help - have a good weekend!
you too!
JAY ..

PS.. thanks THAT grade just got me my MASTER level certificate... !!!!
https://www.experts-exchange.com/M_3415762.html

ALRIGHT!!!