I have five datasheet forms that open autoexec.
I'm trying to open them in order so they sit correctly at the top of the page but I then to set the focus to the first form that was opened.
I tried this but my reference seems to be out !!
Any thoughts?
I'm trying to open them in order so they sit correctly at the top of the page but I then to set the focus to the first form that was opened.
Code:
DoCmd.OpenForm "frmForm1", acFormDS, "", "", , acNormal
DoCmd.OpenForm "frmForm2", acFormDS, "", "", , acNormal
DoCmd.OpenForm "frmForm3", acFormDS, "", "", , acNormal
DoCmd.OpenForm "frmForm4", acFormDS, "", "", , acNormal
DoCmd.OpenForm "frmForm5", acFormDS, "", "", , acNormal
Forms!frmForm1!ID.SetFocus
I tried this but my reference seems to be out !!
Any thoughts?