For the func_tanktrain part, make sure you set its' Max Speed (units / second) first.
Then you can change its' current speed with inputs, with the SetSpeedReal input, like SetSpeedReal 128.
Also, post your solution when you say "I came up with an answer to it" I hate when I google something and the last post I see is the OP saying "I found out how to do it."