One more thing though. Here is my SQL. Is there a way to calculate the difference between the two dates in a fourth column?
testconnString = "Select recseq," +;
" (Select CASE WHEN checkerd is NULL THEN DATE(current_date) ELSE checkerd END" +;
" From webprddt6.drawmext3 Where recseq = dwgindex) As f2," +;
" CASE WHEN dayofweek(ftdate) = 1 THEN DATE(ftdate - 10 days)" +;
" WHEN dayofweek(ftdate) = 2 THEN DATE(ftdate - 11 days)" +;
" WHEN dayofweek(ftdate) = 3 THEN DATE(ftdate - 11 days)" +;
" WHEN dayofweek(ftdate) = 4 THEN DATE(ftdate - 9 days)" +;
" WHEN dayofweek(ftdate) = 5 THEN DATE(ftdate - 9 days)" +;
" WHEN dayofweek(ftdate) = 6 THEN DATE(ftdate - 9 days)" +;
" WHEN dayofweek(ftdate) = 7 THEN DATE(ftdate - 9 days)" +;
" END As ftdate" +;
" From webprddt6.resmngta3d Where projindex = 710"