I agree with tehNellie's points on difference bewteen array and recordset.
but actually, there are also similarity . we could not tell which one is better in general, it really depends on the situation encountered.
e.g only--- there is one table
we have frequent comparision and manipulation of non-fix rows and columns, this time using array ( assign every data field to array element, you could have multi-dimensional arrray) would be more flexible as our modification is more towards dynamic. VBA only provide very limited number of functions for recordset to users. Once issue complexity exceeds certain threshold( everybody might have their own threshold value towards the complexity due to experiences, mood, understanding and etc....
but if we just want to simply update every cell of each record( i use cell to represent each data field...), then recordset might be a wise choice.
I would say the recordset is like a sub-collection of the array( do not misunderstand, here i am just talking about the implication, not logical belongingness). equivalent to say, is
the place we could use recordset, we could also use array( though performance may differ), the place we use array, we might not be able to use recordset ( pls correct me if wrong. )
To move load from point A to point B, submarine and car both may be viable. the determining/dominant factor might be the weight of load, the requirement of delivery date, the cost, the weather, the tax.....
Again thanks tehNellie for his/her car and submarine anaglogy, it inspires me thinking those mess above...
but actually, there are also similarity . we could not tell which one is better in general, it really depends on the situation encountered.
e.g only--- there is one table
we have frequent comparision and manipulation of non-fix rows and columns, this time using array ( assign every data field to array element, you could have multi-dimensional arrray) would be more flexible as our modification is more towards dynamic. VBA only provide very limited number of functions for recordset to users. Once issue complexity exceeds certain threshold( everybody might have their own threshold value towards the complexity due to experiences, mood, understanding and etc....
but if we just want to simply update every cell of each record( i use cell to represent each data field...), then recordset might be a wise choice.
I would say the recordset is like a sub-collection of the array( do not misunderstand, here i am just talking about the implication, not logical belongingness). equivalent to say, is
the place we could use recordset, we could also use array( though performance may differ), the place we use array, we might not be able to use recordset ( pls correct me if wrong. )
To move load from point A to point B, submarine and car both may be viable. the determining/dominant factor might be the weight of load, the requirement of delivery date, the cost, the weather, the tax.....
Again thanks tehNellie for his/her car and submarine anaglogy, it inspires me thinking those mess above...