Wednesday, December 15, 2010

Re: Bls: [belajar-access] Ask : filter pada combo

terima kasih banyak sebelumnya bang,

sebenarnya datanya itu cukup banyak jg tidak seperti yg saya contohkan, kalo menggunakan relasi antar table company dan unit itu seperti apa bang bisa share...terima kasih (saya akan coba yg tambahan coding td)

--- In belajar-access@yahoogroups.com, GALIH PERSADHA <galih_persadha@...> wrote:
>
> mungkin ini bisa membantu.
>
> jadi pada combo company bisa ditambahkan perintah sbb :
>
>
> Private Sub company_AfterUpdate()
> 'ASM =ASM, AIP=TSE & PSE, TMP=MG1,MG2.MGF (combobox)
> If Me.company.Column(1) = "ASM" Then
> Me.unit.RowSource = "select* from tbl_unit where unit='ASM'"
> ElseIf Me.company.Column(1) = "AIP" Then
> Me.unit.RowSource = "select* from tbl_unit where unit='TSE' or
> unit='PSE'"
> Else
> Me.unit.RowSource = "select* from tbl_unit where unit='MG1' or
> unit='MG2' or unit='MGF'"
> End If
> End Sub
>
>
> sebenarnya kalau data yang digolongkan cuman sedikit sih tidak ada masalah
> menggunakan cara diatas
> tetapi kalau data yang digolongkan jumlahnya banyak saran saya lebih baik
> dihubungkan antara tabel company dan tabel unitnya.
>
> semoga bisa membantu
>
>
>
>
> ________________________________
> Dari: ephot cr <ephot_independent@...>
> Kepada: belajar-access@yahoogroups.com
> Terkirim: Ming, 12 Desember, 2010 08:24:59
> Judul: [belajar-access] Ask : filter pada combo [1 Attachment]
>
>
> [Attachment(s) from ephot cr included below]
> Tolong bantuannya
>
> Saya ada database asset :
> Filed :
> assetid
> location : HOJKT, ROBJB,ROPKU (combobox)
> company : ASM,AIP,TMP (combobox)
> unit : ASM =ASM, AIP=TSE & PSE, TMP=MG1,MG2.MGF (combobox)
>
> Pertanyaan :
> 1. Bagaimana cara ketika saya pilih combobox company maka pada combobox unit
> sudah terfilter sesuai info diatas
> 2. Bagaimana cara clear record ketika button save selesai di tekan
>
> berikut saya kirimkan databasenya
>
> terimakasih banyak sebelumnya,
>
> ephot
>


------------------------------------

SPAM IS PROHIBITEDYahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/belajar-access/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/belajar-access/join
(Yahoo! ID required)

<*> To change settings via email:
belajar-access-digest@yahoogroups.com
belajar-access-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
belajar-access-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/

No comments:

Post a Comment