> I have a report form that works great as long as PREVIEW is one of the >options. > > REPORT FORM PARKLST1 TO PRINTER PROMPT NOCONSOLE PREVIEW > > If I remove the PREVIEW option then I get an error: > > "Function argument value, type, or count is invalid" > > So why does the report work fine if PREVIEW ?
If executing a BROWSE right before the report runs fixes the problem, then the problem has to be that the table/cursor you're BROWSING isn't in scope when the report runs. Either that or it's a detail table and it's at EOF when the report runs for printing but not for preview. Are you using private data sessions and perhaps the form from which the preview is called is in a different data session from the form where the print option is called? Ken Dibble www.stic-cil.org _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

