I don't think 'DoCmd' is a visual basic command. I think it can only be used in Access and Word.

Paul Bousa