Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / April 2007

Tip: Looking for answers? Try searching our database.

How to Avoid Dividing by 0 errors in query

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jason52 - 30 Apr 2007 22:20 GMT
I have been getting 'Overflow' errors when trying to run a query.  I found
out it is because some of my data has a divisor of 0 (e.g. 10/0).  This data
comes from linked Excel worksheets with hundreds of rows of data.  Is there
an IF statement or something I can add to the query in the dividing column
that can just return a blank (instead of the #Error)?  I need this query to
feed into another query that I am getting the 'Overflow' error on.
MH - 30 Apr 2007 22:35 GMT
Iif([Divisor]=0,0,[MyField]/[Divisor])

MH

>I have been getting 'Overflow' errors when trying to run a query.  I found
> out it is because some of my data has a divisor of 0 (e.g. 10/0).  This
[quoted text clipped - 5 lines]
> to
> feed into another query that I am getting the 'Overflow' error on.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.