Have a look and see if this gets you going: http://www.excelforum.com/tips-and-t...ql-server.html