If your different Textbox contains only value of Month and Year only then It is feasible. If you Textbox contains full Date then you also need to convert then Either that in a month or Year accordingly, Otherwise comparison will not be done.
Or as an alternate you could use DATEDIFF
] function which will give timespan in days,month or year between two dates and furthermore you could compare whether it is between valid range or not.
and Accept Answer
if it Helped.