krishnanhemanth
Registered User.
- Local time
- Today, 23:23
- Joined
- Jun 12, 2009
- Messages
- 115
hi all
i have a textbox "advance pay" on a form "PAYMENTS"
This text box is unbound and gets its value using dsum
the expression is......
=IIf(IsNull([VAAMOUNT]),0,DSum("[VAAMOUNT]","VENDORPAYADVANCE","[PONUMBER]=" & [PONUMBER]))
vendorpayadvance --- table
vaamount --- field in the above table
ponumber --- ponumber is the criteria that need to be satisfied
the above works fine if there is data in the table wrt ponumber
but....
if there is no data for a particular ponumber in the above table then ...
the textbox "advancepay" on the form "PAYMENTS" IS BLANK instead of showing ZERO...
HOW SHOULD I MAKE IT DISPLAY ZERO
PLS HELP
hemanth
i have a textbox "advance pay" on a form "PAYMENTS"
This text box is unbound and gets its value using dsum
the expression is......
=IIf(IsNull([VAAMOUNT]),0,DSum("[VAAMOUNT]","VENDORPAYADVANCE","[PONUMBER]=" & [PONUMBER]))
vendorpayadvance --- table
vaamount --- field in the above table
ponumber --- ponumber is the criteria that need to be satisfied
the above works fine if there is data in the table wrt ponumber
but....
if there is no data for a particular ponumber in the above table then ...
the textbox "advancepay" on the form "PAYMENTS" IS BLANK instead of showing ZERO...
HOW SHOULD I MAKE IT DISPLAY ZERO
PLS HELP
hemanth