Results 1 to 3 of 3
  1. #1
    Middlemarch is offline Competent Performer
    Windows 10 Access 2019
    Join Date
    Mar 2015
    Posts
    348

    Form Error - looking for cause

    Someone else has added tab stops and rearranged some controls on a Form which I have imported back into my DB.




    With this Form some click events are now failing. This occurs on the command e.g,
    Me.SomeControlName is causing Error Method or data member not found


    But if I change to Me!SomeControlName there is no error.
    If I swap the old and new Forms the error follows suit. The original form works. But he assures me no code was changed.


    Any idea why this would happen?

  2. #2
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,114
    The code has not changed but he probably renamed the controls when "rearranging" them. Using Me! does not compile until the runtime so no error. With the renaming some of the controls probably lost their VBA events as well. You will need to track them all those renamed controls and either restore their original name or fix the code to use the new names.

    Cheers,
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  3. #3
    Middlemarch is offline Competent Performer
    Windows 10 Access 2019
    Join Date
    Mar 2015
    Posts
    348
    Thanks. Will check 'em all out....

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

Similar Threads

  1. Replies: 13
    Last Post: 08-06-2022, 05:11 PM
  2. Replies: 7
    Last Post: 10-27-2021, 08:42 AM
  3. Replies: 6
    Last Post: 03-17-2016, 02:10 PM
  4. Replies: 14
    Last Post: 03-31-2015, 05:20 PM
  5. Replies: 1
    Last Post: 11-18-2014, 12:35 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