Hello everybody,
The following funcion shows error number 13 (Type Mismatch):
Public Function GetTaxRate(SdInvDate As Date, TaxType As String) As Single
GetTaxRate = DLookup("[TaxRate%]", "tblTaxRates", "[TaxFrom]<= #" & SdInvDate & "# And Nz([TaxTo],#12/31/9999#)> #" & SdInvDate & "#" And "[TaxNature] = '" & [TaxType] & "'")
End Function
Can anyone point what error I am doing?
With thanks,
Alex![]()