Hi there,<BR><BR>I have an application where I need to calculate shipping charges. i.e. if quantity = 2-4 then strShipping = $11.95, 5-7 then strShipping = $14,95, etc. I know just enough about functions to be dangerous. Is there a way to build a function that can be called when the total is being added up for the total that if the oRs("qty")=whatever then shiping = <%=strShipping%><BR><BR>I'd appreciate any thoughts you have. Thanks!