Hi There, hoping someone can help me with a confusing issue I am experiencing with a macro.
I have written the below macro which is used across three reports. This particular macro has been used as my 'beta' version as a work in progress to get it to a stable point before implementing the same changes across the other two reports. I have got this report to a standard and stability now that I want to bring the others in line with it...
The above is working perfectly and is stable in day to day use, however when I implement the same save method:Please Login or Register to view this content.
Into the other report i get a compile error....Please Login or Register to view this content.
This is the report before I put in the If exists function
And it works as it should, however when I put this in as so...Please Login or Register to view this content.
I get the compile error...Please Login or Register to view this content.
Can anyone offer any advice as I have spent many frustrating hours now looking at every line... The compile error seems to have a problem with the sub name CreateNew() however it's confusing as it works fine before the if exists statement is in, the sub name does not change. it seems to stop at If exists, however it works fine in the other macro?
Hope I have explained this ok!
Bookmarks