Results 1 to 2 of 2
  1. #1
    gar is offline Advanced Beginner
    Windows 7 32bit Access 2016
    Join Date
    Nov 2011
    Posts
    42

    Obscure declaration argument


    If in the Access IDE I select "Form" from the list of Objects and "Open" from the Procedures list, the Sub declaration created for me always has the argument: "Cancel as Integer". Why?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,822
    Because the Open event can be canceled under a given condition. If you have no need to do that then ignore the argument. https://docs.microsoft.com/en-us/off...cess.Form.Open
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. My Blog - Obscure Topics
    By AccessPower in forum Tutorials
    Replies: 0
    Last Post: 02-06-2017, 10:15 AM
  2. Variable Declaration in MS Access 2013 VBA
    By msaccessdev in forum Programming
    Replies: 7
    Last Post: 06-09-2014, 11:09 AM
  3. invalid argument
    By ck4794 in forum Programming
    Replies: 18
    Last Post: 11-04-2013, 07:52 AM
  4. Replies: 6
    Last Post: 08-23-2012, 05:06 AM
  5. Replies: 2
    Last Post: 03-18-2010, 08:24 PM

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