Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I'm getting an Overflow error in Excel when I try to run one of my macros that's supposed to get some data from Access. The Macro works fine but when I try to get some values from a querry where I have some fields with #NUM! error I'm getting the Overflow error. There's nothing fancy about my code... when I try to get the value is something like below:

ws2.Cells(rData, cData + 5).Value = rs.Fields(ws.Cells(rParam, cParam + 6).Value).Value

and in Access my fields look like this:

enter image description here

When it gets to the record with #Num! field I'm getting the Overflow error in Excel. Is there some solution for this issue? Thank you very much!

share|improve this question
    
What is the calculation that is giving the #Num! error? –  Remou Apr 4 at 9:31
    
looks like a division by 0 error, if so add a IF in your code/formula –  Patrick Lepelletier Apr 5 at 12:52
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.