Results 1 to 6 of 6
  1. #1
    HelpMePlease is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Apr 2014
    Posts
    2

    Alert or Message Box on Data Change within Query or Table

    SQL backend. Access 2010 frontend. Linked tables via ODBC.



    I have ONE column (bit) type that users constantly mess up. Is there a way to have a function or macro which will display a message box anytime data is changed?

    It is easy to display a message within a form, but what if someone is working directly in a linked table or query?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Why are users working directly with tables and queries?

    Starting with 2010, Access tables have data macros but don't think they can be used with links.

    Might be able to use SQL triggers.
    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.

  3. #3
    HelpMePlease is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Apr 2014
    Posts
    2
    Quote Originally Posted by June7 View Post
    Why are users working directly with tables and queries?
    Because we allowed them to years ago and they are spoiled at this point. Maybe not the best answer, but that is the honest answer.

    I will quickly brush up on "data macros" and see if that will do what I need. Thanks.

  4. #4
    trevor40's Avatar
    trevor40 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Feb 2014
    Location
    Australia
    Posts
    407
    Time to change, if they want accurate data they have to accept they should not interact with the tables directly anymore, then use form code that checks input and displays a msg if it's incorrect.

  5. #5
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Right, who is 'them' - the Boss - and who is 'we'? The Boss needs to understand the issue and make decision best for the business and everyone else falls in line.
    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.

  6. #6
    ipisors is offline Access Developer
    Windows XP Access 2007
    Join Date
    Sep 2013
    Posts
    119
    There simply is not decent advice that can be given, given your situation. You shouldn't ever develop an application, then give users access to the guts / design of the application. That defeats the entire purpose of developing apps and of GUIs.

    Ask the user: "How can I be responsible for an application if I'm not allowed to safeguard its design??"

    I would literally tell them that once the app is first created, no further troubleshooting/saving their rears will be done on the application because they have removed me as developer from the ability to maintain it. If that's unacceptable to them, I'd reconsider my employment there. (quite seriously). It would be as silly as a surgeon working at a hospital where the hospital management insisted on allowing the patients to use the scalpel on themselves during surgery because they were spoiled, or because it was fun.

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

Similar Threads

  1. Replies: 9
    Last Post: 09-26-2012, 12:20 PM
  2. Change Data Types in a Make Table Query
    By nyneave in forum Queries
    Replies: 1
    Last Post: 09-18-2012, 11:46 PM
  3. Alert Message Code Problem
    By 10 Gauge in forum Forms
    Replies: 1
    Last Post: 03-15-2011, 12:17 PM
  4. change data type in make table query
    By jgelpi16 in forum Queries
    Replies: 2
    Last Post: 01-26-2011, 09:37 AM
  5. Replies: 11
    Last Post: 12-04-2010, 10:20 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