Error# if subform blank

DBL

Registered User.
Local time
Today, 14:14
Joined
Feb 20, 2002
Messages
659
I've got a calculation on a main form that is reference to a subform. If the subform is empty I get Error# in the calculation field. Is there anyway to make that field blank if the subform is empty? I've tried the Nz function and that's not working.
 
I haven't managed to find anything on the IsNumeric Function, I must be searching in the wrong place....
 
I suspect you've got one of the newer versions, from what I read here finding any help is now a challenge, I believe you can talk to XP, but being an MS product it wont take a blind bit of notice, so that option's out.
Try this then
=IIf(IsNumeric([My subform].[Form]![TextBox]),[My subform].[Form]![TextBox],0)
 
Rich, you're a wonder. It's working beautifully - thanks very much.

I can go on my holiday with a clear conscience!

Dawn
 
Can you change that if it is a subform.
So on my main form if the user does not select a item from the subform the report will show zero.
 

Users who are viewing this thread

Back
Top Bottom