Relate field that will pop up the filtered search

Hi,

I want to bring the filtered search on a relate field.

My custom module is in relationship with accounts module.

The relate field on my custom module should be able to get the filtered search of accounts based on account status (if account status = Active, show only those records from the relate field) 

please help