Let Ω ⊂ ℝn be a bounded open set. If a sequence fk : Ω → ℝN converges to f in L∞ in a certain "controlled" manner while bounded in W1,p (1 < p < + ∞) or BV, we show that f ∈ W1,p (respectively, f ∈ BV) and ∇fk → ∇f almost everywhere, where ∇fk and ∇f are the usual gradients if fk ∈ W1,p (respectively, the absolutely continuous part of the gradient measures if fk ∈ BV). Our main theorem generalizes results for Lipschitz mappings. We show by an example that when p = 1, the limit of a sequence of increasing functions may fail to be in W1,1 and can even be nowhere C1.