Results 1 to 3 of 3
  1. #1
    Robeen is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596

    Optional argument in function call.

    Hi,

    Will SomeValue be Null if no value is passed for it when the function below is called?

    Function(SQLString as String, Optional SomeValue as String) As Long



    Thanks!

  2. #2
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    no it will be missing

    if ismissing(Somevalue) then msgbox "Somevalue has not had a value passed in the parameters"

  3. #3
    Robeen is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    Thanks! I appreciate your help!

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

Similar Threads

  1. Compile Error: Argument not optional
    By Nadine67 in forum Access
    Replies: 5
    Last Post: 08-02-2015, 03:09 PM
  2. error argument not optional
    By slimjen in forum Programming
    Replies: 10
    Last Post: 03-20-2013, 09:31 PM
  3. Compile Error: Argument not optional
    By tariq1 in forum Programming
    Replies: 4
    Last Post: 08-11-2012, 01:06 PM
  4. Replies: 7
    Last Post: 11-17-2011, 02:56 PM
  5. Compile Error: Argument Not Optional
    By bg18461 in forum Access
    Replies: 1
    Last Post: 12-01-2010, 08:47 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