Absolutposition digunakan untuk mengetahui posisi record yg terpilih
saat itu dari query yg di jalankan. jadi klo query dari mas sony spt
itu ya jelas akan tampil 0 karena cuman ada 1 record.
dan record yg terpilih adalah record pertama.

maksud untuk mendapatkan no record itu gimana, kurang jelas.

--- In [email protected], sonny marpaung <[EMAIL PROTECTED]> wrote:
>
> Mas2 aku mau tanya bagai mana caranya untuk mendapatkan nomor record?
>   saya untuk konek ke databasenya dengan coding seperti dibawah ini
>    
>   misalnya isi database DB:
>   kd  nama 
>   1    A
>   2    B
>   3    C
>    
>   dim con As New ADODB.Connection
> dim rs As New ADODB.Recordset
>   Public Sub Buka_Con()
>         con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &
App.Path & "\DB.mdb" & _
>                 ";Persist Security Info=False;Jet OLEDB:Database
Password="
> 
>   rs.open("select * from tabel order by kd where kd = 2",cn,1,3)
>   msgbox rs.AbsolutePosisition 'Kenapa hasilnya selalu 0 bukan 2
>   End Sub
> 
> 
> 
> 
>        
> ---------------------------------
> Ahhh...imagining that irresistible "new car" smell?
>  Check outnew cars at Yahoo! Autos.
> 
> [Non-text portions of this message have been removed]
>


Kirim email ke