Julia,
Can you explain more precisely how you are doing this. Do you record a cpt code at the encounter when you administer the flu shot (I don't know the right code; G0008 perhaps)? Then do a two line query, one for patients seen in the month in question, and the second for those with that code?