C
Craig
Kind of a weird one but here goes.
We have an Excel spreadsheet that contains a table to display mileage values
between sites. Each column in the top row has a name for a site and the first
column of each row has a name of a site. The names across and down are the
same so the cell where the same site intersects itself has an "X" since there
is no mileage value departing and arriving at the same place. Using this
table we can figure out how far we traveled by scanning across the top row
for a site we departed from, scanning down the first column for a site we
arrived at, and then using the value in the cell where the two sites
intersect each other as the mileage.
My question is, how do I descibe this data in a way I can use it in
Infopath. I have a drop down box for departing and a drop down box for
arriving and a text box for the mileage value betwixt the two sites. I want
to populate the fields of each dropdown box to correspond to a site from the
row or column and use the value as the row or column identifer. Then I want
text box to use the values from the two drop down boxes to find where the row
and coumnn intersects and use the value of that cell as the value of the text
box.
If I were writing a program I would have a two-dimensional array recursively
search the first row and first column to get an index value of the one which
matches the site, and then use the index values as a coordinate point in the
array to pull the value I need.
I have the data, I just don't know how to descibe it since it is not your
typical column/recordset table.
Does this make sense? Imagine a mileage chart like this:
http://www.hm-usa.com/distance/usa.html
Any help would be appreciated.
Thanks
We have an Excel spreadsheet that contains a table to display mileage values
between sites. Each column in the top row has a name for a site and the first
column of each row has a name of a site. The names across and down are the
same so the cell where the same site intersects itself has an "X" since there
is no mileage value departing and arriving at the same place. Using this
table we can figure out how far we traveled by scanning across the top row
for a site we departed from, scanning down the first column for a site we
arrived at, and then using the value in the cell where the two sites
intersect each other as the mileage.
My question is, how do I descibe this data in a way I can use it in
Infopath. I have a drop down box for departing and a drop down box for
arriving and a text box for the mileage value betwixt the two sites. I want
to populate the fields of each dropdown box to correspond to a site from the
row or column and use the value as the row or column identifer. Then I want
text box to use the values from the two drop down boxes to find where the row
and coumnn intersects and use the value of that cell as the value of the text
box.
If I were writing a program I would have a two-dimensional array recursively
search the first row and first column to get an index value of the one which
matches the site, and then use the index values as a coordinate point in the
array to pull the value I need.
I have the data, I just don't know how to descibe it since it is not your
typical column/recordset table.
Does this make sense? Imagine a mileage chart like this:
http://www.hm-usa.com/distance/usa.html
Any help would be appreciated.
Thanks