And now for something completely different….

Well its been ages since I have posted, I could list out the excuses but my gym teacher in high school used to always say “Excuses only satisfy those that make them”.  Perhaps a bit of a bitter view on life, but let’s be honest who really cares about the reasons?  Everyone has problems of their own in one way or another.

Lately I have been pounding pavement pretty hard on the job search front, so much so that I have even opened up my searching range to include relocation to a better part of the US.  Who knows where that will take me, or if I end up staying right where I am, perhaps I should visit a fortune teller and see.

In any event I am actually in the office today, for those of you that do not know we are working on a lowered hours schedule, which isn’t ideal – but there are a number of people in the company that are down to zero hours so it could be worse.  In any event I just had a WTF Moment, and had to post about it, so here goes.  This comes from an Access 97 – so quite a few years of band-aid fixes and development I am sure, but this one takes the cake

If DepartDate > #12/1/2008# Then
RunIndReport "HDetails", "Cancel", "HotelVoucher Report Batch"
RunIndReport "HDetails", "Cancel", "HotelVoucher Report Batch_SSS&GCT"
Else
RunIndReport "HDetails", "Cancel", "HotelVoucher Report Batchold"
RunIndReport "HDetails", "Cancel", "HotelVoucher Report Batch_SSS&GCT"
End If

so if Departure is after December 1st, do the exact same thing if its not….amazing!

3 Responses to “And now for something completely different….”

  1. From someone, as you know, who also has to develop in Access 97 occasionally…notice the little addition of “old” to the end of line 5.

    Though clearly the second lines (3 and 6) could be brought out of the if statement…but maybe that’s just me being picky.

    Then again, maybe this was written back when programmers were paid per code line, lol! ;)

  2. wow, i swear i re-read this block 3 times and was convinced it was exactly the same – nice catch, at this point the second part of the IF would never be hit again but it was pre dec 2008 that they made the change i guess

    i still hate access, even if I was wrong [:)]

  3. lol, that’s why pair programming is a good idea! (If only my Agile Development lecturer could hear me now) ;)

    On a side note, where’d you get the cool code block gadget for the blog? It looks real nice! :)

Leave a Reply

Get Adobe Flash playerPlugin by wpburn.com wordpress themes