untuk tahun formatnya apa yah ? string kah ????
coba tanda # di ganti dengan single kutip '

strwhere = "Tahun Between '" & Form_Report.cbo1.Value & "' And '" &
Form_Report.cboEndYear.Value & "'"

mudah2 an berhasil

----- Original Message ----- 
From: Ichsan Fadhilah
To: [email protected]
Sent: Wednesday, September 12, 2007 3:17 PM
Subject: [belajar-access] Re: Report Filter


thanks bang tapi masih ga ke filter juga niyh alias tampil
semua,,padahal aku masukin dua-duanya tahun 2007 eh yang 2008 muncul
juga..

mohon bantuannya lagi bang..

strwhere = "Tahun Between #" & Form_Report.cbo1.Value & "# And #" &
Form_Report.cboEndYear.Value & "#"
DoCmd.OpenReport "ReportCulture", acViewPreview, strwhere

--- In [email protected], "eCHa" <[EMAIL PROTECTED]>
wrote:
>
> coba ini :
> 'strwhere = "Tahun Between #" & Form_Report.cbo1.Value & "# And #" &
> Form_Report.cboEndYear.Value & "#"
>
> ----- Original Message ----- 
> From: Ichsan Fadhilah
> To: [email protected]
> Sent: Wednesday, September 12, 2007 1:02 PM
> Subject: [belajar-access] Report Filter
>
>
> Teman2 gimana ya cara untuk memfilter tahun report dari form..saya
> udah nyoba ko ga bisa2..saya ingin dengan cmdClick
>
> keterangan: cbo1= Tahun Awal
> cboEndYear= Tahun Akhir
>
> yang sudah saya coba:
>
> 'strwhere = "Tahun Between " & Form_Report.cbo1.Value & " And " &
> Form_Report.cboEndYear.Value & ""
> 'DoCmd.OpenReport "ReportCulture", acViewPreview, strwhere
> OUTPUT: tidak terfilter(semua tampil)
>
> strWhere = "[Tahun] Between " & cbo1 & " And " & cboEndYear & ""
> DoCmd.OpenReport "ReportCulture", acViewPreview, , strWhere
> OUTPUT: BLANK(tidak Tampil)
>
> DoCmd.OpenReport "ReportCulture", acViewPreview, , "Tahun between "
&
> cbo1.Value & " and " & cboEndYear.Value & ""
> OUTPUT:blank
>
> sebagai info kalau ditulis gini bisa:
> 'DoCmd.OpenReport "ReportCulture", acViewPreview, , "[Tahun] = 2007"
>
> jadi saya rasa bukan masalah penulisan filed "Tahun" nya
> satu lagi:
> dan field Tahun sebagai Group Primer dari Report
>
> terima kasih buat bantuannya.
>


 

Kirim email ke