Kod:
DoCmd.OpenReport "R_MAKBUZ", acViewPreview
DoCmd.PrintOut acPrintAll, , , , 3
DoCmd.Close acReport, "R_MAKBUZ"
bu probelmı nasıl gecebılırım ?
DoCmd.OpenReport "R_MAKBUZ", acViewPreview
DoCmd.PrintOut acPrintAll, , , , 3
DoCmd.Close acReport, "R_MAKBUZ"
DoCmd.OpenReport "R_MAKBUZ", acViewPreview
DoCmd.PrintOut acPrintAll, , , , 3
DoCmd.Close acReport, "R_MAKBUZ"
DoCmd.OpenReport "R_MAKBUZ", acViewPreview
DoCmd.PrintOut acPrintAll, , , , 3, True
DoCmd.Close acReport, "R_MAKBUZ"
DoCmd.OpenReport "R_MAKBUZ", acViewPreview
DoCmd.PrintOut acPrintAll, , , , 3, False
DoCmd.Close acReport, "R_MAKBUZ"
Private Sub Ayrıntı_Print(Cancel As Integer, PrintCount As Integer)
SayfaSayisi = Me.Pages
End Sub
Option Compare Database
Option Explicit
Global SayfaSayisi As String
Public Function HarmanlamadanYazdir(KopyaSayisi, RaporAdi As String)
Dim SayfaNumarasi, SayfaYazdir As Integer
DoCmd.OpenReport RaporAdi, acViewPreview
DoCmd.Close acReport, RaporAdi
For SayfaNumarasi = 1 To SayfaSayisi
For SayfaYazdir = 1 To KopyaSayisi
DoCmd.SelectObject acReport, RaporAdi, True
DoCmd.PrintOut acPages, SayfaNumarasi, SayfaNumarasi
Next SayfaYazdir
Next SayfaNumarasi
End Function
Call HarmanlamadanYazdir(2, "TBL_KONUT")
Call HarmanlamadanYazdir([mtn_kopyasayisi], "TBL_KONUT")