aziz rasul
Active member
- Local time
- Today, 14:26
- Joined
- Jun 26, 2000
- Messages
- 1,935
I am a new user to VBA. I have written code that more or less works. The only problem that I have is that a variable called Count2 which is a Long data type fails when it reaches a value of over 40,000.
The value of Count2 simply holds the RecordCount of a table. This table grows in size when the code is run (as records are appended into the table from several files) and the value of Count2 increases during the process. A error 6 appears saying "overflow". The Help button mentions changing the data type.
If I change the data type to Double or Variant or Single I get the same problem.
Can anyone tell me what I'm doing wrong.
Many Thanks in advance.
The value of Count2 simply holds the RecordCount of a table. This table grows in size when the code is run (as records are appended into the table from several files) and the value of Count2 increases during the process. A error 6 appears saying "overflow". The Help button mentions changing the data type.
If I change the data type to Double or Variant or Single I get the same problem.
Can anyone tell me what I'm doing wrong.
Many Thanks in advance.