Doesn't a passed variable in Query require a colon?
e.g. FIELD1 EQ :VAR
HTH
Dan Rasch - because if the human species concentrated on the really
important things in life, there would be a shortage of fishing poles!
IBM Certified twice....... but still a couple PTFs away from Nirvana.