I know it's been awhile since DataMiner posted his problem but I had the same thing happen to me yesterday.
I always have option explicit on as it's such a useful tool but having Rem'd out some code, including some variable declarations I was very surprised when I used Debug/Compile TemplateProject and found that it reported no errors. I tried to do the same in a number of forms, all with the same result.
Following a Google search I came across this link in your forum and eventually came to joelanthony333's solution, which at first sight I was a little sceptical of, but to my amazement it worked perfectly. Thank you!
My problem was with Word VBA, I don't use Access but I'll be back as many VBA problems/solutions occur in the various Office programs.
I always have option explicit on as it's such a useful tool but having Rem'd out some code, including some variable declarations I was very surprised when I used Debug/Compile TemplateProject and found that it reported no errors. I tried to do the same in a number of forms, all with the same result.
Following a Google search I came across this link in your forum and eventually came to joelanthony333's solution, which at first sight I was a little sceptical of, but to my amazement it worked perfectly. Thank you!
My problem was with Word VBA, I don't use Access but I'll be back as many VBA problems/solutions occur in the various Office programs.