I have no experience with that error message, it might be a security setting on your computer. You can try:
DoCmd.Setwarnings False
RUN CODE
DoCmd.Setwarnings True
Maybe that will disable the warning message, but I somehow doubt it. Also note that Bob's code does the same thing as mine, but is shorter and more tidy.