Melissa Weber wrote: > <cfif qryHighestNum.RecordCount is 0> > <cfset NextReqNumber = 1> > <cfelse> > <cfset NextReqNumber = #qryHighestNum.HighestNumber# + 1> > </cfif> > > It's because the query HAS a recordcount every time, I think - and it's returning " " as the result.
So instead of <cfif qryHighestNum.RecordCount is 0> try <cfif Len(qryHighestNum.HighestNumber)> or <cfif IsNumeric(qryHighestNum.HighestNumber)>. Also you don't need the pound signs in <cfset NextReqNumber = #qryHighestNum.HighestNumber# + 1> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:268113 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

