HTML <--------JavaScript-----------> MS Access.

In my below DB connection, I can access DB retrieved data with in Recordset.
But I cant access values out of rs.

```
var cn_dub = new ActiveXObject("ADODB.Connection");
var str1_dub="P:\\Mydb.mdb";
var strConn_dub = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source = "+str1_dub+";"; 
cn_dub.Open(strConn_dub); 
var rs_dub = new ActiveXObject("ADODB.Recordset"); 
var SQL ="select * from table1";
rs_dub.Open(SQL, cn_dub);
while (!rs_dub.EOF ) { 
    StatusCode_arr_db = rs_dub("statusCode");   
                alert("1-->"+StatusCode_arr_db);    
    rs_dub.MoveNext();      
}
alert("2-->"+StatusCode_arr_db);
rs_dub.Close();
cn_dub.Close();

```

Now alert("2-->"+StatusCode\_arr\_db); --> having empty value. 
But alert("1-->"+StatusCode\_arr\_db); --> having value

how can I get value in alert("2-->"+StatusCode\_arr\_db); 

Thanks in Advance