Filtering Out options from a LookUp field
Hi Everyone
Trying to make a form with a lookup field that will only show things in the Lookup field that do NOT already have a tracking number associated with them in the original report
- //once Sample has a US tracking number
- //that Sample should never again show up in the SampleLookup (named Samples_Included)
- //
- //so clear the lookup field
- clear Samples_Included;
- //get all possible Sample_ID_Descriptions from the Original form
- FetchID = Sample_Order_Form[ID != 0].Sample_ID_Description;
- //for all records in the oringal form that have NOTHING in the Tracking to US field, add their Sample_ID_Descriptions to the Samples_Included lookup field
- for each Sample in Sample_Order_Form [ Tracking_to_US_Office == null ]
- {
- Samples_Included.add(FetchID);
- }
In the form, it just shows "No Matches Found"
Any assistance?
Thanks!!!