Hi Gary, After our chat last night, and a conversation with Ben, I think you might want to look at this function http://msdn.microsoft.com/en-us/library/ms681944(VS.85).aspx Matthew