أَحْمَدُ and أَحْمَدَ show that Aḥmad has different inflected forms.
جَاءَ أَحْمَدُ: Aḥmad is the nominative subject.
رَأَيْتُ أَحْمَدَ: Aḥmad is the accusative object.
مَرَرْتُ بِأَحْمَدَ: Aḥmad is genitive but marked with fatḥa.
Unlike an indeclinable noun, a diptote responds to changes in syntactic government.