Overflow error

atrium

Registered User.
Local time
Tomorrow, 00:16
Joined
May 13, 2014
Messages
348
Run time error 6
Overflow
Dim intUniqueNo As Integer
Happens after intUniqueNo = DMax("DocId", "DocumentLibrary")
 
use Long for your variable:

Dim lngUniqueNo As Long
lngUniqueNo = DMax("DocId", "DocumentLibrary")
 
Thank you - fixed (y)
 

Users who are viewing this thread

Back
Top Bottom