Hello all,
I am trying to evaluate two fields in a table at the same time depending on what I have in each field. I will try to explain. I have a TO field and a FROM field each contains a number. What I would like to do is look at the TO field for a record and then look at the FROM field for a particular record that matchs that number and then keep going until it finishes that pattern. For example, if the TO field has a 1 and FROM field has 2 I would look for the next TO record that contains a 2 then that record has the FROM as 5 then I would look for the TO field that is 5 and so on. The unique ID in the table is FROM field. I have tried this in SQL but could not get it to work and suggestion would be greatly appreciated. Essentially what I am trying to do is create a stream network using access to evaluate different watershed scenerios.
I am trying to evaluate two fields in a table at the same time depending on what I have in each field. I will try to explain. I have a TO field and a FROM field each contains a number. What I would like to do is look at the TO field for a record and then look at the FROM field for a particular record that matchs that number and then keep going until it finishes that pattern. For example, if the TO field has a 1 and FROM field has 2 I would look for the next TO record that contains a 2 then that record has the FROM as 5 then I would look for the TO field that is 5 and so on. The unique ID in the table is FROM field. I have tried this in SQL but could not get it to work and suggestion would be greatly appreciated. Essentially what I am trying to do is create a stream network using access to evaluate different watershed scenerios.