I have a strange problem which I cannot fix and was hoping someone here could.

I have command that makes a directory based on the users name and the exports a report into that directory. More complicated than that, is that it takes the users name from a combo box, does the export, then goes to the next user. A continuing loop until all users have a report.

The problem is that if the database window is hidden as it is for all other users this doesn't work, although when I open the database holding SHIFT, it works.

The Error says that the Docmd.Output is avaliable now.