Hello forum from a beginner with accdb 2010.
When multiple forms are open is there a way to move between them without doing a requery or docmd.openform?
I have cmd buttons on each form to allow the DoCmd to open the others but when they are all open I want users to be able to move between forms without changing the status of the destination form.
This will be in a runtime version with every possible restriction so I want to use the form buttons only.
Have tried the following 'onclick' - while putting "rem" on the docmd line to test.
Forms."NameOfForm".TxtControlName.Setfocus = error - expected identifier or bracket.
Forms.[NameOfForm].TxtControlName.SetFocus = error - object doesnt support this property.
Forms.NameOfForm.TxtControlName.SetFocus = works (sets focus to correct control) but the target form remains "behind" the current form.
How can I bring the target form to the front ?
I would like to use something along the lines of -
IfIsLoaded = False Then OpenForm Else SetFocus and bring form to front for the OnClick on each button but do not know how.
When multiple forms are open is there a way to move between them without doing a requery or docmd.openform?
I have cmd buttons on each form to allow the DoCmd to open the others but when they are all open I want users to be able to move between forms without changing the status of the destination form.
This will be in a runtime version with every possible restriction so I want to use the form buttons only.
Have tried the following 'onclick' - while putting "rem" on the docmd line to test.
Forms."NameOfForm".TxtControlName.Setfocus = error - expected identifier or bracket.
Forms.[NameOfForm].TxtControlName.SetFocus = error - object doesnt support this property.
Forms.NameOfForm.TxtControlName.SetFocus = works (sets focus to correct control) but the target form remains "behind" the current form.
How can I bring the target form to the front ?
I would like to use something along the lines of -
IfIsLoaded = False Then OpenForm Else SetFocus and bring form to front for the OnClick on each button but do not know how.
Last edited: