Narrative:

First officer flying; received ptrim main inoperative EICAS warning as we leveled off. He was hand flying at the time we got the message. He said his trim was not working so I took over the aircraft and noticed my main trim was not working either. We ran the QRH and I decided to continue as pilot flying for the rest of the flight. We landed in ZZZ using the backup trim without issue.

Google
 

Original NASA ASRS Text

Title: EMB-145 Captain reported a pitch trim failure during flight.

Narrative: First Officer flying; received PTRIM MAIN INOP EICAS Warning as we leveled off. He was hand flying at the time we got the message. He said his trim was not working so I took over the aircraft and noticed my main trim was not working either. We ran the QRH and I decided to continue as Pilot Flying for the rest of the flight. We landed in ZZZ using the backup trim without issue.

Data retrieved from NASA's ASRS site and automatically converted to unabbreviated mixed upper/lowercase text. This report is for informational purposes with no guarantee of accuracy. See NASA's ASRS site for official report.