Re: #Error
From: Allen Browne (AllenBrowne_at_SeeSig.Invalid)
Date: 05/10/04
- Next message: Cheryl Fischer: "Re: is there reverse instr function in microsoft access"
- Previous message: Allen Browne: "Re: is there reverse instr function in microsoft access"
- In reply to: Randal: "Re: #Error"
- Next in thread: Randal: "Re: #Error"
- Reply: Randal: "Re: #Error"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 10 May 2004 21:48:38 +0800
You have a simple choice: correct the formula, or put up with the error.
It is not difficult to fix, e.g.:
=IIf([denom] = 0, 0, [num] / denom])
-- Allen Browne - Microsoft MVP. Perth, Western Australia. Tips for Access users - http://allenbrowne.com/tips.html Reply to group, rather than allenbrowne at mvps dot org. "Randal" <rlwnrAThighstream.net> wrote in message news:el%23BQooNEHA.3012@tk2msftngp13.phx.gbl... > Thanks. It is division by 0. But, I don't want to change the formula > because it works in 99% of the cases. > > "Allen Browne" <AllenBrowne@SeeSig.Invalid> wrote in message > news:409bc23d$0$16585$5a62ac22@freenews.iinet.net.au... > > Best approach would be to understand why it returns #Error. > > > > Could it be a "Division by zero" error, if you are dividing one field by > > another? > > > > Is this a calculated field, with a function call that has bad arguments? > > For example, if you use: > > DLookup("MyField", "MyTable", "SomeField = " & [XXX]) > > and XXX is null, the 3rd argument is malformed. Or if you use: > > DateSerial(Year(Date()), Month([DOB]), Day([DOB])) > > where DOB is null, the assignment fails. > > > > It is possible to work around the error with IsError() and IIf(), but it > > would be instructive to figure out what's causing it. > > > > "Randal" <rlwnrAThighstream.net> wrote in message > > news:uoKI8vENEHA.3312@tk2msftngp13.phx.gbl... > > > How can I get a query to return "0" instead of "#Error"?
- Next message: Cheryl Fischer: "Re: is there reverse instr function in microsoft access"
- Previous message: Allen Browne: "Re: is there reverse instr function in microsoft access"
- In reply to: Randal: "Re: #Error"
- Next in thread: Randal: "Re: #Error"
- Reply: Randal: "Re: #Error"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|