If you have an auto lens you can't use the f-stop adjustments on the lens itself. They have to be set to minimum. What I do is set the camera to A and then set the aperature with the dial. Then I can set the camera for S so I can set the shutter speed with the dial.

If you have a manual lens, in M you can set the aperature on the lens.