James, Ypu need to terminate the macro expression with a "." then add another one for the reference i.e &LCBDF..fieldname
Also Have you tried Evaluate(LCBDF+".fieldname") which is faster Dave Crozier -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of James E. Harvey Sent: 13 June 2006 20:06 To: 'ProFox Email List' Subject: Table and field name reference in report How do you refer to a table that is assigned a name created with the sys(2015) function, in the report designer? This is a report with two data groupings and two detail bands Code example***** LCDBF = sys(2015) && mares Select mare, name from mastmare into table &lcdbf nofilter Report form hsrp_mare to print prompt preview *** ?lcdbf _1TQ0VTZ0K Syntax error: &lcdbf.name && data grouping &lcdbf.mare && Expression in field properties Syntax error: &lcdbf + .name && data grouping &lcdbf + .mare && Expression in field properties &lcdbf + '.mare' syntax error &lcdbf + (.mare) syntax error Property mare is not found (lcdbf) + .mare (lcdbf) + (.mare) (lcdbf) + '.mare' returns literal "_1TQ0VTZ0K.mare" on the report. Jim James E. Harvey Corresponding Officer/M.I.S. Hanover Shoe Farms, Inc. www.hanoverpa.com [EMAIL PROTECTED] 717-637-8931 fax: 717-637-6766 [excessive quoting removed by server] _______________________________________________ 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 ** 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.

