title: Trouble with InputBoxes
body: <p>I'm currently working with InputBoxes in MS Access VBA. I'm examining validation and handling how the user interacts with the InputBox through pressing the OK or Cancel buttons. </p>
  
  <p>Correct me if I'm wrong but InputBoxes can return any data type and by default return a string? For example:</p>
  
  <pre><code>Dim userInputValue As String
  
  'Text to display, Title, Default Value
  userInputValue = InputBox("Please enter a #", "Determine Limit", 10000)
  
  If userInputValue = "" Then
      MsgBox ("You pressed the cancel button...")
  End If
  </code></pre>
  
  <p>If the user presses the Cancel button this will run fine. </p>
  
  <p>But when I swap this for an integer value like so:</p>
  
  <pre><code>Dim userInputValue As Integer
  'Text to display, Title, Default Value
  userInputValue = InputBox("Please enter a #", "Determine Limit", 10000)
  
  If userInputValue = 0 Then
      MsgBox ("You pressed the cancel button...")
  End If
  </code></pre>
  
  <p>I receive a <code>Type Mismatch: Runtime Error '13'</code> Why is this? When I debug the code and look at what is being returned I find that the <code>userInputValue</code> is actually 0, which is what I'm checking for. So is the problem that the InputBox is actually returning a string?</p>