Re: CreateEventProc error
- From: "Dirk Goldgar" <dg@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 22 Feb 2006 14:24:27 -0500
"dchman" <dchman@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:37570C0D-DD19-4968-834F-4DE1BA2683EE@xxxxxxxxxxxxx
One of the controls being added is a subform (along with setting its
ObjectSource), which seems to be the cause of the prompt. If I don't
add the subform, the prompt is not raised. Any ideas how to suppress
the prompt caused by the subform?
You might try explicitly saving the form befor closing it. That is,
instead of this:
DoCmd.Close acForm, frmCurrent.Name, acSaveYes
use this:
DoCmd.Save acForm, frmCurrent.Name
DoCmd.Close acForm, frmCurrent.Name
But I wonder; did you change any of the properties of the subform
control's SourceObject? That would lead to a need to save both forms.
--
Dirk Goldgar, MS Access MVP
www.datagnostics.com
(please reply to the newsgroup)
.
- References:
- Re: CreateEventProc error
- From: Dirk Goldgar
- Re: CreateEventProc error
- From: Douglas J. Steele
- Re: CreateEventProc error
- From: Dirk Goldgar
- Re: CreateEventProc error
- From: Dirk Goldgar
- Re: CreateEventProc error
- Prev by Date: RE: Cannot get code to work for API Save Dialog Box
- Next by Date: Re: printing forms with list boxes
- Previous by thread: Re: CreateEventProc error
- Next by thread: Re: CreateEventProc error
- Index(es):
Relevant Pages
|
Loading