How to filter lookup on a UDF based upon a value from another UDF

I have created two UDF's on the sales order header and I have created a UDT for each of the UDF's so that the values can be validated for each of the UDF's.  What I want to do is restrict the lookup of the second UDF based upon the value selected from the first UDF.  The situation is that we want to be able to define the source of the order using the first UDF and then the second UDF further describes the source of the order.  I created a UDT that contains the values for UDF1 and I have a second UDT that contains the values for UDF2 and a second field in that UDT that links back to the first UDT with the thought that I could subset the lookup of the second UDF based upon the first UDF that was selected.  Is there a way to call the lookup for the second UDF filtering the look based upon the first UDF.  I would be calling the lookup from Sales Order Entry.