Focus change problem

JerryGiese

Active Member
Joined
Jun 27, 2005
Messages
323
I have just upgraded to access 2007 and it has created a problem. I have form1 open and when I double click a certain control in that form, it will open form2. The problem is that as soon as it opens form2 the focus will change back to form1. I need the focus to stay on form2. I even tried using the setfocus method to change the focus back to form2, but the focus always changes back to form1.
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Hi

Not sure if you have resolved this question, have you looked behind the field to see if the events being used is the correct event. Use double click to open the form and possibly add a docmd.maximize to see if this resolves your question. If the on Dirty event has something in, maybe look to remove the event.

Trevor
 
Upvote 0

Forum statistics

Threads
1,213,487
Messages
6,113,937
Members
448,534
Latest member
benefuexx

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top