Ciao, avete una qualche idea del motivo per cui la prorpietà Absolute position mi ritorna sempre -1?
Connessione:
obj_rs.Open str_sql, obj_conn,3,3
Do while ....
conta =obj_rs.recordcount
posizione = obj_rs.AbsolutePosition
loop
molte grazie
alex
Ciao, avete una qualche idea del motivo per cui la prorpietà Absolute position mi ritorna sempre -1?
Connessione:
obj_rs.Open str_sql, obj_conn,3,3
Do while ....
conta =obj_rs.recordcount
posizione = obj_rs.AbsolutePosition
loop
molte grazie
alex
Ti posto un pezzo dell'MSDN Microsoft
Specifies the ordinal position of a Recordset object's current record.
Settings and Return Values
Sets or returns a Long value from 1 to the number of records in the Recordset object (RecordCount), or returns one of the following constants.
adPosUnknown The Recordset is empty, the current position is unknown, or the provider does not support the AbsolutePosition property.
adPosBOF The current record pointer is at BOF (that is, the BOF property is True).
adPosEOF The current record pointer is at EOF (that is, the EOF property is True).