I have a strange problem. When I copy an Access program, the copy program has some code that does not work (1 Viewer)

Tom d

Member
Local time
Today, 04:31
Joined
Jul 12, 2022
Messages
106
I have a strange problem. When I copy an Access program, the copy program has some code that does not work. A few days ago the copied program ran fine, did not change the code since the copied program run. The problem code is on the Main menu form, the button is the Backup Data Base Data. If you want to try the code you need to make a folder called Access Backups in the same folder you saved the code file and the data file in. The code is the same as the code behind the Backup Data Base code button except the code that does not run adds BE to the file name.
 
Last edited:
I have a strange problem. When I copy an Access program, the copy program has some code that does not work. A few days ago the copied program ran fine, did not change the code since the copied program run. The problem code is on the Main menu form, the button is the Backup Data Base Data. If you want to try the code you need to make a folder called Access Backups in the same folder you saved the code file and the data file in. The code is the same as the code behind the Backup Data Base code button except the code that does not run adds BE to the file name.

I suspect the issue might be that the button’s On Click event has lost its connection to the code. Check if [Event Procedure] is still selected for the button’s On Click property in the copied file. If not, re-link it, and that should do the trick. Let me know if that’s the case!
 
The big question is, copy it to where? Different folder on same machine or different machine? It makes a difference.
 
I suspect the issue might be that the button’s On Click event has lost its connection to the code. Check if [Event Procedure] is still selected for the button’s On Click property in the copied file. If not, re-link it, and that should do the trick. Let me know if that’s the case!
fixed the problem . Copied the code from the Backup Data Base code button. added the _be to the file name to the copied code and it worked in the copied code file. Tried to do the copy the file and paste today and the copy worked.
 
Last edited:
Not making much sense to me? :(

Adding _be means you will copy the BE not the FE?, so that is a completely different file, likely in another location?
 

Users who are viewing this thread

Back
Top Bottom