http://support.microsoft.com/kb/209871
I have tried to implement Microsoft's example here but there is one critical issue:
the Orders form opens the frmPassword form like this:
DoCmd.OpenForm "frmPassword", acNormal, , , , acDialog
Then the frmPassword sets the value MyPassword to some value...