The Joint Distribution of Record Values and Inter-Record Times