Results 1 to 2 of 2
  1. #1
    Monterey_Manzer is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2012
    Posts
    164

    Do we need all the extra stuff in pre-made macros?


    Hi,

    I am developing a series of forms and corresponding tables used to track issues of various sorts. When one of these issues is resolved we delete the record on the Access table. However, it is desirable that we have some sort of record keeping to track those issues we have encountered. I simply added a Delete Record button whose macro is a group of ExportWithFormatting (The table as Excel workbook) along with RunMenuCommand.DeleteRecord.

    I noticed that when I go through the "wizard" steps for setting up a Delete Record button, there are quite a bit more commands than just RunMenuCommand.Delete Record. I get an OnError command, GoToControl, ClearMacroError, and 4 If, Then commands which include a Delete Record and Undo Record command along with some Macro Error and Message Box commands. I am sure anyone who goes through the steps of setting up a Delete Record button on a form in Access 2010 will see the same list of macro commands

    My question is do we need this stuff? What does it do for us? I like just having an Export and Delete record command grouped together as it is easier for my novice brain to comprehend but should I include all these steps instead?

  2. #2
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,593
    You may not want [or need] all those extra features - but they are in there because in the course of common Add, Modify, Delete activities in most Database applications, those are the things you might want/need to handle.
    Access is just trying to make it easier for you [should you want to use those functions].
    If you don't want them and they really BUG you [ ] - get rid of them.
    When data is critical, there are all these programming 'checks & balances' . . .

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

Similar Threads

  1. Dates and all that horrible stuff
    By clean32 in forum Programming
    Replies: 8
    Last Post: 06-20-2011, 06:34 PM
  2. Need help figuring out stuff
    By Buakaw in forum Access
    Replies: 3
    Last Post: 01-31-2011, 02:59 AM
  3. Simple stuff
    By gdemets in forum Queries
    Replies: 5
    Last Post: 12-09-2010, 09:25 AM
  4. Access Simple Stuff, help
    By clwclw in forum Access
    Replies: 1
    Last Post: 05-02-2009, 03:10 PM
  5. I need help with weird stuff happening on a DB
    By makotoshishio in forum Access
    Replies: 9
    Last Post: 04-02-2009, 12:20 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