Ok ... without getting to detailed ... my approach would be a VBA Function. Basically pull a Recordset filtered to each ItemID. Then test for the existence of the FormStatus for Type "A" and "B". Then issue some logic to determine and set the ItemStatus based on your comments above.
Prehaps another Expert will have something in SQL if you post what you have thus far.
ET