Results 1 to 3 of 3
  1. #1
    CementCarver's Avatar
    CementCarver is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2013
    Location
    Canada
    Posts
    231

    User Actions

    I'm using Martin Green's vba code to track changes/edit to an audit table. In his code sample, there's a select case section where the code attempts to track what type of user action is taking place.



    Select Case UserAction
    Case "EDIT"
    rest of code here
    Case "Else"
    rest of code here

    The program gets to the Case "EDIT" line and just skips over it and ends up at the Case "Else" statement, but I was actually editing records during that time.

    How many actions are there? How does one know what sort of action is going on at that time?

    Can anyone offer any suggestions?

    CementCarver

  2. #2
    CementCarver's Avatar
    CementCarver is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2013
    Location
    Canada
    Posts
    231
    The line Case "EDIT" should be without quotes.

    CC

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    No, the Case Else should be without quotes.
    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. Macro-How get Show all Actions
    By gg80 in forum Macros
    Replies: 4
    Last Post: 05-25-2013, 08:17 AM
  2. Ms access 2007 macro actions
    By sireesha in forum Programming
    Replies: 4
    Last Post: 10-16-2012, 10:43 AM
  3. Selecting items and automating actions
    By dualvba in forum Access
    Replies: 3
    Last Post: 05-21-2012, 08:50 AM
  4. Help with actions
    By xdeimusx in forum Access
    Replies: 7
    Last Post: 09-12-2011, 10:34 PM
  5. Macro with 3 actions
    By seweryng in forum Access
    Replies: 4
    Last Post: 01-20-2011, 10:15 AM

Tags for this Thread

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