Hi Flossie2003,
I have tried this before but wasn't able to get a concrete solution, since this is one of the limitations for SharePoint querying. A workaround you can proceed with, if you are dealing with a few forms, is a hide and show technique for the repeating table on your InfoPath form. If you are dealing with a lot of forms, then a codeless approach I would suggest is by promoting the month and year as separate columns. This way you could filter your query by month and year, which should only return the filtered values. Does this make sense?
Regards,