Report with variable data source

I have two different query components, with the same data structure. I need to build a report that uses the right query according to the grid selected on MainForm. eg. fields like [MainForm.QueryList1."RecNo"] OR [MainForm.QueryList2."RecNo"].
How do I do that?

OR

I have a Query component called QueryToUse, which is az runtime delphi componenet, that points dinamically to the right query. How can I use this component in my reports?

D?¤nke in advance!
Eddie

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 2:35AM
    point the report's databand's data source tto a different frdbdatasource
    or point the frdbdatset to a different query.
    in either case when you load report you will probably have to write code to modify contents of memos in the databands, using the find object method. or at least clear the one's where the field is not available,
    ;)

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.