Try something like this in your navigational buttons:
~~~~~~~~~~~~~~~
Me.Visible = Not Me.Visible
Docmd.OpenForm "{target form name}" ....
~~~~~~~~~~~~~~~
and on the other target form, if you return to the first form directly:
Me.Visible = Not Me.Visible
{FirstFormName}.Visible = Not Me.Visible
Some apps go through the process of opening all the forms at startup, in the 'hidden' mode, and then make them visible when needed. This is nice,IF your data lends itself to this. Or open the three or four main forms that you use. Depends on the way the application runs.
Code:
DoCmd.OpenForm "{formname}" , , , , , acHidden
Thats FIVE commas, if you don't have any other run-time parameters to pass along.
Note that setting the Visible Property to its' negative turns the form visible if its currently hidden, and hides it if its currently visible.
Remember, you're unique - just like everyone else
You're invited to visit another free Access forum:
or my site,