Results 1 to 7 of 7
  1. #1
    Darkladymelz is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Sep 2011
    Posts
    43

    Can someone explain to me why this is not working

    I am working with Allen Browne's Audit Log and have done all tables and entered coding as stated. When I go into my form to make and edit it shows a Error Message: Debug and then my coding is shown like this:



    Click image for larger version. 

Name:	Untitled-6.gif 
Views:	12 
Size:	50.3 KB 
ID:	6769

    I known nothing of coding and have just been following the instruction. I would be very grateful if someone could explain the problem to me.

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,848
    It is telling you that your program had an error and is currently stopped/paused at this liiine, and offering you a chance to do some debugging.

    If you put your cursor over some variables you will see the value of those variables.

    see this for more http://www.cpearson.com/excel/debug.htm

  3. #3
    Darkladymelz is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Sep 2011
    Posts
    43
    Ok, I will take a look at that.

    I don't know how I came past the last error but I am now getting a new Error.

    Click image for larger version. 

Name:	Untitled-1.gif 
Views:	6 
Size:	5.4 KB 
ID:	6770

    Click image for larger version. 

Name:	Untitled-3.gif 
Views:	8 
Size:	17.4 KB 
ID:	6771

    I'm soooooo confused!

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,848
    I see this in the Allen Browne instructions

    Locate the form's AfterUpdate property. Choose [Event Procedure]. Click the Build button. Enter this line:
    Call AuditEditEnd("tblInvoice", "audTmpInvoice", "audInvoice", "InvoiceID", Nz(Me!InvoiceID, 0), bWasNewRecord)

  5. #5
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,848
    I see this in the Allen Browne instructions == perhaps your screen shot has it, but just doesn't show the right side completely.

    Locate the form's AfterUpdate property. Choose [Event Procedure]. Click the Build button. Enter this line:
    Call AuditEditEnd("tblInvoice", "audTmpInvoice", "audInvoice", "InvoiceID", Nz(Me!InvoiceID, 0), bWasNewRecord)

  6. #6
    Darkladymelz is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Sep 2011
    Posts
    43
    The "bWasNewRecord" was included but I had not extended the window far enough.

    I am not getting error messages anymore. The form is saving the changes to the record now but it is not saving the old record in the temp tables.

  7. #7
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,848
    What have you done to your code since you were getting errors? Something must have changed.
    Did you read the stuff here re debugging
    http://www.cpearson.com/excel/debug.htm

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

Similar Threads

  1. Could someone explain why this code isnt working please?
    By shabbaranks in forum Programming
    Replies: 7
    Last Post: 10-29-2011, 09:14 AM
  2. Can someone explain how this works?
    By daveofgv in forum Access
    Replies: 3
    Last Post: 04-23-2011, 09:59 AM
  3. can anybody explain dirty event to me?
    By RedGoneWILD in forum Programming
    Replies: 3
    Last Post: 08-05-2010, 01:50 PM
  4. Working with PDF's
    By Mitch87 in forum Access
    Replies: 1
    Last Post: 02-19-2010, 11:24 AM
  5. Could someone please explain to me what a Switchboard is
    By wabbalee in forum Database Design
    Replies: 2
    Last Post: 06-26-2009, 07: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