In order to have a printusingform work properly, I need to get the Datasheet out of the way if it’s the active window. The procedure below sends it to the back if it is and that works.
Of course, it could be the only open window, so I tried checking to see if it was still the active window. (there’s also a chance thatf another database might have the next open window)
What I found though, is that the Datasheet is still the result of info(“windowname”) if it was active when the procedure started. And after sending it to the back, the second check makes it active again.
If info(“windowname”) = dbname() WindowToBack info(“windowname”) EndIf Message info(“windowname”)