Access VBADiscuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
hi all,
Im using a integer inside a loop for adding a value via a access database table. bt when i run it i get a added value, if there is few records at the table..if more records it give a error named "overflow"
so i think my integer memory is not enough..pls help me for tht. gv me a idea. thanx..
Dim total As Integer
Dim nn3tmp As Integer
Dim nn3 As String
'opening database and get its values to recSLT3 record set
If recSLT3.RecordCount >= 1 Then
recSLT3.MoveFirst
Do While Not recSLT3.EOF
nn3tmp = 0
If IsNull(recSLT3.Fields("InvNo").Value) = False Then
nn3 = recSLT3.Fields("Amount").Value
Try changing the type of nn3tmp to Float, I believe that's where the overflow is occuring (as I doubt you have more than 2,147,483,648 (top bound of Int data type) rows in the table).