Thank you Randem, But before I worship you.... What should i dim RecordsAffected as?
It says variable not defined
What are you using it for? The answer to that will tell you what is should be created as.
Beantown Boy
Please use [highlight=vb]your code goes in here[/highlight] tags when posting code.
When you have received an answer to your question, please mark it as resolved using the Thread Tools menu.