Hi all,
I use the following DLookup statement as a control source in a text box:
=(DLookUp("[SumofPaymentReceived]","[qryDlookupDebtPrelimTOTAL]","[ID]= " & [id]))
If the Dlookup returns no records from qryDlookupDebtPrelimTOTAL, how can make my textbox show a "0" value. I tried using a Public Function on the form & then point back to it from the control source, but i couldn't get it to work.
Can anyone offer some assistance.
Thanks.
I use the following DLookup statement as a control source in a text box:
=(DLookUp("[SumofPaymentReceived]","[qryDlookupDebtPrelimTOTAL]","[ID]= " & [id]))
If the Dlookup returns no records from qryDlookupDebtPrelimTOTAL, how can make my textbox show a "0" value. I tried using a Public Function on the form & then point back to it from the control source, but i couldn't get it to work.
Can anyone offer some assistance.
Thanks.