![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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 ? |
#3
| |||
| |||
|
|
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 - |
#4
| |||
| |||
|
|
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 |
![]() |
| Thread Tools | |
| Display Modes | |
| |