Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Overflow

$
0
0
Am creating a store managemaent system using Access 2003. On doing multiplication when the answer is more than 2 billions am getting message "Run-time error 6" Overflow.
Here is the codes


Private Sub txtvalue_Click()
Dim num As Long, x As Long, y As Long

x = CLng(txtuvalue)
y = CLng(txtquantity)

Me.txtvalue= x * y
End Sub

Does it mean Access 2003 can perform multiplication to an answer of 2 billion only??
Thanks for your consideration.

Viewing all articles
Browse latest Browse all 13329

Trending Articles