Results 1 to 2 of 2
  1. #1
    wdkoseck is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2012
    Posts
    1

    Question Stop Macro on Last Record in Form

    I am lousy at SQL so I use macros.

    I have a macro that opens up a form called SLA Complete Form - The macro then goes and examines two fields on the form to see if they contain data and if they do not then it displays a popup box with a message.

    The form that gets opened up can have anywhere from one record to approximately a hundred records.

    How can I get the macro to stop running when it hits the last record on the form without displaying an error message. I am currently using the next record feature in the macro.



    Thanks

    Walt

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Really? SQL is the language of queries and Access has wizards and designers for building queries. Macros, on the other hand, are confusing, harder to debug, and less versatile.

    Review: http://forums.aspfree.com/microsoft-...rd-140375.html

    I use only VBA, no macros.
    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. Using Condition in Stop Macro
    By MikeWaring in forum Programming
    Replies: 2
    Last Post: 11-01-2012, 03:00 PM
  2. Stop subform from creating record
    By eww in forum Forms
    Replies: 2
    Last Post: 09-16-2010, 02:41 PM
  3. Stop tab from creating next record.
    By tazbergy in forum Forms
    Replies: 1
    Last Post: 09-12-2010, 04:29 PM
  4. Stop SendObject Macro
    By OpsO in forum Import/Export Data
    Replies: 1
    Last Post: 08-19-2010, 09:56 AM
  5. Replies: 2
    Last Post: 11-29-2009, 12:00 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