Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Datenbanken (https://www.delphipraxis.net/15-datenbanken/)
-   -   Delphi Access Formular drucken (https://www.delphipraxis.net/124590-access-formular-drucken.html)

dietermuc 21. Nov 2008 14:11

Datenbank: ACCESS • Version: 2003 • Zugriff über: TAccessApplication

Access Formular drucken
 
Hi there,

ich möchte ein in Access bestehendes Formular drucken. Wie folgt gehe ich vor:

AccessApplication1.Connect;

AccessApplication1.Visible := False;

AccessApplication1.OpenCurrentDatabaseOld( cFileName, True );

AccessApplication1.DoCmd.OpenReportOld0('kal_druck ',acViewNormal,
'qryprotokoll', 'TTD_NR = 124 AND Kalibrier_ID = 3' );

So, Access wird geöffnet. Es erscheint eine Sicherheitsabfrage von Access, die ich aber nicht will.

Danach fragt Access nach Parametern, obwohl ich diese bereits angegeben habe ('TTD_NR = 124 AND Kalibrier_ID = 3').

Was mache ich hier falsch?

Danke für einen Hinweis!

MFG

Dieter


Alle Zeitangaben in WEZ +1. Es ist jetzt 23:16 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz