is there another way to shorten this? as you can see there is only one line difference between the select statements. thank you so much. help is very much appreciated. IF @fdDateFrom IS NOT NULL BEGIN SELECT fxKeyBill, fxKeySupplier, fxKeyCompany, fxKeyTerms, fcMemo, fdTransDate, fnAmountDue, fdDueDate, fcRefNo, fbBillReceived, fbBillType, fuCreatedby, fdDateCreated, fuUpdatedby, fdDateUpdated, fdDiscDate, fbPosted, fbDeleted, fdCount, fcCVNo, fbPrinted, fdAmttoPay, fdCreditAmt, fdDiscountAmt, fcReviewed, fcReferenceNo, fcCenterCode, fcAPVno, fxKeyPayBills, fcType, fbPaid FROM tBills WHERE fxKeyCompany = @fxKeyCompany AND fdTransDate BETWEEN @fdDateFrom AND @fdDateTo ENDELSE BEGIN SELECT fxKeyBill, fxKeySupplier, fxKeyCompany, fxKeyTerms, fcMemo, fdTransDate, fnAmountDue, fdDueDate, fcRefNo, fbBillReceived, fbBillType, fuCreatedby, fdDateCreated, fuUpdatedby, fdDateUpdated, fdDiscDate, fbPosted, fbDeleted, fdCount, fcCVNo, fbPrinted, fdAmttoPay, fdCreditAmt, fdDiscountAmt, fcReviewed, fcReferenceNo, fcCenterCode, fcAPVno, fxKeyPayBills, fcType, fbPaid FROM tBills WHERE fxKeyCompany = @fxKeyCompany END