Share via

Access 2019 Information Message: Miceosoft Access cannot find the object ***

Anonymous
2023-06-06T05:23:37+00:00

Hi Everyone,

Need a little help with a problem that just popped up on my project. I'm definitely not a pro at Access, just like working with Access and Visual Basic. I'm creating a Db for all my CD's, to help find a CD or a song on that CD. I have it working fairly well and was in the process of adding some CD and song data, while trying to get it to fail at the same time, so I could catch some bugs. Everything was fine yesterday, I added several CD's did a compact & repair and called it a night. Today, when I started to add more data, as soon as I opened my main form, I got an Information message:

"Microsoft Access cannot find the object ***"

"If '' is a new macro or macro group, make sure you have saved it and that you have typed its name correctly."

Like I said, I do this to keep my mind sharp, yes I'm old and in my 70's , so I mainly do it for fun. I haven't gotten into creating a class or object at this time, so I really don't know what the message is trying to tell me, as there doesn't seem to be a name for the object it can't find. Does anyone have any idea what I may have done to cause this error or how to begin to look for the object Access can't find and fix my problem. My Db still works just fine, the message only appears when I open my Main Form and again when I close it.

Db consists of a Main Form (Search for CD, Create a New Entry), a CD_Detail subform for the CD Info: Title-Group-# of Disks-Genre, and a SongData continuous subform within that subform for the song information. From the debugging I've done so far it seems to give me the message after it's first time through the last "continuous subform" on current event.

Any help would be appreciated,

Regards,

Gordon

Microsoft 365 and Office | Access | For home | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

9 answers

Sort by: Most helpful
  1. Anonymous
    2023-06-06T16:24:07+00:00

    Hi Everyone,

    Just wanted to say I got it working, not quite like before the error, but it's working error free, so far. I took a little advice from all of you and I appreciate that advice and help very much. I still don't know what the problem is, still working on that, but I do know it's a problem with the continuous subform. I split all my forms into individual forms and opened and closed each one of them. I got the error message on the continuous form, which is the song information form. I created a new form, copied all the controls to the new form, and I could open it error free. I'm adding code a little bit at a time and testing to see what actually caused the problem in the first place. I tend to think it's what GroverParkGeorge said, a space hidden in a control, and I'm determined to find it. But, it is working without the missing object error so far. Thanks again, everyone, for giving me ideas on how to find the problem and a starting point as well, Very Much Appreciated!

    Gordon

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2023-06-06T12:45:32+00:00

    Abdal and Scottgem,

    Thank you for your advice and help with my problem. So far I'm going through some of the steps that Abdal suggested and I've already checked every spelling and searched through the project with all the control names to see if I could flag one spelled wrong, but so far no good. Scottgem you're right, the information message doesn't tell me the name of the object, that's one of the reasons I reached out for help. I found a few references to my problem online, but in each case they were given the name of the object. I even tried creating a complete new Db and imported data from the problem db, but looks like all I managed to do was import the problem as well. I might be forced to start over again, but I'll keep trying to figure it out and let everyone know what, if anything I come up with. Thanks again to you both. It is much appreciated (And I'm still learning too!)

    Gordon

    Was this answer helpful?

    0 comments No comments
  3. George Hepworth 22,855 Reputation points Volunteer Moderator
    2023-06-06T12:35:12+00:00

    As Scott suggested, it's apparently in code that runs when the form opens. Set a break point in the code and step through it line by line until you reach the line which errors out.

    It also sounds like there is little or no error handling. Perhaps that's an enhancement worth investing some time in.

    Was this answer helpful?

    0 comments No comments
  4. ScottGem 68,810 Reputation points Volunteer Moderator
    2023-06-06T11:43:09+00:00

    The error message doesn't give the name of the object?

    If not, then what you need to do is look at the code that runs when you open the form to see what object is causing the crash. It could be as simple as a misspelling.

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2023-06-06T07:24:28+00:00

    Hello

    I am Abdal and I would be glad to help you with your question.

    The error message you're encountering in Microsoft Access typically occurs when Access is unable to locate an object referenced in your database. It seems that in your case, the object name is not specified in the error message, which makes it challenging to pinpoint the exact cause of the problem. However, based on the information you provided, it appears that the issue might be related to one of the subforms or controls within your main form.

    Here are a few steps you can take to troubleshoot and resolve the issue:

    1. Verify that all the subform controls on your main form are correctly referencing the subform objects.
    2. Examine any controls within your subforms that may be referencing objects, such as buttons or macros. Make sure these references are valid and properly specified.
    3. If you have any VBA code associated with your form, carefully review it for any potential errors. Look for any references to objects that might be causing the issue. Pay close attention to the "On Current" event of your continuous subform, as you mentioned the error appears after that event. Make sure the code within that event is functioning correctly and not causing any issues.
    4. Perform a compact and repair operation on your Access database to fix any potential database corruption issues. Sometimes, this can help resolve errors that seem to have no apparent cause.
    5. Create a copy of your database and remove all the CD and song data from the tables. Test the modified database to see if the error still occurs. If the error goes away, gradually add the data back in to identify any specific records or entries causing the problem.
    6. If none of the above steps resolve the issue, you might consider rebuilding your main form from scratch. Create a new form and copy over the controls, subforms, and their associated properties one by one. This can help eliminate any potential hidden issues within the form design.

    By following these troubleshooting steps, you should be able to identify and resolve the "Microsoft Access cannot find the object" error you are experiencing.

    I hope this information helps.

    Regards,

    Abdal

    Give back to the community. Help the next person with this problem by indicating whether this answer solved your problem. Click Yes or No at the bottom.

    Was this answer helpful?

    0 comments No comments