Problem keeping moving object in Camera Perspective scene

I’m trying to do a turorial I found here:

I am having trouble keeping the train in the Camera Perspective scene. It will go out of the scene either to the left or right as I try to adjust the camera in the other three windows. Below is a screen shot of what I am talking about (on one end of the camera perspective scene). Does anyone know how I can keep the train in the Camera perspective scene throughout the video?

It looks like a camera clipping problem :
try to select your camera, then in properties panel go to object data tab, there’s two clipping values, one being called start and the other being called end. Increase the end value until you see everything you want in the camera view.
(the start value means the nearest the camera “can see” and end value means the farthest it can see)

Thanks so much. Your directions worked perfectly.