There's probably a better way, but one way would be to put an application.ontime statement in the userform_activate handler, directing control to a public sub on the userform code page. This sub would close or hide the userform and show the other one. Any other mode of exit from the userform (e.g., clicking the OK button) should first clear the ontime event. A bit messy, but I think it would work. Rob
Not sure sure what you are looking for but try this
Private Sub Form_Timer()
DoCmd.Close acForm, "FormA"
DoCmd.OpenForm "FormB", acNormal, "", "", , acNormal
End Sub
On formA properties set the on timer event to [Event Procedure] and put in the required time in Timer Interval David Lerwill
"If at first you don't succeed go to the pub"
Ermmm...I think ur codes kind of bring me neare towards what I wants... Thx dwlerwill...
But as I am using MS Access... I uses VBA... N if I am not wrong, I can only have 1 timer attached to the form and I cannot fing a Timer object or something like that... I am using the one and only available timer for the clock running in my form already... Another problem I encounterd is that this code or yours:
One more problem I have is that may I know if there is a need for me to do some linking to my forms ??? Coz the other form names are not displayed on the object combobox in any of the other forms...
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.