>PARAMETERS nProjectID >LOCAL nGrpCount, llResult > >llResult = INDEXSEEK(nProjectID, .T., 'Projects', 'ProjectID') >IF NOT llResult > MESSAGEBOX('Project not found in Projects table') > RETURN .F. >ENDIF >>
PARAMETERS nProjectID LOCAL nGrpCount, llResult llResult = .F. IF NOT llResult MESSAGEBOX('Project not found in Projects table') RETURN .F. ENDIFIf this fires then you are not picking up the expected value for your parameter.