Access won't let me write functions

  • Thread starter Thread starter Maarkr
  • Start date Start date
M

Maarkr

All of a sudden I can't write functions. As an example, I entered this in a
new module...

Public MyFunc(intX As Integer) As Integer

MyFunc = 2 * intX

End Function

The first line is highlighted in red and get a 'Compile Error....expected
list separator or )' with 'As' highlighted in Blue

Is there a reference I need to reset? I tried it yesterday in a different
db and got the same thing... Maybe its something stupid...
 
All of a sudden I can't write functions.
..umm, gotta actually have the word Function in it for it to be recognized
as one?

Public Function MyFunc(intX As Integer) As Integer
 
Back
Top