John,
>>lcFileName = '030PH38D'
>>lcOrder = 'DESC'
I think you mean lcIndexName?
Anyways, notice the first character is zero. That causes the error. If you test with lcIndexName = '_30PH38D' the &lcIndexName will work. You probably never got a number for the first character until 2000.