Coba coding seperti di bawah ini, semoga membantu
If OTgl.Value = True Then
Rpt.SelectionFormula = "{rekap_pembayaran.tglbayar} = #" &
Format(Tgl.Value, "mm/dd/yyyy") & "#"
Rpt.Formulas(0) = "periode= '" & Format(Tgl.Value, "dd/mm/yyyy") &
"'"
ElseIf OBulan.Value = True Then
Rpt.SelectionFormula = "month({rekap_pembayaran.tglbayar}) = " &
Bulan.Month & "and year({rekap_pembayaran.tglbayar})= " & Bulan.Year
Rpt.Formulas(0) = "periode= '" & Format(Bulan.Value, "mmmm/yyyy") &
"'"
ElseIf OTahun.Value = True Then
Rpt.SelectionFormula = "year({rekap_pembayaran.tglbayar})= " &
Tahun.Year
Rpt.Formulas(0) = "periode= '" & Tahun.Year & "'"
End If
----- Original Message ----
From: Lilis Suryani <[EMAIL PROTECTED]>
To: [email protected]
Sent: Thursday, March 15, 2007 8:50:45 AM
Subject: [indoprog-vb] parameter crystal report via VB
hallo mas dan mbak programer,
saya mau nanya nih. kalo mau bikin parameter crystal
report, tapi kodingnya di form nya vb gmn ya?
(databasenya pake access misalnya).
contohnya : saya mau buat parameter berdasarkan bulan
tahun.
ok semoga ada yg baik hati utk menolong sy.
lis
____________ _________ _________ _________ _________ _________ _
We won't tell. Get more on shows you hate to love
(and love to hate): Yahoo! TV's Guilty Pleasures list.
http://tv.yahoo. com/collections/ 265
____________________________________________________________________________________
Looking for earth-friendly autos?
Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.
http://autos.yahoo.com/green_center/
[Non-text portions of this message have been removed]