Nominative: جَاءَ أَحْمَدُ — subject with ḍamma.
Accusative: رَأَيْتُ أَحْمَدَ — object with fatḥa.
Genitive: مَرَرْتُ بِأَحْمَدَ — genitive noun with fatḥa.
Aḥmad changes syntactic case but never takes tanwīn here. Accusative and genitive look alike at the ending yet have different grammatical causes.