Setting a backup button (1 Viewer)

Gasman

Enthusiastic Amateur
Local time
Today, 15:40
Joined
Sep 21, 2011
Messages
14,262
Sorry about that. Got a collegues to have a look at the code and indeed this line (source = CurrentProject.Path & "") was put as a comment.

Now the code works perfect! Thank you for you help.
Mat

I was about to say 'Impossible' :D

You had all your paths correctly formatted. people tend to leave off the trailing backslash, just not the correct paths.

Also you were not running my code if that was the case? :D
 

Mat1994

Registered User.
Local time
Tomorrow, 02:40
Joined
Nov 29, 2018
Messages
94
ahah nothings impossible with code.

Also you were not running my code if that was the case?
It was your code, but I was to blind to see that one line had backspaced into a comments.
 

Gasman

Enthusiastic Amateur
Local time
Today, 15:40
Joined
Sep 21, 2011
Messages
14,262
FWIW
For 'silly' errors like this, I always walk through the code with F8 in the debug window.
By silly, I mean it looks like it should work, but for some reason it does not.

I then either inspect each variable with a ? in the immediate window, or hover over the variable. Slow I admit, but normally gets to the bottom of the problem.

Main thing is we got to the bottom of this one in the end.:D
 

Mat1994

Registered User.
Local time
Tomorrow, 02:40
Joined
Nov 29, 2018
Messages
94
Thank you for the advice.
I'll apply that method to solve my coding problems in the future.

Mat
 

Users who are viewing this thread

Top Bottom