I am working on an Access DB., I would like to compare two fields and if they match I would like to populates this field with data from a third field. I have tried IIF and work great, but I have to many nested IIF statement.
This is for a workout program for our atheltes. Ex: Johnny has a bench max of 145 lbs. He will use the following workout - 90 , 100, 115. I want the db to compare the workout to another field and then update the Weight on Bar if the workout and field are equal
Table 1 has player and bench max. I created a query of the bench max to produce the workout weight. Table 2 has the weight, say 90lbs, and the amount of weight that should be put on the bar to get to this weight. This table goes from 45 lbs to 650lbs. Johnnys workout weight is 90 lbs so he should put 2 -10's 0o the bar. The cells that are colored are what I want the db to produce.
Hope this makes sense.
Thanks for any help...
Robert