I have a sub routine that needs to be able to do the same calculations to a number of different fields, depending on what button the user clicks.
Right now it's hard coded:
Me!Name.Value = Me![70].Column(1) & " " & Me![70].Column(2)
How can I make that 70 a variable passed to the routine so I doin't have to simply rewrite the routine 13 times and hardcode each different one?
I hope this makes sense...
Right now it's hard coded:
Me!Name.Value = Me![70].Column(1) & " " & Me![70].Column(2)
How can I make that 70 a variable passed to the routine so I doin't have to simply rewrite the routine 13 times and hardcode each different one?
I hope this makes sense...