Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Runtime Error 6. Overflow 1

Status
Not open for further replies.

dawnd3

Instructor
Joined
Jul 1, 2001
Messages
1,153
Location
US
I am getting a run-time error when I run a report that is calculating data from 150,000 records. "Runtime Error 6. Overflow" Then if I click debug it highlights code for a DCount function. My thought, after reading help, is that the DCount Function has a limit to how high the result can be based on the fact that it is an integer. And that the number that the DCount is coming up with is too large and causes the runtime error. I guess I am wondering if anyone knows about this and knows how it can be worked around.

Thank you,

Dawn

 
Dawn,

Have you checked the variable that the DCount is returning into? Is it an integer? If so, try switching to a Long. This has a much greater allowed range.

Craig
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top