I have a form which has a button on it which opens another form. When this happens I want to be able to hide the form with the button on it, but I can't work it out.
I have used forms![Myform].visible = false and that doesn't work.
Is it possible for this to work in the OnLoad event. I can get it to work on the button OK, but I'd also like it to work on the Onload. I have an If/Then query which I'd like it to work with. The If statement opens the other form if the value of a field is greater than one, but when I put the Me.Visible = False in the If statement as well, it doesn't work.
OK. When the database opens a form is opened with the date on. This form then checks to see if more than one user is logged in. If only one user is logged in they are asked to check the date because the PC's they use aren't necessarily on the correct date.
If there are more than one user logged in the form opens the main search form and should go hidden because I want that date form to stay in the background as it is used in many other form fields.
But what happens is, the search from is opened, but the date form also remains visible and on top.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.