Hi everyone,
I've just upgraded to Access 2013 (after using Access 2003->2007->2010 over an 11 year period) and I'm having a infuriating time trying to figure out why my continuous subform field is now displaying #ERROR in Access 2013 (after working successfully in all previous Access versions!)
My subform field PaymentReceived calls a Function named PaymentRec()
Public Function PaymentRec() As Currency
If IsNull(DLookup("[SumofPaymentReceived]", "[qryDlookupDebtPrelimTOTAL]", "[ID]= " & [id])) Then
PaymentRec = 0
Else
PaymentRec = DLookup("[SumofPaymentReceived]", "[qryDlookupDebtPrelimTOTAL]", "[ID]= " & [id])
End If
End Function
"SumofPaymentReceived" is the sum of a currency field "PaymentReceived" (which is in a SQL table ODBC linked to my Access 2013 frontend).
Has anyone had a similar problem with this??
Thanks in advance!
I've just upgraded to Access 2013 (after using Access 2003->2007->2010 over an 11 year period) and I'm having a infuriating time trying to figure out why my continuous subform field is now displaying #ERROR in Access 2013 (after working successfully in all previous Access versions!)
My subform field PaymentReceived calls a Function named PaymentRec()
Public Function PaymentRec() As Currency
If IsNull(DLookup("[SumofPaymentReceived]", "[qryDlookupDebtPrelimTOTAL]", "[ID]= " & [id])) Then
PaymentRec = 0
Else
PaymentRec = DLookup("[SumofPaymentReceived]", "[qryDlookupDebtPrelimTOTAL]", "[ID]= " & [id])
End If
End Function
"SumofPaymentReceived" is the sum of a currency field "PaymentReceived" (which is in a SQL table ODBC linked to my Access 2013 frontend).
Has anyone had a similar problem with this??
Thanks in advance!