to use in criteria form object you have to declare it in
Design tab ---> parameter ----> show/hide Group -----> Parameters
you will find 2 columns
write in the first column your object you want in criteria like this [forms]![class]![id]
in the second column the data type like text or interger...