title: multiple argument subs vba
body: <p>Using VBA with Access 2010, I have a sub:</p>
  
  <pre><code>Public Sub setInterest(account As String, dmonth As Integer)
      ...somecode...
  End Sub
  </code></pre>
  
  <p>And I am calling it with</p>
  
  <pre><code>setInterest("myAccount",3)
  </code></pre>
  
  <p>And I get syntax errors.<br>
  Modifying the sub to only take one argument and leaving out the 3 gives no errors, the problem is only when I have 2 arguments.</p>