Error message on first time Button is pressed

Tom d

Member
Local time
Today, 01:25
Joined
Jul 12, 2022
Messages
69
From the Main Menu the first time the add a authors name button is pressed, I receive an error message. After the first time there is no error message.
 

Attachments

Hi. I opened your file but didn't get an error.
 
From the Main Menu the first time the add a authors name button is pressed, I receive an error message. After the first time there is no error message.
What version are you running
 
The error message is Your Microsoft Access Database or project contains a missing or broken reference to the file 'Argisversion.dll' version 1.0
 
I also do not get the error, however I did look at your references and noticed this:

1729876200504.png

I unchecked it, debug/compiled it, and everything worked fine like before.
 
And you could not possible tell us what that error message was? :(



The error message is Your Microsoft Access Database or project contains a missing or broken reference to the file 'Argisversion.dll' version 1.0
 
The code will work without the reference as long as no procedure from the library is called. It won't compile though.
 
OK. Please read my entire reply. If it compiled for you, then, the code of the library is never referenced.
 
If you are asking how to get to the References screen:
1. Open the VBE to any code module
2. Click on Tools
3. Click on References
4. Uncheck the library that is marked as missing

If you actually need to use this library, then unchecking it will simply move the error to a different part of the application. If you need to use the code, you need the reference. If you need the referenced library, you MUST install it on all PC's where your application needs to run.
 
Press Alt and F11 keys together. That will give you the VBA window (where all the code is located).
Then when there click Tools/References from the menu bar.
That will show you all the references used. Yours will show missing. Untick that one and press OK.

Now you will be back at the VBA window.
Now click Debug/Compile <YourDBname>

Hopefully that should not produce any errors as was the case with me.

If it does show an error(s), then report back as to what they are.
If it does not, then try the DB as it is.
 
If you are asking how to get to the References screen:
1. Open the VBE to any code module
2. Click on Tools
3. Click on References
4. Uncheck the library that is marked as missing

If you actually need to use this library, then unchecking it will simply move the error to a different part of the application. If you need to use the code, you need the reference. If you need the referenced library, you MUST install it on all PC's where your application needs to run.
Figured it out and it worked. Thank You
 

Users who are viewing this thread

Back
Top Bottom