W
Wembly
Hi,
I want to use DAO to populate the Details section of a
Report, and was wondering if this can be done. The way I
have it now is to create the recordset (embeded SQL) at
the OnOpen event of the Report.
I would then assign the textboxes with rs!fieldname.
This however, does not work.
So, I tried binding the report's RecordSource with the
same SQL at the OnOpen event.
At the DetailsFormat event, I would then assign the
textboxes with the fieldnames. E.g. txtDate = [StartDate]
However, this does not work either. The error message that
displays is: "...can't find the field '|' referred to in
your expression. (2465)".
I'm stuck at the moment. Any help is appreciated.
I want to use DAO to populate the Details section of a
Report, and was wondering if this can be done. The way I
have it now is to create the recordset (embeded SQL) at
the OnOpen event of the Report.
I would then assign the textboxes with rs!fieldname.
This however, does not work.
So, I tried binding the report's RecordSource with the
same SQL at the OnOpen event.
At the DetailsFormat event, I would then assign the
textboxes with the fieldnames. E.g. txtDate = [StartDate]
However, this does not work either. The error message that
displays is: "...can't find the field '|' referred to in
your expression. (2465)".
I'm stuck at the moment. Any help is appreciated.