Mike
"...can't ... get this to work ..." could mean a lot of things.
Does it run but return incorrect values?
Does it fail to run and gives an error message (it would be helpful to know
what that message says)?
Does it cause your PC to begin smoking?
A bit more specific description will probably lead to more specific
suggestions.
(what are you expecting to have happen if your [DETAIL_LINE_AMT] is Null or
empty?)
--
Regards
Jeff Boyce
www.InformationFutures.net
Microsoft Office/Access MVP
Microsoft IT Academy Program Mentor
http://microsoftitacademy.com/