Hi,
Im using such procedure on my form to filtering dates to raport:
Private Sub wyswietlraport Click()
Dim i As Integer
Dim Indexgorny As Integer
Dim warunek As String
Dim klienci() As String
If bpolewyboru = True Then
For I = 0 To Lstklienci.List Count - 1
If Lstklienci.Sele cted(i) = True Then
Indexgorny = Indexgorny + 1
ReDim Preserve klienci(1 To Indexgorny)
klienci(Indexgo rny) = "klient = " & "'" &
Lstdyscypliny.C olumn(0, i) & "'"
End If
Next I
warunek = Join(klienci, " Or ")
DoCmd.OpenRepor t
ReportName:="ra portklienci1",
view:=acViewPre view,
wherecondition: =warunek
DoCmd.Close acForm, "frmFiltr1"
End Sub
This procedure is creating date box klient from where I can choose one
or few
value of klient and print report. When I choose a few values raport is
printed
with those (one raport with a few value of klient) But I would like
when I choose a few value of klient raport was printing for each value
separately.
For example when I mark klient1, klient2, klient5 raport is printing
for klient1 value first than klient2 value and klient5. Maybe someone
had similar problem earlier and know how to change procedure so that
to get such posibility.
Thanks for any help
Peter
Im using such procedure on my form to filtering dates to raport:
Private Sub wyswietlraport Click()
Dim i As Integer
Dim Indexgorny As Integer
Dim warunek As String
Dim klienci() As String
If bpolewyboru = True Then
For I = 0 To Lstklienci.List Count - 1
If Lstklienci.Sele cted(i) = True Then
Indexgorny = Indexgorny + 1
ReDim Preserve klienci(1 To Indexgorny)
klienci(Indexgo rny) = "klient = " & "'" &
Lstdyscypliny.C olumn(0, i) & "'"
End If
Next I
warunek = Join(klienci, " Or ")
DoCmd.OpenRepor t
ReportName:="ra portklienci1",
view:=acViewPre view,
wherecondition: =warunek
DoCmd.Close acForm, "frmFiltr1"
End Sub
This procedure is creating date box klient from where I can choose one
or few
value of klient and print report. When I choose a few values raport is
printed
with those (one raport with a few value of klient) But I would like
when I choose a few value of klient raport was printing for each value
separately.
For example when I mark klient1, klient2, klient5 raport is printing
for klient1 value first than klient2 value and klient5. Maybe someone
had similar problem earlier and know how to change procedure so that
to get such posibility.
Thanks for any help
Peter
Comment