Solved Open form to front (1 Viewer)

Kayleigh

Member
Local time
Today, 14:46
Joined
Sep 24, 2020
Messages
706
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.
 

theDBguy

I’m here to help
Staff member
Local time
Today, 06:46
Joined
Oct 29, 2018
Messages
21,457
How are you opening the form? Using code?
 

Kayleigh

Member
Local time
Today, 14:46
Joined
Sep 24, 2020
Messages
706
For example:
Code:
DoCmd.OpenForm "frmMarketingCampaigns"
 

theDBguy

I’m here to help
Staff member
Local time
Today, 06:46
Joined
Oct 29, 2018
Messages
21,457
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.
 

Kayleigh

Member
Local time
Today, 14:46
Joined
Sep 24, 2020
Messages
706
The only other code is:
Code:
Me.visible = false
 

LarryE

Active member
Local time
Today, 06:46
Joined
Aug 18, 2021
Messages
581
What do you think Me.Visible = False does?
 

Kayleigh

Member
Local time
Today, 14:46
Joined
Sep 24, 2020
Messages
706
@theDBguy - thanks for persevering. I've sorted issue. It was just the order of my lines of code.
 

Users who are viewing this thread

Top Bottom