#error (1 Viewer)

drp

Registered User.
Local time
Today, 15:11
Joined
Dec 4, 2010
Messages
16
hi experts

in my database main form with subform. subform have query as recordsource.
total of one of field in subform shown on main form. all is ok and show total correctly but when subform have no records then total field on main form shows #error.

I want help from experts to convert this value either into null string or zero(0).

any help will be appriciated.
thanx in advance.
 

spikepl

Eledittingent Beliped
Local time
Tomorrow, 00:11
Joined
Nov 3, 2010
Messages
6,142
=IIf(Not IsError([sbfrmSearchOrders].[Form]![txtOrderCount]),[sbfrmSearchOrders].[Form]![txtOrderCount],0)
 

drp

Registered User.
Local time
Today, 15:11
Joined
Dec 4, 2010
Messages
16
It works fine.
Thank you very much !
 

Users who are viewing this thread

Top Bottom