PC Review


Reply
Thread Tools Rate Thread

Access 2003 to 2007 issue - double-click behaves differently

 
 
iosborn
Guest
Posts: n/a
 
      6th Aug 2008
Hi
In Access 2003 code in the double-click event of a control opens a new form
and sets the focus to the new form. However in Access 2007 the same code
opens the new form, but then the focus goes BACK to the calling form, which
is not what the application is supposed to do.
I have tried various VBA work arounds to no avail, has anyone else come
across this problem and come up with a solution?
Thanks in advance
 
Reply With Quote
 
 
 
 
boblarson
Guest
Posts: n/a
 
      6th Aug 2008
What code are you actually using?
--
Bob Larson

Tutorials at http://www.btabdevelopment.com

__________________________________


"iosborn" wrote:

> Hi
> In Access 2003 code in the double-click event of a control opens a new form
> and sets the focus to the new form. However in Access 2007 the same code
> opens the new form, but then the focus goes BACK to the calling form, which
> is not what the application is supposed to do.
> I have tried various VBA work arounds to no avail, has anyone else come
> across this problem and come up with a solution?
> Thanks in advance

 
Reply With Quote
 
iosborn
Guest
Posts: n/a
 
      7th Aug 2008
Thanks.
I've taken it back to basics.
Use the following code in Access 2003 in a double-click event of a locked
but enabled control on Form1
DoCmd.OpenForm "Form2"
The mini app behaves as expected. Now upgrade it to an accdb (Access 2007).
You will now find that the focus is taken back to the calling form to
highlight the text in the control whose double-click just fired.
However I have found if you create the scenario from scratch in Access 2007
the behaviour doesn't occur (which isn't very useful as upgrade path)

"boblarson" wrote:

> What code are you actually using?
> --
> Bob Larson
>
> Tutorials at http://www.btabdevelopment.com
>
> __________________________________
>
>
> "iosborn" wrote:
>
> > Hi
> > In Access 2003 code in the double-click event of a control opens a new form
> > and sets the focus to the new form. However in Access 2007 the same code
> > opens the new form, but then the focus goes BACK to the calling form, which
> > is not what the application is supposed to do.
> > I have tried various VBA work arounds to no avail, has anyone else come
> > across this problem and come up with a solution?
> > Thanks in advance

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Access 2003 to 2007 Issue - Double-click Event Behaves Differently Tony Rusin Microsoft Access Form Coding 2 20th Feb 2009 11:26 PM
Access behaves differently in different environments Laurel Microsoft Access Form Coding 3 6th Oct 2007 01:44 AM
Subtotal command behaves differently 97 -> 2003 =?Utf-8?B?TXIuIFNtaXRo?= Microsoft Excel Programming 1 29th Jun 2006 05:36 AM
Ctrl + Up/Down Arrow behaves differently in Word 97/2003? =?Utf-8?B?Q2xhbW15c294?= Microsoft Word Document Management 2 27th Oct 2004 03:27 AM
Access 2003 Subform behaves differently than XP Subform JC Microsoft Access Forms 1 10th May 2004 08:20 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:18 PM.