Coba pake ADO misal dim rsData as new ADODB.Recordset dim x as integer
set rsData = new ADODB.Recordset rsData Open <nama_tabel>, <connection_string>, adOpenStatic, adLockOptimistic, adCmdTable x = rsData.Fields.Count --- Syamsoel Hidayat <[EMAIL PROTECTED]> wrote: > > --- In [email protected], Harto > <[EMAIL PROTECTED]> wrote: > > long dong... > > > > Saya mau cari jumlah/banyaknya field dalam sebuah > table. Apa > fungsinya > > ya di VB or di Access2000..?? > > contoh: Table KARYAWAN, terdiri dari field2 : > NOMOR,NAMA,ALAMAT. > > So, Fungsi_tsb(KARYAWAN)=3 > > > > thx ya.. > > sekedar menanggapi... > > mungkin yang dimaksud adalah > > misal: > > anda memiliki 1 table dan terdapat 1 textbox, dan > satu textbox itu sebagai penampung dari jumlah > field. > > coba tuliskan pada form_load(...) > > text1.text=rs.recordset.recordcount > > end sub > > > > --------------------------------- > Start your day with Yahoo! - make it your home page __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com Untuk keluar dari millis ini, kirim email kosong ke: [EMAIL PROTECTED] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/Programmer-VB/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
