display form w/o footer visible

M

mark kubicki

<this ought to be easy; but w/ inexperience comes stupidity... LOL!>

what is the code to display a form, with its footer not visible?
(i've added some user entry fields in the footer that under some
circumstances, i do not want accessible)

in advance, thanx,
mark
 
K

Ken Snell \(MVP\)

You'd need to pass a "value" to the form via the OpenArgs argument of the
DoCmd.OpenForm method, then have the form read that value and make the
footer invisible if it's the right value. For example:

DoCmd.OpenForm "FormName", OpenArgs:="NoFooter"

Then, in the FormName's Load event:

Private Sub Form_Load()
Me.FormFooter.Visible = (Me.OpenArgs & "" <> "NoFooter")
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top