jclonts, Hold on, I don't think you're out of the woods yet!
You have no WHERE in your SQL statement. That will give you the sum of all the volume removed from all your wells.
so if you had a total of 10, 15 and 20 gallons removed from well 1, that would be 45. Then from well Two, 5 and 20 gallons for 25 gallons. Instead of return 25 on well Two, you will 10 + 15 + 20 + 5 + 20 = 70.
Also, I assume that you are using the ObjectID for your relates. . .
slcemcphee33,
I assume that you are making your own Primary/Foreign Key "NewKey" that you store in the value Stand? I haven't reached that point yet. I am still using the ObjectID for my relationships which is scary in my opinion. The problem is that I can't figure out how to get the AXF_OBjectID for the current point to use in my WHERE statement. If you use fields(AXF_OBJECTID), it won't return anything. I may have to just turn to using my own keys...