Thanks Tarwin,
Your exactly right of course, did that and it worked a treat. Now all I have
to do is to figure out how to paginate a 2 dimensional array
Each solution creates a new set of problems
Thanks for your reply
Colin
"Tarwn" <> wrote in message
news:15962655-38D4-4CB7-98E1-...
> > Public Property Set Recordset (cRecordset)
> > Set i_rs = New cRecordset
> > End Property
>
> You maybe confusing things here. You have declared that the property
expects
> you to assign it an object that you will call cRecordset, but then inside
the
> property you try to instantiate a cRecordset object. I'm not entirely sure
> what is going to happen, but I can tell this isn't what you were trying to
> achieve.
>
> If you are trying to pass an existing recordset to the object you might
ant
> to go with something like:
>
> Public Property Set Recordset(aRecSet)
> Set i_rs = aRecSet
> End Property
>
> this will assign the incoming assigned recordset to your internal
recordset
> variable.
>
> If your trying to have the objDbase object instantiate and return a new
> Recordset object you may want to createa seperate function or property to
do
> so. Something like:
> Function GetNewRecordset()
> Set GetNewRecordset = New cRecordset
> End Function
>
>
> You would not needto use the new keyword in your calling code, that is
> handled here internally, so basically your code would look like:
>
> Set rsObj = objDBase.GetNewRecordset()
>
> Hope this was what you were looking for,
>
> -T