When doing the test in a form with a private data session it is always shown as in use because it is in use in the 1st data session. Is there anyplace in the form code can be run before the form selects the private data session?You can use code like this in the form's Init():
lnDS_ID = SET( "DATASESSION" )
SET DATASESSION TO 1
IF USED( "WhatEver" )
ENDIF
SET DATASESSION TO lnDS_ID