pada CR:
- buat sebuah formula, beri nama (misal JumlahMarried, jumlahSingle), langsung disave (tidak perlu menuliskan apapun didalamnya)
- Letakkan field Formula diatas ke layout laporan anda sesuai dengan posisi yg diinginkan...
pada VB:
- buat sebuah recordset.
- gunakan query untuk mendapatkan data yg ingin ditampilkan pada CR (misalnya rsHitungRecord).
- buat sebuah variable untuk menampung jumlah record yg didapat dari rsHitungRecord.Recordcount. (misal: jumlahRec)
- passing nilai jumlahRec ke formula JumlahMarried, JumlahSingle, dst... dengan cara sbb:
With crLap
.DataFiles(0) = DBPath
.ReportFileName = App.Path & "\report\Lap.rpt"
.WindowShowSearchBtn = True
.Formulas(1) = "JumlahMarried='" & CStr(jumlahRec) & "'" '<--- disini.. Ulangi untuk jumlahSingle, dst
.WindowState = crptMaximized
.Action = ""> End With
semoga membantu...
regards,
LiveDeviL
On 12/13/05, p3_tib2001 <[EMAIL PROTECTED]> wrote:
kalo ga salah, mungkin bisa menggunakan formula di CR. selamat
mencoba :)
-Petry-
Untuk keluar dari millis ini, kirim email kosong ke:
[EMAIL PROTECTED]
YAHOO! GROUPS LINKS
- Visit your group "Programmer-VB" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
--
There's no teacher who can teach us anything new...
They just help us to remember the things we always knew...
Untuk keluar dari millis ini, kirim email kosong ke:
[EMAIL PROTECTED]
YAHOO! GROUPS LINKS
- Visit your group "Programmer-VB" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
