I've got code shown below which shows a stkhistory report. This report either shows all stock items or stock items stock items in a certain group. These groups are pick by the operator selecting a group from a listbox, no problem. Problem I have is if the operator wants to show 2 or 3 groups but not all of them.
I can easily pick up chosen groups but how would I make my report show these chosen groups. I know I could use stkrecord = 1 or stkrecord = 2 etc but the operator could pick two groups 3, 4 or indeed any amount of groups.
Thanks
IF ChosenDept = 0
REPORT FORM StkHistory ;
PREVIEW FOR STKRECORD.DEPT != 9999
ELSE
REPORT FORM StkHistory ;
PREVIEW FOR STKRECORD.DEPT = ChosenDept
ENDIF
I can easily pick up chosen groups but how would I make my report show these chosen groups. I know I could use stkrecord = 1 or stkrecord = 2 etc but the operator could pick two groups 3, 4 or indeed any amount of groups.
Thanks
IF ChosenDept = 0
REPORT FORM StkHistory ;
PREVIEW FOR STKRECORD.DEPT != 9999
ELSE
REPORT FORM StkHistory ;
PREVIEW FOR STKRECORD.DEPT = ChosenDept
ENDIF