M
Mark Maeker
I have setup the function shown below. I am trying to use
it in a query as shown
Balance: ReceivableInvoiceBalance(InvoiceID, ,PaymentID)
I get the following error message:
The expression you entered contains invalid syntax;
You may have entered a comma without a preceding value or
identifier.
The problem is that it will not let me omit the second
argument.
Public Function ReceivableInvoiceBalance(lngInvoiceID As
Long, Optional datEndingDate As Date, Optional
lngPaymentID As Long) As Currency
On Error GoTo FunError
it in a query as shown
Balance: ReceivableInvoiceBalance(InvoiceID, ,PaymentID)
I get the following error message:
The expression you entered contains invalid syntax;
You may have entered a comma without a preceding value or
identifier.
The problem is that it will not let me omit the second
argument.
Public Function ReceivableInvoiceBalance(lngInvoiceID As
Long, Optional datEndingDate As Date, Optional
lngPaymentID As Long) As Currency
On Error GoTo FunError