Hi All
 
I would like to pass a Dataset name to a Quick Report but am not sure how to go about this.
 
I have something like:
 
with QueryDataModule.Query1 do
    begin
      Close;
      DatabaseName := MainForm.DatabaseName;
      SQL.Clear;
      SQL.Add('Select stuff from Tables);
      Open;
    end;
    Application.CreateForm(TBCInv, BCInv);
    if OutMode = 'Screen' then BCInv.Report.Preview
          else BCInv.Report.Print;
 
What I want to do is pass QueryDataModule.Query1 to BCInv on this occaision
and some other dataset to it on another occaision.
 
Has anyone some code snippets that demonstrate this?
 
TIA
 
Mark
 
BEGIN:VCARD
VERSION:2.1
N:Howard;Mark
FN:Mark Howard
ORG:Forest Production Systems Ltd
TEL;WORK;VOICE:(07) 348 8177
TEL;CELL;VOICE:(021) 477564
TEL;WORK;FAX:(07) 348 8178
ADR;WORK:;;P.O.Box 5155;Rotorua
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:P.O.Box 5155=0D=0ARotorua
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20010502T215128Z
END:VCARD

Reply via email to