title: Weird VBA Expected End of Statement Error
body: <p>I started working on creating a custom function in Access 2010, using the VBA Editor, but I keep getting an Expected End of Statement Error.</p>
  <p>Here's the code:</p>
  <pre><code>Public Function getPayTotal(ByVal StudentID As Long) As Long
  
  Return StudentID
  
  End Function
  </code></pre>
  <p>I have absolutely no idea why this isn't working. The debug keeps sending me back to the Return StudentID line. Am I over looking something incredibly simple?</p>