title: Overflow error in VBA involving two integers and a Long Integer
body: <p>I don't code in VBA, but I need to debug a code written in it. When I run the code, I get an Overflow error, which I looked at online. I used breakpoints in the debugger to find the line of code that is giving me the error.</p>
  
  <p>This is the line:</p>
  
  <pre><code>lngInt = nIntA * nIntB
  </code></pre>
  
  <p>The debugger says that nIntA (an integer) = 4,851, nIntB (another integer) = 10. lngInt is a long integer, if I'm reading this line correctly:</p>
  
  <pre><code>dim lngInt As Long
  </code></pre>
  
  <p>nIntA and nIntB are initialized with:</p>
  
  <pre><code>Public nIntA As Integer 
  Public nIntB As Integer
  </code></pre>
  
  <p>If it helps, both are set from an Access form.</p>
  
  <p>Nothing about this seems like it should be giving me an issue, so I'm assuming it's a quirk in VBA. What could be causing the error?</p>
  
  <p>Thank you in advance!</p>