OnLookup trigger of a textbox

I have a field that has its table relation set to the primary key of a master table. The master table has a list form set to use for Lookups to it. I want to filter the list of records only when the lookup is done from a specific form. Is this possible? Thanks Keith Reichert NCSD

Hi, Any code that you write in OnLookup trigger will replace standard Lookup functionality. It means you can set any filters for Lookup form in OnLookup trigger. You can see example of such code in codeunit 230 GenJnlManagement, function LookupName. This function called every time when user select batch name in any Journal form. (OnLookup trigger for Batch Name control). Valentin Gvozdev BMI Inc.