An ophthalmic apparatus for examining an examinee's eye, comprising: an optometry part including an observation optical system configured to observe an anterior segment of the examinee's eye and an examination optical system (30, 200, 300) configured to obtain examination information of the examinee's eye; drive means (6, 49, 124a) configured to drive the optometry part in a direction of an examination optical axis with respect to the examinee's eye; drive control means configured to control driving of the drive means; and display means including a touch panel; image output means configured to output an anterior-segment image of the examinee's eye photographed by the observation optical system to the display means, characterized by further comprising detection means (70, 75b) configured to, in the display means on which the anterior-segment image output by the image output means is displayed, detect at least one of a change in relative distance between at least two designated points (Q1, Q2; R1, R2) designated on the the touch panel when the designated points are relatively moved and a rotating amount of at least two designated points (Q1, Q2; R1, R2) designated on the touch panel, the touch panel being configured to allow designation of any position in an operational region set on a screen of the display means, wherein the drive control means is configured to perform drive control in which, when relative movement of at least the two designated points is detected by the detection means, the optometry part is driven in a direction of an optical axis based on at least one of the change in relative distance between and the rotating amount of at least the two designated points (Q1, Q2; R1, R2) detected by the detection means. an optometry part including an observation optical system configured to observe an anterior segment of the examinee's eye and an examination optical system (30, 200, 300) configured to obtain examination information of the examinee's eye; drive means (6, 49, 124a) configured to drive the optometry part in a direction of an examination optical axis with respect to the examinee's eye; drive control means configured to control driving of the drive means; and display means including a touch panel; image output means configured to output an anterior-segment image of the examinee's eye photographed by the observation optical system to the display means, characterized by further comprising detection means (70, 75b) configured to, in the display means on which the anterior-segment image output by the image output means is displayed, detect at least one of a change in relative distance between at least two designated points (Q1, Q2; R1, R2) designated on the the touch panel when the designated points are relatively moved and a rotating amount of at least two designated points (Q1, Q2; R1, R2) designated on the touch panel, the touch panel being configured to allow designation of any position in an operational region set on a screen of the display means, wherein the drive control means is configured to perform drive control in which, when relative movement of at least the two designated points is detected by the detection means, the optometry part is driven in a direction of an optical axis based on at least one of the change in relative distance between and the rotating amount of at least the two designated points (Q1, Q2; R1, R2) detected by the detection means.