a method for controlling a transmission of a motor vehicle , especially of an automatic transmission or of an automated manual mechanical transmission . the transmission has hydraulically actuatable shifting elements which , during gear shifts , are engaged or disengaged via pressure curves stored in an electronic control unit . for one gear shift are carried out at least one adaptation of the pressure curves of the shifting elements for compensation of tolerances of components and alternative to this one adaptation for compensation of influences determinant of shifting quality for different shifting strategies and / or shifting kinds , the filling parameters of the engaging shifting elements being determined during the gear shift itself or by preset test pressure curves outside the gear shift .