Can someone please check this function and give me some advice regarding fixing this mismatch.
Public Function MonthlyAmt(FLNo As Integer) As Currency
Dim MthDate As Date
Dim MonthNO As Integer
Dim YearNo As Integer
Dim MatchAMT As Currency
Dim STCreteria As String
Dim FMTest As Form
Dim TAGValue As Integer
'Dim flno As Integer
Set FMTest = Forms!FROnScreenTest
TAGValue = FMTest.Tag
'Debug.Print TAGValue
'STCreteria = " Month(MatchMonth) =" & MonthNO & " AND EmployeeID=" & FLNo
'MthDate = DLookup("matchmonth", "TBMatchAmount")
'MatchAMT = DLookup("matchamount", "tbmatchamount")
MonthNO = Month(MthDate)
YearNo = Year(MthDate)
MonthlyAmt = DSum("matchamount", "tbmatchamount", " EmployeeID=" & FLNo & "" And "& MonthNo =" & 1)
'Debug.Print MonthlyAmt
End Function
Public Function MonthlyAmt(FLNo As Integer) As Currency
Dim MthDate As Date
Dim MonthNO As Integer
Dim YearNo As Integer
Dim MatchAMT As Currency
Dim STCreteria As String
Dim FMTest As Form
Dim TAGValue As Integer
'Dim flno As Integer
Set FMTest = Forms!FROnScreenTest
TAGValue = FMTest.Tag
'Debug.Print TAGValue
'STCreteria = " Month(MatchMonth) =" & MonthNO & " AND EmployeeID=" & FLNo
'MthDate = DLookup("matchmonth", "TBMatchAmount")
'MatchAMT = DLookup("matchamount", "tbmatchamount")
MonthNO = Month(MthDate)
YearNo = Year(MthDate)
MonthlyAmt = DSum("matchamount", "tbmatchamount", " EmployeeID=" & FLNo & "" And "& MonthNo =" & 1)
'Debug.Print MonthlyAmt
End Function