I think your problem is the space in this line after the ampersand: .BB & DAYSEQ(2)=2 should be .BB &DAYSEQ(2)=2 Nathan