I need to make a copy of my current database to a certain location that can be changed.
For this I use a piece of code that works very well in full access but gives a fatal error when running in runtime.
After investigating the case, I came to the conclusion that the error occurs when the variable that stores the destination path takes its value from the table in which it is stored.
If I write this path directly in the code, both versions, access and runtime, work.
If, as I said, I use dlookup to extract a path from the table, the runtime version gives me the message "Execution of this application has stopped due to a run-time error. The application can't continue and will be shutdown."
At this point I was left with no idea what I could try. Can someone help me?
For this I use a piece of code that works very well in full access but gives a fatal error when running in runtime.
After investigating the case, I came to the conclusion that the error occurs when the variable that stores the destination path takes its value from the table in which it is stored.
If I write this path directly in the code, both versions, access and runtime, work.
If, as I said, I use dlookup to extract a path from the table, the runtime version gives me the message "Execution of this application has stopped due to a run-time error. The application can't continue and will be shutdown."
At this point I was left with no idea what I could try. Can someone help me?