How to set dependencies?

How to set dependencies?

When I go into the dependency view and try and enter the task number of the predecessor it will not save in the task.  Do I need to set something up to do that?

Thanks!

John