but... if I " set datasession to liAnotherDS " i got the error "cannot access the selecte table " and ... if I ignore the error everything seems going right....
MoreOver, if I try to access the form again I got no error. !!!!
Maybe some temporary cursor ??!!???
>Property DatasessionID on form is Read/Write. You can change its value in Load() or Init()
>
>Or You can use command SET DATASESION TO ...
>
>form::any_method(liAnotherDS)
>LOCAL liDSIDOld
>liDSIDOld=m.This.DataSessionID
>IF liAnotherDS>=0
> SET DATASESSION TO liAnotherDS
>ENDIF
>** any code
>
>SET DATASESSION TO (liDSIDOld)
>RETURN
>
>
>
>MartinJ
>
>>then? :-)
>>how can I impose a diferent datasession for that form ?
>>
>>>>but isn't the datasession property of a form available only at design time ?
>>>Yes datasession property of a form is available at design time and read-only at run time.