/* */

Wednesday, July 29, 2009

[belajar-access] Re: Belajar Access

----- Original Message -----
From: "suprememgs" <hendragunadi@gmail.com>
To: <belajar-access@yahoogroups.com>
Sent: Wednesday, July 29, 2009 11:08 AM
Subject: [belajar-access] Re: Belajar Access


Coba pake ADO

Dim rst as new adodb.recordset
Set rst = new adodb.recordset

Rst.open "select noid,nama, alamat from identitas where noid ='"&
form_form1.text0 &"' ", CurrentProject.Connection, adOpenStatic,
adLockOptimistic

Jika hanya 1 data saja bisa lgs anda masukkan ke textbox misal
Me.txtnama = rst!nama
Me.txtalamat = rst!alamat

Jika lebih dr 1 maka anda harus pilih salah satu data ato bisa seperti ini

Rst.movefirst
Do while not rst.eof
(masukkan kode untuk menulis data anda ke listbox ato combobox dll disini)
Rst.movenext
Loop

semoga membantu

---
In belajar-access@yahoogroups.com, GALIH PERSADHA <galih_persadha@...>
wrote:
>
> mohon pencerahannya :
>
> saya menggunakan perintah pada form sebagai berikut
>
> strsql ="select noid,nama, alamat from identitas where noid ='"&
form_form1.text0 &"' "
>
> bagaimana untuk memasukkan data yang telah diambil dengan cara diatas
supaya bisa masuk kedalam text yang ada di form.
>
> misalnya
>
> Nama : (berisi nama yang diambil dari strsql diatas)
> Alamat : (berisi nama yang diambil dari strsql diatas)
>
>
> terima kasih atas pencerahannya
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
___________________________________________________________________________
> Dapatkan alamat Email baru Anda!
> Dapatkan nama yang selalu Anda inginkan sebelum diambil orang lain!
> http://mail.promotions.yahoo.com/newdomains/id/
>


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

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:
mailto:belajar-access-digest@yahoogroups.com
mailto: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