If you have embedded spaces in your variable names, you need to use/enclose with "[" and "]".
eg [Release Date].
Perhaps you should name the function MonthsXX or similar to show you expect Months to be returned.
Eg using Datediff
Code:
Function fGetMonths(releaseDate As Date, TimesheetDate As Date) As Integer
On Error GoTo fGetMonths_Error
fGetMonths = DateDiff("m", releaseDate, TimesheetDate)
On Error GoTo 0
fGetMonths_Exit:
Exit Function
fGetMonths_Error:
MsgBox "Error " & Err.Number & " (" & Err.Description & ") in procedure fGetMonths, line " & Erl & "."
GoTo fGetMonths_Exit
End Function