Hi bal,

It's not the TRIM() that's causing the problem - it's the AND(). A single docket number cannot be equal to BOTH "70-97" AND "30-01" at the same time (which is what AND() is asking).

Use:
Code:
AND(
{TransDate}<=QUERYDATE("Enter starting date",DATE(2005,01,01)),
  OR(
  Trim({Docket})="70-97",
  Trim({Docket})="30-01"
  )
)

to check both the date and docket range.
_________________________
Andrew Bates