I have set a parameter @MasterInvoiceID as string in crystal report, And add a formula to select report according to the .MasterInvoiceID
len({?@MasterInvoiceID})= 0