Hi,
I'm trying to slim down some of the code I've got and have a process that is massivly repetative (the update line would drop from 20 lines *6 currencies =120 lines to just 2 lines..)
What I'd like to do is replace the month number and the currency (GBP is this example) with a variable (example on first line of update)
Is it possibe to do this and what is the syntax?
Thanks,
Mark
I'm trying to slim down some of the code I've got and have a process that is massivly repetative (the update line would drop from 20 lines *6 currencies =120 lines to just 2 lines..)
What I'd like to do is replace the month number and the currency (GBP is this example) with a variable (example on first line of update)
Code:
With rstCCYRates
rstReuters.MoveFirst
'Do Until rstReuters.EOF
.AddNew
!DATE = DATE
Select Case strCCY
Case "GBP"
![& int+1 & mnth] = rstReuters![ & strCCY & ]
![2 mnth] = rstReuters![GBP]
![3 mnth] = rstReuters![GBP]
![4 mnth] = rstReuters![GBP]
![5 mnth] = rstReuters![GBP]
![6 mnth] = rstReuters![GBP]
![7 mnth] = rstReuters![GBP]
![8 mnth] = rstReuters![GBP]
![9 mnth] = rstReuters![GBP]
![10 mnth] = rstReuters![GBP]
![11 mnth] = rstReuters![GBP]
![12 mnth] = rstReuters![GBP]
![2 YR] = rstReuters![GBP]
![3 YR] = rstReuters![GBP]
![4 YR] = rstReuters![GBP]
![5 YR] = rstReuters![GBP]
![6 YR] = rstReuters![GBP]
![7 YR] = rstReuters![GBP]
![8 YR] = rstReuters![GBP]
![9 YR] = rstReuters![GBP]
![10 YR] = rstReuters![GBP]
Is it possibe to do this and what is the syntax?
Thanks,
Mark