I can't believe it but I don't have a clue how to update a table using VBA!
What I'm trying to do is:
1) Do a search on the last 3 periods turnover for one client in particular and check to see if they are all over 60k
2) Go to a table which states rebate rates for each client and change that one clients rate based on whether they are over or under 60k for the 3 months
I'm assuming for part 1, I'd have to set up a 3 record array and have a SQLquery feed the results of a check for the last 3 months turnover into it, and then check each part of the array for the 60k mark.
Then part 2 I would have to update the relevant field. Although I'm not entirely sure how to go and pinpoint that record and update it.
Point out any flaws with my part 1 assumption. Thats how I believe I'd do it.
What I'm trying to do is:
1) Do a search on the last 3 periods turnover for one client in particular and check to see if they are all over 60k
2) Go to a table which states rebate rates for each client and change that one clients rate based on whether they are over or under 60k for the 3 months
I'm assuming for part 1, I'd have to set up a 3 record array and have a SQLquery feed the results of a check for the last 3 months turnover into it, and then check each part of the array for the 60k mark.
Then part 2 I would have to update the relevant field. Although I'm not entirely sure how to go and pinpoint that record and update it.
Point out any flaws with my part 1 assumption. Thats how I believe I'd do it.
Comment