A scheme is presented for generating any anticorrelated state of a two-mode field.In the scheme a sequence of suitably prepared three-level V-type atoms are sent across a two-mode cavity initially in the vacuum state.The detection of all the atoms in the ground state collapses the two-mode field to the desired state.