Solved Open form to front

Kayleigh

Member
Local time
Today, 06:22
Joined
Sep 24, 2020
Messages
709
Hi
I have a simple question but cannot seem to find a satisfactory answer.
I would like to open a form (not pop-up) and it should display at front of other forms. I tried playing with visible settings but didn't help. The only way to get it to display was the 'Modal' setting to True but this means nothing else can occur whilst form is open so would like another solution if possible.
 
How are you opening the form? Using code?
 
For example:
Code:
DoCmd.OpenForm "frmMarketingCampaigns"
 
For example:
Code:
DoCmd.OpenForm "frmMarketingCampaigns"
And is that the only code in your procedure? I am wondering if you have the code doing other things after you open the form, which could take the focus away from the form you just opened.
 
The only other code is:
Code:
Me.visible = false
 
What do you think Me.Visible = False does?
 
@theDBguy - thanks for persevering. I've sorted issue. It was just the order of my lines of code.
 

Users who are viewing this thread

Back
Top Bottom