Results 1 to 14 of 14
  1. #1
    Dave_D's Avatar
    Dave_D is offline Advanced Beginner
    Windows XP Access 2010 64bit
    Join Date
    Aug 2015
    Posts
    67

    On Click event property error when opening a form

    I started getting the following error when I clicked on an event named "NEW ISSUE" and can not find a solution thru Goggle.



    The expression On Click you entered as the event property setting produced the following error: A problem occurred while Microsoft Access was communicating with OLE server or ActiveX Control.
    * The expression may not result in the name of a macro, the name of a user-defined function, or [Event Procedure]
    * There may have been an error evaluating the function, event, or macro

    I also receive On Current..... when I try opening my form named "ISSUE LIST" where the event of "NEW ISSUE" resides.

    I tried upload the DB (896kb) by it's limited by size restrictions

    Any advise either uploading the DB or on the error message.

    Thanks!
    Attached Files Attached Files
    Last edited by Dave_D; 07-03-2018 at 05:21 AM.

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,544
    Before uploading Compact and repair and then Zip the db
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,413
    When I get that message it indicates corruption.
    Create a blank database and import EVERYTHING from the broken db into the new one, using the ribbon: External Data>New Data Sources>From Database>Access
    Compact/Repair the new database and it should be OK.

  4. #4
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,803
    I have experienced this. It was due to a posted db being created in a locale that was totally foreign to mine. If I switched to that locale, it was fine. Not something I like doing though.
    That you say can not find a solution thru Goggle. could mean that you tried things that didn't work. It might be helpful to know more about that. Also might help to know about what changes were made before this started, or maybe where the db hails from, or if the event is on a subform which references a main form control upon Open or Load. Main form controls are not available to subform Load or Open events.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  5. #5
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    I got these errors when the VBA project corrupted. I finally discovered how to recover but it was a tense 5 days....

  6. #6
    Dave_D's Avatar
    Dave_D is offline Advanced Beginner
    Windows XP Access 2010 64bit
    Join Date
    Aug 2015
    Posts
    67
    First off, I now attached the DB to this posting. Secondly, I took those who suggested making a fresh copy of the DB, but after doing so, I received the same error message. The one thing that I did notice with the fresh copy was, when I removed the form "NEW ISSUE", I no longer received that error message. It has to do something about the properties of the form "NEW ISSUE".

  7. #7
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,544
    Quote Originally Posted by Dave_D View Post
    First off, I now attached the DB to this posting. Secondly, I took those who suggested making a fresh copy of the DB, but after doing so, I received the same error message. The one thing that I did notice with the fresh copy was, when I removed the form "NEW ISSUE", I no longer received that error message. It has to do something about the properties of the form "NEW ISSUE".
    No file attached
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  8. #8
    moke123's Avatar
    moke123 is offline Me.Dirty=True
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Ma.
    Posts
    1,654
    although I haven't spotted the error yet, You need to add option explicit to all your modules.

  9. #9
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,413
    Imported into new DB as I suggested in Post #3, and it seems fine.

  10. #10
    Dave_D's Avatar
    Dave_D is offline Advanced Beginner
    Windows XP Access 2010 64bit
    Join Date
    Aug 2015
    Posts
    67
    Bob, I have to disagree; I see the attachment and was also able to open it.

  11. #11
    Dave_D's Avatar
    Dave_D is offline Advanced Beginner
    Windows XP Access 2010 64bit
    Join Date
    Aug 2015
    Posts
    67
    davegri, I'll try it again. Thanks!

  12. #12
    Dave_D's Avatar
    Dave_D is offline Advanced Beginner
    Windows XP Access 2010 64bit
    Join Date
    Aug 2015
    Posts
    67
    davegri, This time it worked just fine and without any error message. Thank you so very much and to all that helped, Thank you as well!

  13. #13
    moke123's Avatar
    moke123 is offline Me.Dirty=True
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Ma.
    Posts
    1,654
    Its important that you add option explicit to all your modules. When i added it to your original db it threw an error.
    Please take a look at this link...http://www.fmsinc.com/microsoftacces...ons/index.html

  14. #14
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,803
    Alas, what *all of such web pages don't but should explain is that improper use of the bang operator won't be caught by Option Explicit and compiling code. Suppose the form control name is txtOrderId. Me.txtOrdreId will be caught. Me!txtOrderId will not. The latter causes late binding, which means it is only interpreted at run time.

    *At least none that I have read.

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

Similar Threads

  1. Replies: 3
    Last Post: 03-24-2015, 04:42 AM
  2. Opening records via Double-Click event on a search form.
    By IncidentalProgrammer in forum Programming
    Replies: 4
    Last Post: 11-21-2014, 03:47 PM
  3. Replies: 3
    Last Post: 01-18-2014, 02:20 PM
  4. How do you use an event property for a form?
    By Access_Novice in forum Programming
    Replies: 6
    Last Post: 12-31-2013, 02:46 AM
  5. an activex button click event error
    By amd711 in forum Programming
    Replies: 2
    Last Post: 11-23-2012, 10:40 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