Periksa property Dataset dari QuickRep1
pastikan datasetnya adalah ADOQuery1
atau set saat run time juga bisa, sebelum di preview atur :
Quickrep1.dataset := Form1.ADOQuery1
sekian
xotxc
--- In [EMAIL PROTECTED], "hansw_id" <[EMAIL PROTECTED]> wrote:
>
> dear all
> ada yg pernah pake ADOTable utk mengakses Access ga? saya uda
berhasil
> koneksi, tapi kok pas bikin laporan ga mo muncul ya
>
> saya bikin 2 form. form1 ada tombol utk print. kemudian form2 tuh
qreport.
> di tombol Print form1, saya gunakan coding berikut :
>
> procedure TForm1.Button2Click(Sender: TObject);
> begin
> with Form2.ADOQuery1 do
> begin
> sql.Clear;
> sql.Add('select * from tblID');
> Prepared;
> Open;
> end;
>
> Form2.QRDBText1.Caption:=VarToStr(form2.adoquery1.Fields
[0].AsVariant);
> Form2.QRDBText2.Caption:=form2.ADOQuery1.Fields[1].AsString;
> Form2.QRDBText3.Caption:=form2.ADOQuery1.Fields[2].AsString;
>
> Form2.QuickRep1.Preview;
> end;
>
> nah kok reportnya muncul tapi cuma 1 baris?? harusnya kan looping di
> band Detailnya qreport??
>
> thx berat atas bantuannya :)
Berlangganan: [EMAIL PROTECTED]
Stop Berlangganan: [EMAIL PROTECTED]
Keluhan Milis(Unbouncing,spam,dll): [EMAIL PROTECTED]
| Yahoo! Groups Sponsor | |
|
|
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/Delphindo/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
