select printnow report form ... to print/preview ...You are also talking about a second level form? I assume this to be for order details. One view is for the order header information (sold to who, address, order total, etc) and line item information (based on order number, what items and quantities were ordered).
*/ Header view create view OrderHeader as; select * from orders; where ordernum = ?CurOrder */ Detail view create view OrderDetails as; select * from details; where ordernum = ?CurOrder */ Then you can use like normal tables... CurOrder = 27 && or whatever the order # is use OrderHeader select 0 use OrderDetailsThis is to assume that both tables have a key field called ordernum and there is a variable available called "CurOrder" of the same data type for the order you wish to be viewing. In the above example, you can now run the report starting with the details file and using the alias prefix for fields desired from the header file in the report.