Page 2 of 2 FirstFirst 12
Results 16 to 17 of 17
  1. #16
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    7,862
    On a copy of the DB, go back to the original form that is causing trouble. Starting at the header, check each sub routine and function. Make sure each one has a start and finish, a Sub and end sub.



    If all looks well, Make a copy of the form, only this time don't copy the entire VBA. Paste each routine over, one routine at a time. All the while make sure that you create a new routine or function to paste into, A new start and finish.

    You can do this by copying the first line without the parenthesis and then hit the ENTER key. Then copy the routine and paste inside.

    Example:

    Paste
    Private Sub Command1_Click

    then hit enter to get
    Private Sub Command1_Click ()

    End Sub


    This will give you something to paste into.

  2. #17
    Monterey_Manzer is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2012
    Posts
    164
    Okay, I feel like a moron. I wrote another subroutine and named it DateAdd. This caused all my problems. I have since adopted a more strict and routine naming convention for my "test" subroutines. These live in their own module which is why I didn't come across it during my initial code reviews.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 7
    Last Post: 07-24-2013, 02:01 PM
  2. Compile Error: Syntax Error in DoCmd.RunSQL Statement
    By Evilferret in forum Programming
    Replies: 1
    Last Post: 08-27-2012, 12:32 PM
  3. Replies: 7
    Last Post: 06-08-2012, 09:55 PM
  4. Replies: 6
    Last Post: 09-28-2011, 09:20 PM
  5. Replies: 1
    Last Post: 04-24-2010, 09:57 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