rgates,
1- Add attribute Orders.DetailCount
2- Add rule to Orders:
FIND OrderDetails WHERE OrderDetails.OrderInfo=Orders
Orders.DetailCount=COUNT OrderDetails WHERE (OrderDetails.OrderInfo=Orders)
3- In the Orders query, add an applicabilty condition:
Orders.DetailCount>=1
The Edit link will now appear only if OrderDetails exists for an Order.
You can also rename the Edit link to another name if you'd like.
Tom