Error return

Keiath

Registered User.
Local time
Today, 17:49
Joined
Jan 6, 2012
Messages
104
Hi Guys

I have this

=[Invoices Group A Totals subform2].[Form]![Text13]

Which works fine, however if there is no data it comes up with an error in the txtbox where i would prefer it was just blank how can I do this?

Thanks
 
Okay bit of a novice here how do i apply this to the argument i have above
 
Copy the function into a standard module and wrap your subform reference in nnz().
 
Sorry sounding like a real noob now, into a standard module?
 
I have enclosed a strip out version on my database if you open the Main Site Table, form you can see the problem i am having
 

Attachments

Hi After fiddling about a bit i finally work it out and works fine and returns 0 instead on an error message.

Thank you for your help
 
Last edited:
Sorry, I was in a meeting. Glad you got it sorted out.
 
nz is a useful function

it defines how to display the result if the "answer" is NULL. note that null is not the same as an empty string, which WILL return a genuine blank.

=nz([Invoices Group A Totals subform2].[Form]![Text13],"No Data")
 
This was resolved yesterday Dave, and Nz() doesn't work in this situation anyway.
 
OK. I hadn't read all the links, and thought nz was a different approach. I see the problem now.
 

Users who are viewing this thread

Back
Top Bottom