Results 1 to 2 of 2
  1. #1
    bg18461 is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2010
    Posts
    2

    Compile Error: Argument Not Optional

    I am trying to create the ACCDE front end but I am running into errors creating it. This led me into compiling my VBA code and I get the "Argument Not Optional" error highlight "Month" in the Function below. This function is used in Access while running a make table query. Any ideas on how to resolve this, I am new to all this, thanks!



    Code:
    Option Compare Database
    Option Explicit
     
    Function LoadFactor1to12()
         Select Case Month
    End Function

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    MOnth is a VBA Function that requires an argument. Have you looked up Month() in help yet?

Please reply to this thread with any new information or opinions.

Similar Threads

  1. new compile error!
    By darklite in forum Access
    Replies: 6
    Last Post: 09-02-2010, 05:13 PM
  2. compile error
    By darklite in forum Access
    Replies: 6
    Last Post: 08-31-2010, 04:27 PM
  3. Replies: 2
    Last Post: 08-05-2010, 08:16 AM
  4. compile error: expected end of statement
    By RedGoneWILD in forum Programming
    Replies: 5
    Last Post: 07-29-2010, 10:12 AM
  5. Invalid Argument Error
    By koper in forum Access
    Replies: 2
    Last Post: 06-14-2010, 11:22 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums