/* */

Wednesday, March 16, 2011

[belajar-access] Re: Menghapus Duplikat Data

1. Buat Form
2. tambahkan command Button
3. property, pilih event, klik ganda event [on click]
4. tambahkan kode sbb :

Private Sub CommandDelete_Click()
On Error GoTo errorLabel
DoCmd.SetWarnings off

DoCmd.RunCommand acCmdDeleteRecord
Exit Sub

errorLabel:
MsgBox Err.Description
End Sub

5. Simpan Form
6. Opne form yang dibuat
7. tampilkan record yang akan di delete
8. klik tombol [delete record] yang dibuat


Selamat berkarya

'============

--- In belajar-access@yahoogroups.com, him mah <himmah.mlg@...> wrote:
>
> misal saya punya tabel seperti ini
>
> KODE NAMA
> A1 ABC
> A2 BDC
> A1 EFG
> A1 HIJ
>
> dari tabel diatas untuk KODE A1 terdapat tiga record
> yang jadi pertanyaan saya
> bagaimana cara menghapus data yang double sehingga yang ditampilkan
> cuma satu saja (menghapus dua data lainnya)
>
> terima kasih
>


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

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