We have a module that works great when run from Visual Basic for Application but fails when run under a macro with RunCode. We believe it is because the query it calls may have no records. But the module has an escape that if there is no BOF or EOF then ENd. <br><br>Like I said, it works perfectly from the procedural standpoint. I did create a function in the module to simply call the first procedure. I use the function in the macro RunCode.<br><br>But as a macro it fails and gives no hint why. Anyone experienced and resolved this? <br><br>Thanks!<br><br>Mary
)<br><br>