Filter of values in dialog box based on another field in dialog box

Hi All,

How to filter the value in the dialog box with the previous dialog box value in ax 2009.I am getting a dialog box and finally it shows an error.

wrong argument types in variable assignment axapta

how to recover the error and make the report to display.

The error says that you’re trying to put a value of a wrong type to a variable. Use the debugger to see where what value you’re assigning and where.