Okay, wait a minute, I got it!!!!
Let's say you want to open a report, but you want a custom dialog box to open, to, say, allow you to create a filter for the report.
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
DoCmd.OpenForm "Form1", acNormal, , , , acDialog
MsgBox "done"
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
... it's the "acDialog", which I swear I tried before, but whatever. The return value may have to reside in a public variable, don't know yet.
Cheers,
snakedog
|