Also you can -- if you set your text boxes up as an Array of textboxes -- could use a For Loop
n = number fields in a record
For i=1 to n
text(i).text = datagrid1.coloumn(i).value
Next i
But in either case its best to call a function to do it since I imagine you might be filling those textboxes over and over again and its always better to have the code external to an event (click) in most cases keeping the code for an event very very simplistic and helping keep your code much more portable
--- On Sun, 9/26/10, vry_conan@yahoo.com <vry_conan@yahoo.com> wrote:
> From: vry_conan@yahoo.com <vry_conan@yahoo.com>
> Subject: Re: [Access VBA Central] visual basic 6
> To: AccessVBACentral@yahoogroups.com
> Date: Sunday, September 26, 2010, 6:44 PM
> Maybe like this : text1.text =
> datagrid1.coloumn(O).value
> text2.text = datagrid1.coloumn(1).value
> Sent from my BlackBerry® smartphone from Sinyal Bagus XL,
> Nyambung Teruuusss...!
>
> -----Original Message-----
> From: "sawaaj" <sawaaj@yahoo.com>
> Sender: AccessVBACentral@yahoogroups.com
> Date: Sun, 26 Sep 2010 19:29:04
> To: <AccessVBACentral@yahoogroups.com>
> Reply-To: AccessVBACentral@yahoogroups.com
> Subject: [Access VBA Central] visual basic 6
>
> Hi all
> i want to know on how can i simply display the data in
> datagrid in the textbox.for example the user will click on
> one item in the datagrid and then all the data from the row
> will be displayed in each of the textbox that i've assign
> for each of the fields in the recordset.help me.
>
>
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
> AccessVBACentral-fullfeatured@yahoogroups.com
>
>
>
Tecnologia, programação e muito Visual FoxPro.
segunda-feira, 27 de setembro de 2010
Re: [Access VBA Central] visual basic 6
__._,_.___
.
__,_._,___
Assinar:
Postar comentários (Atom)
Arquivo do blog
-
▼
2010
(3087)
-
▼
setembro
(227)
- Re: ]] XL-mania [[ Create autonumber menggunakan m...
- ]] XL-mania [[ Mencari tanggal transaksi terakhir ...
- Re: ]] XL-mania [[ hapus spasi data dari file vba
- Re: ]] XL-mania [[ Mencari tanggal transaksi terak...
- Re: ]] XL-mania [[ menampilkan makanan hewan pelih...
- Re: ]] XL-mania [[ Create autonumber menggunakan m...
- Re: ]] XL-mania [[ Mencari tanggal transaksi terak...
- Re: ]] XL-mania [[ Koding dari 2 digit depan.
- Re: ]] XL-mania [[ hapus spasi data dari file vba
- Re: ]] XL-mania [[ menampilkan makanan hewan pelih...
- Re: ]] XL-mania [[ Saat di Unmerge, cell terisi se...
- Re: ]] XL-mania [[ Koding dari 2 digit depan.
- Re: ]] XL-mania [[ Mencari tanggal transaksi terak...
- Re: ]] XL-mania [[ Mencari tanggal transaksi terak...
- Re: ]] XL-mania [[ Koding dari 2 digit depan.
- Re: ]] XL-mania [[ Koding dari 2 digit depan.
- Re: ]] XL-mania [[ Mencari Nilai Akar pangkat n da...
- Re: ]] XL-mania [[ Converter PDF to Exel
- RE: ]] XL-mania [[ Mencari Nilai Akar pangkat n da...
- ]] XL-mania [[ Saat di Unmerge, cell terisi semua...
- Re: ]] XL-mania [[ Pencarian Data
- ]] XL-mania [[ menampilkan makanan hewan peliharaan
- Re: ]] XL-mania [[ Pengurangan Otomatis Pada Lapor...
- Re: ]] XL-mania [[ Create autonumber menggunakan m...
- ]] XL-mania [[ Mencari tanggal transaksi terakhir ...
- Re: ]] XL-mania [[ Mencari Nilai Akar pangkat n da...
- ]] XL-mania [[ Koding dari 2 digit depan.
- ]] XL-mania [[ Create autonumber menggunakan makro...
- ]] XL-mania [[ Converter PDF to Exel
- ]] XL-mania [[ Pengurangan Otomatis Pada Laporan Bank
- ]] XL-mania [[ Mencari Nilai Akar pangkat n dari S...
- Re: ]] XL-mania [[ Pencarian Data
- ]] XL-mania [[ hapus spasi data dari file vba
- Re: ]] XL-mania [[ mencari rata2 tanpa kolom helpe...
- Re: ]] XL-mania [[ banyak request untuk macro
- Re: ]] XL-mania [[ Mencari rata rata multyple Sheet
- Re: ]] XL-mania [[ banyak request untuk macro
- ]] XL-mania [[ Re: what the hell 'Excel Gemini' is..
- ]] XL-mania [[ Mencari rata rata multyple Sheet
- Re: ]] XL-mania [[ Pencarian Data
- ]] XL-mania [[ what the hell 'Excel Gemini' is..
- [Access VBA Central] MS Access Login form
- Re: ]] XL-mania [[ .::: detect Computer Name dari ...
- Re: ]] XL-mania [[ mencari rata2 tanpa kolom helpe...
- ]] XL-mania [[ banyak request untuk macro
- Re: [Access VBA Central] visual basic 6
- Re: [Access VBA Central] visual basic 6
- ]] XL-mania [[ visual basic di excel 2010
- Re: ]] XL-mania [[ Pencarian Data
- Re: ]] XL-mania [[ Bikin Data excel dinamis di word
- RE: ]] XL-mania [[ Menentukan bulan/tanggal/jam/me...
- Re: [Access VBA Central] visual basic 6
- Re: ]] XL-mania [[ .::: detect Computer Name dari ...
- Re: ]] XL-mania [[ Pencarian Data
- [Access VBA Central] visual basic 6
- Re: ]] XL-mania [[ .::: detect Computer Name dari ...
- Re: ]] XL-mania [[ .::: detect Computer Name dari ...
- Re: ]] XL-mania [[ treanline linear pada grafik
- Re: ]] XL-mania [[ .::: detect Computer Name dari ...
- Re: ]] XL-mania [[ Menentukan bulan/tanggal/jam/me...
- Re: [usuarios_fox] anexo 20 del 23 de septiembre E...
- Re: [usuarios_fox] anexo 20 del 23 de septiembre E...
- Re: [usuarios_fox] anexo 20 del 23 de septiembre E...
- [Access VBA Central] HR System
- Bls: ]] XL-mania [[ .::: detect Computer Name dari...
- Re: ]] XL-mania [[ cara menghitung payment secara ...
- ]] XL-mania [[ Formula untuk History
- RE: ]] XL-mania [[ Menentukan bulan/tanggal/jam/me...
- Re: ]] XL-mania [[ Menentukan bulan/tanggal/jam/me...
- [usuarios_fox] Validacion de CFD aplicando digesti...
- ]] XL-mania [[ treanline linear pada grafik
- ]] XL-mania [[ Pencarian Data
- [usuarios_fox] anexo 20 del 23 de septiembre Estan...
- Re: ]] XL-mania [[ Menentukan bulan/tanggal/jam/me...
- Re: ]] XL-mania [[ Mengembalikan Sheet Yang terdelete
- ]] XL-mania [[ cara menghitung payment secara ming...
- Re: ]] XL-mania [[ Bagaimana Cara menampilkan data...
- Re: ]] XL-mania [[ mencari rata2 tanpa kolom helpe...
- Re: ]] XL-mania [[ Missing : Microsoft Windows com...
- ]] XL-mania [[ Menentukan bulan/tanggal/jam/menit ...
- Re: ]] XL-mania [[ .::: detect Computer Name dari ...
- Re: ]] XL-mania [[ .::: detect Computer Name dari ...
- ]] XL-mania [[ Bikin Data excel dinamis di word
- Bls: ]] XL-mania [[ date & time dari mesin absensi
- ]] XL-mania [[ Mengembalikan Sheet Yang terdelete
- ]] XL-mania [[ Bagaimana Cara menampilkan data ses...
- Re: ]] XL-mania [[ .::: detect Computer Name dari ...
- Re: ]] XL-mania [[ input car maintenance record
- Re: ]] XL-mania [[ input car maintenance record
- Re: ]] XL-mania [[ .::: detect Computer Name dari ...
- ]] XL-mania [[ mencari rata2 tanpa kolom helper gi...
- Re: ]] XL-mania [[ .::: detect Computer Name dari ...
- ]] XL-mania [[ Missing : Microsoft Windows common ...
- ]] XL-mania [[ input car maintenance record
- ]] XL-mania [[ .::: detect Computer Name dari xls ...
- Re: ]] XL-mania [[ Perbandingan yang (menurutku) A...
- Re: ]] XL-mania [[ rumus pengurang saldo di part. ...
- Re: ]] XL-mania [[ Perbandingan yang (menurutku) A...
- Re: ]] XL-mania [[ Perbandingan yang (menurutku) A...
- Re: ]] XL-mania [[ date & time dari mesin absensi
-
▼
setembro
(227)
Nenhum comentário:
Postar um comentário