Hi David,
I have done what you asked, took out the Where statements, and sorted it out until it started workin. and added the where's one by one, and had to input certain variables which are usually inputted from the form. but got it working. I tried to put it back into the VB code, and ran it...