bastanu
AWF VIP
- Local time
 - Today, 05:36
 
- Joined
 - Apr 13, 2010
 
- Messages
 - 1,406
 
Something like this should work (Dcount on that query would tell you if there are records returned or not):
Cheers,
 IIF(dCount("*","QSalesQuotationItemAcc","OrderID = " & OrderID) =0,>0,< DMin("POSITION","QSalesQuotationItemAcc","OrderID = " &OrderID))Cheers,