Normal Topic Anoying message (Read 812 times)
jondolar
Junior Member
**
Offline


Keep Trying

Posts: 57
Location: Montreal Canada
Joined: Dec 25th, 2003
Anoying message
Jun 15th, 2004 at 4:58pm
Print Post Print Post  
Hi everybody

I get the anoying message "The current record has been changed and has not been committed to the database. Are you sure you want to exit?".

I get this message when I do the following:

Open my application
Select Search/Update mode
Select a form with 2 subforms
do nothing else or use F10 (change nothing in any LE)
Try to close the application with Windows X or File Exit

I tried to change the focus from the main form, to each subform in turn, no success Embarrassed

Is this a bug?

Regards


Serge
  

When all you have is a hammer, everything starts to look like nail!
Back to top
 
IP Logged
 
JFisher
Junior Member
**
Offline


No personal text

Posts: 51
Location: Roswell, NM
Joined: Jan 7th, 2004
Re: Anoying message
Reply #1 - Jun 15th, 2004 at 5:12pm
Print Post Print Post  
Serge,
I get that message only when exiting under certain conditions.  I suspect you have some code in your "On form open" or similar area that is trying to close an unfinished record. (?)  (Not much help, huh?)
Jack
  
Back to top
 
IP Logged
 
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Re: Anoying message
Reply #2 - Jun 15th, 2004 at 5:22pm
Print Post Print Post  
Quote:
Select Search/Update mode
Select a form with 2 subforms
do nothing else or use F10 (change nothing in any LE)
Try to close the application with Windows X or File Exit



Hit <Shift F10> and it will do what you want to do without giving the annoying message.
  
Back to top
 
IP Logged
 
jondolar
Junior Member
**
Offline


Keep Trying

Posts: 57
Location: Montreal Canada
Joined: Dec 25th, 2003
Re: Anoying message
Reply #3 - Jun 15th, 2004 at 6:01pm
Print Post Print Post  
Hi Jack and Bharat.

You are both right. Bharat, Shift F10 does the job nicely. Jack, I do have a piece of code ...On Form Entry doing a data Lookup in another database in the same application. I guess I should add something like...

If @IsBlank(Myfield)
... do the Lookup else do nothing
endif

Thanks to both of you

Serge
  

When all you have is a hammer, everything starts to look like nail!
Back to top
 
IP Logged