Information générale
Catégorie:
Gestionnaire de rapports & Rapports
>>In a frmRepByEmp, I have set up for the user to make an employee selection from cboEmpNo and a date range selection from txtBegDate and txtEndDate. The ControlSources for txtBegDate and txtEndDate are memory variables mBegDate & mEndDate, respectively.
>>
>>When in the Report Designer, I notice that the Data Environment is not the same as it is in the Form I have set up to call this report from. Consequently, field name listings are not availble. Also, mBegDate & mEndDate are not available.
>>
>>Is there something I can do about this at design time in the Report Designer, or do I just go ahead and reference fields and variables that the Report Designer doesn't know about at design time? TIA, CH.
>
>[...]
>
>Another option is to declare mBeDate and mEndDate public (or applicaton object properties) and build your cursor in the INIT of the report (to see the methods/properties open the DE, right-click and choose Properties).
Another workaround for displaying form properties in a report is:
PUBLIC MYFORM
MYFORM=THISFORM
*
* in the report, include MYFORM.mBeDATE, MYFORM.mEndDate, and so on
*
MYFORM=.NULL.
RELEASE MYFORM
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement