dbTalk Databases Forums  

dialog form difference between access97 and access2007

comp.databases.ms-access comp.databases.ms-access


Discuss dialog form difference between access97 and access2007 in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Roger
 
Posts: n/a

Default dialog form difference between access97 and access2007 - 08-23-2010 , 12:34 PM






I have a form opened with acDialog, with a command button that does
that
DoCmd.OpenForm "frmSRView", acFormDS, , strSql, acFormEdit,
acDialog
With Forms("frmSRView")
If (Not (.blnCancel)) Then
lngFreightId = .lngFreightId
blnCancel = False
End If
End With

DoCmd.Close acForm, "frmSRView", acSaveNo

in access97, the 'with' line is not executed until frmSRView is made
invisible
in access2007, it executes immediately, closing the form right after
it is opened
is there a workaround for this ?

Reply With Quote
  #2  
Old   
David W. Fenton
 
Posts: n/a

Default Re: dialog form difference between access97 and access2007 - 08-23-2010 , 02:09 PM






Roger <lesperancer (AT) natpro (DOT) com> wrote in
news:5b9883f0-8172-4be8-be90-97b53e6813da (AT) x21g2000yqa (DOT) googlegroups.co
m:

Quote:
I have a form opened with acDialog, with a command button that
does
that
DoCmd.OpenForm "frmSRView", acFormDS, , strSql, acFormEdit,
acDialog
With Forms("frmSRView")
If (Not (.blnCancel)) Then
lngFreightId = .lngFreightId
blnCancel = False
End If
End With

DoCmd.Close acForm, "frmSRView", acSaveNo

in access97, the 'with' line is not executed until frmSRView is
made invisible
in access2007, it executes immediately, closing the form right
after it is opened
is there a workaround for this ?
I think you need to decompile your code and recompile it. There is
no difference in the treatment of the acDialog switch between A97
and A2007.

--
David W. Fenton http://www.dfenton.com/
contact via website only http://www.dfenton.com/DFA/

Reply With Quote
  #3  
Old   
Roger
 
Posts: n/a

Default Re: dialog form difference between access97 and access2007 - 08-23-2010 , 05:30 PM



On Aug 23, 1:09*pm, "David W. Fenton" <NoEm... (AT) SeeSignature (DOT) invalid>
wrote:
Quote:
Roger <lesperan... (AT) natpro (DOT) com> wrote innews:5b9883f0-8172-4be8-be90-97b53e6813da (AT) x21g2000yqa (DOT) googlegroups.co
m:





*I have a form opened with acDialog, with a command button that
*does
that
* * DoCmd.OpenForm "frmSRView", acFormDS, , strSql, acFormEdit,
acDialog
* * With Forms("frmSRView")
* * * * If (Not (.blnCancel)) Then
* * * * * * lngFreightId = .lngFreightId
* * * * * * blnCancel = False
* * * * End If
* * End With

* * DoCmd.Close acForm, "frmSRView", acSaveNo

in access97, the 'with' line is not executed until frmSRView is
made invisible
in access2007, it executes immediately, closing the form right
after it is opened
is there a workaround for this ?

I think you need to decompile your code and recompile it. There is
no difference in the treatment of the acDialog switch between A97
and A2007.

--
David W. Fenton * * * * * * * * *http://www.dfenton.com/
contact via website only * *http://www.dfenton.com/DFA/- Hide quoted text -

- Show quoted text -
done that, no luck

Reply With Quote
  #4  
Old   
Salad
 
Posts: n/a

Default Re: dialog form difference between access97 and access2007 - 08-23-2010 , 08:09 PM



Roger wrote:

Quote:
On Aug 23, 1:09 pm, "David W. Fenton" <NoEm... (AT) SeeSignature (DOT) invalid
wrote:

Roger <lesperan... (AT) natpro (DOT) com> wrote innews:5b9883f0-8172-4be8-be90-97b53e6813da (AT) x21g2000yqa (DOT) googlegroups.co
m:






I have a form opened with acDialog, with a command button that
does
that
DoCmd.OpenForm "frmSRView", acFormDS, , strSql, acFormEdit,
acDialog
With Forms("frmSRView")
If (Not (.blnCancel)) Then
lngFreightId = .lngFreightId
blnCancel = False
End If
End With

DoCmd.Close acForm, "frmSRView", acSaveNo

in access97, the 'with' line is not executed until frmSRView is
made invisible
in access2007, it executes immediately, closing the form right
after it is opened
is there a workaround for this ?

I think you need to decompile your code and recompile it. There is
no difference in the treatment of the acDialog switch between A97
and A2007.

--
David W. Fenton http://www.dfenton.com/
contact via website only http://www.dfenton.com/DFA/- Hide quoted text -

- Show quoted text -


done that, no luck
Have you checked you are up-to-date on both service packs and hot fixes?

Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.