Error "There was an error executing the command"

Anonymous
2021-12-14T09:13:50+00:00

Hi All,

I am getting this error within my database but only on two forms from the switchboard. Just need to give you more details incase its relevant or not.

So we had a power cut, which effected the pc. When the power returned someone wiped the pc (big mistake) so the pc had to be rebuilt but once this was completed and the database re-installed and it is at this point the database only partly works. Now this database is on numerous pc's and works perfectly fine, the BE is our U:Drive and each pc has a FE on their C:Drive. BUT on this particular pc two forms from the switch board will not open and gives this error.

So far I have re-installed a few times and followed the repair options, I have even opened straight from the U:Drive and it doesn't work! but if I do this on any other pc it will work!

Now our IT dept. are saying they they had to load an older version of Access (2010) and that this could be the issue but some of the other pc has the old version but do not have this problem.

If anyone has any ideas I would appreciate your help..

BR

Jo

Microsoft 365 and Office | Access | For home | Windows

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
{count} votes

14 answers

Sort by: Most helpful
  1. Anonymous
    2021-12-16T07:14:43+00:00

    One issue I see is that you prompt the user for the table name at runtime.

    Hi Scott,

    Sorry I not sure what you mean here? Can you give an example please?

    BR

    Jo

    0 comments No comments
  2. Anonymous
    2021-12-16T09:47:04+00:00

    I may have misinterpreted this:

    FROM [Enter Talyform Data] INNER JOIN Tolerances ON [Enter Talyform Data].Type = Tolerances.Type

    WHERE ((([Enter Talyform Data].Variant)=2))

    ORDER BY [Enter Talyform Data].[Date:] DESC;

    Is your table/query named Enter Talyform Data or are you prompting the user to enter the table/query name?

    0 comments No comments
  3. Anonymous
    2021-12-16T11:00:47+00:00

    Hi Scott,

    Enter Talyform Data is the name of the table..

    BR

    Jo

    0 comments No comments
  4. Anonymous
    2021-12-16T11:23:53+00:00

    Ahh OK, my mistake. Usually such an object indicates a prompt.

    0 comments No comments