Rather than looping through the recordset populating the array why not use getrows to populate the array, that way it will create an array to the required size no matter how many records are returned. e.g.
Code:
'build recordset
SelectProperty ="SELECT * from propertyinfo where P_area='Aston';"
set objrec = objConn.Execute(SelectProperty)
'check recordset is not empty
if not (objrec.eof or objrec.bof)
'get number of records
p_info_count = objrec.recordcount
'build array
p_info = obrec.getrows()
end if
'close recordset
objrec.close
set objrec = nothing
-- This message may have been cut off and the rest will only be shown to members. To become a member, click here --